~/talk

The State of Const Generics

Talkat RustWeek 2025 · 2025-05-13..05-17· [rust]
name:Boxy Uwu
links:none on file
slides:none on file

Rust stabilizes only a minimal subset of const generics in 2021 and nightly work now targets lifting its limits: defaulted const parameters stabilized 2021, integer/char/bool are currently the only allowed const types, and you cannot compute with const parameters yet. Explicit const-argument inference is implemented and nearly ready, generic const expressions remain a messy four-year unstable feature, and a smaller design called min generic const arguments (MGCA) — MVP in 1–2 PRs removes post-monomorphization panic classes.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Const generics limitations 2021
  3. 2:32Defaulted const parameters
  4. 3:36Explicit inference for consts
  5. 5:03Custom types for consts
  6. 7:13Generic const expressions progress
  7. 9:22Min generic const arguments design
  8. 10:24Unsupported const features
  9. 13:36Future directions
  10. 14:18Q&A: standard library
  11. 16:24Q&A: generic const expressions
  12. 18:36Q&A: enum variants
  13. 20:00Closing remarks
~/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.