~/talk

Linting with Dylint

Talkat EuroRust 2024 · 2024-10-10..10-11· [rust]
slides:none on file

Dylint runs Rust lints loaded from user-specified dynamic libraries rather than a fixed set, and supplies a cargo-style CLI plus a linker trick that embeds the toolchain into library filenames so the right rustc driver loads. The demo lint TrioResult detects use of ? on an IO::Result when the enclosing function returns anyhow::Result and emits a warning suggesting added context; tests are UI comparisons of stderr. The repo works and a prototype attempts automated toolchain-upgrade fixes by replaying Clippy commits.

AI-written summary · about

  1. 0:00Introduction to Dylint
  2. 1:18Rust linting overview
  3. 4:07How linting works
  4. 5:35Lint stages and types
  5. 7:25When to use Dylint
  6. 9:10Tools and workflow
  7. 12:49Example lint: try_io_result
  8. 17:46Testing custom lints
  9. 20:16Implementation details
  10. 25:08Resources and APIs
  11. 27:41Future work and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.