rust/compiler/rustc_parse/src
Nicholas Nethercote 0984db553d Remove Ident::empty.
All uses have been removed. And it's nonsensical: an identifier by
definition has at least one char.

The commits adds an is-non-empty assertion to `Ident::new` to enforce
this, and converts some `Ident` constructions to use `Ident::new`.
Adding the assertion requires making `Ident::new` and
`Ident::with_dummy_span` non-const, which is no great loss.

The commit amends a couple of places that do path splitting to ensure no
empty identifiers are created.
2025-05-09 13:57:49 +10:00
..
lexer Implement RFC 3503: frontmatters 2025-05-05 23:10:08 +08:00
parser Remove Ident::empty. 2025-05-09 13:57:49 +10:00
errors.rs Rollup merge of #140671 - xizheyin:issue-140169, r=petrochenkov 2025-05-07 18:19:06 +02:00
lib.rs Simplify LazyAttrTokenStream. 2025-04-30 07:10:56 +10:00
validate_attr.rs Make attribute safety validation logic more obvious 2025-05-04 21:44:50 +08:00