~/talk

Weird Expressions and Where to Find Them

Talkat RustConf 2022 · on Friday, 2022-08-05· [rust]
slides:none on file

A code‑level tour of the compiler test file weird-exprs.rs with concrete examples: commit history from 2011, exact tests that show nested if and match as expressions, loops returning values, the never type typing as any type, and a nightly impl of FnOnce for a user type that lets values be repeatedly invoked. The talk walks through the actual test cases, points to the rustc test UI path, and demonstrates which odd constructs are accepted and why they must remain legal.

AI-written summary · about

  1. 0:00Start
  2. 5:05Match
  3. 7:15Functions
  4. 7:26Functions for Types
  5. 8:06Function Traits
  6. 8:41Recap
  7. 10:19Loops
  8. 12:20Keywords
  9. 12:38Strict Keywords
~/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.