~/talk

The Rust Borrow Checker - A Deep Dive

Talkat Cloud Native Rust Day EU 2021 · on Monday, 2021-05-03· at 12:15· Virtual ,· [rust]
slides:none on file

Explains how the Rust compiler stages (AST → HIR → MIR → LLVM) feed the borrow checker, shows MIR locals and spans, and demonstrates that the checker tracks initializations and moves and enforces that reference lifetimes cannot outlive their values. Uses cargo to show a moving-vs-borrowing example that initially errors, then changes y to a &x so the program prints "hi cloud native rust day" twice, and points to rustc diagnostics and the Guide to Rustc Development for fixes.

AI-written summary · about

  1. 0:00Introduction
  2. 1:34Overview
  3. 2:12Running the Code
  4. 4:41Lexical Analysis
  5. 6:23HIR Analysis
  6. 11:13Semantic Analysis
  7. 12:18Rust Compiler
  8. 18:00Lifetime Inference
~/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.