← home

Rust has many reserved keywords like become. But what will they do?

7 April, 2025

I found a page in the Rust reference that lists all of the currently reserved keywords:

I am really curious what they will do. I did some research, compiling a list of rfcs which use these keywords with my own speculations mixed in:

unsized only makes sense as sugar for !Sized but is this really necessary? Rust tries hard not to special case the standard library and just adding syntax for a built-in item seems like isn’t necessary. I didn’t find an RFC for it though so it could be used for more than that.

do is used for the do yeet in https://github.com/rust-lang/rust/issues/96373 but the syntax will change when its stabilized so I don’t count it.