~/talk

The Rust Borrow Checker: a Deep Dive

Talkat RustLab 2021 · 2021-03-18..09-23· [rust]
slides:none on file

Walks through compiler stages (lexer → parser → HIR → MIR → LLVM IR) and shows concrete examples: a moved String that fails at cargo build, the diagnostic text and the one-line fix using a reference that then runs with cargo successfully. Explains how the borrow checker tracks initializations, moves and lifetimes, how spans map MIR nodes back to source, and why borrow rules prevent dangling references while offering actionable compiler guidance.

AI-written summary · about

  1. 0:00Start
  2. 1:27Announcements
  3. 5:34General Stages to Compiling a Piece of Code
  4. 6:51Lexical Analysis
  5. 7:12Parsing
  6. 9:06Data Structures
  7. 13:01Mid-Level Intermediate Representation
  8. 13:55Rust Compiler Semantic Analysis
  9. 16:54Tracking Initializations and Moves
  10. 20:15Lifetime Inference
  11. 23:46Is the Borrow Checker a Friend or a Foe
  12. 24:31Qa
  13. 25:04How Do I Get Started Contributing to the Compiler
  14. 26:35What Do You Think about the Current Attempt To Leverage Gcc To Compile Rust Code
  15. 36:10Thoughts on Rasta and Zig Collaboration
~/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.