rust/compiler/rustc_resolve/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
..
late Move name field from AssocItem to AssocKind variants. 2025-04-15 08:07:15 +10:00
build_reduced_graph.rs Remove Ident::empty. 2025-05-09 13:57:49 +10:00
check_unused.rs Move ast::Item::ident into ast::ItemKind. 2025-04-01 14:08:57 +11:00
def_collector.rs Address review comments. 2025-04-01 16:07:23 +11:00
diagnostics.rs resolve: Support imports of associated types and glob imports from traits 2025-05-02 15:59:38 +03:00
effective_visibilities.rs Move ast::Item::ident into ast::ItemKind. 2025-04-01 14:08:57 +11:00
errors.rs resolve: Support imports of associated types and glob imports from traits 2025-05-02 15:59:38 +03:00
ident.rs Avoid an empty trait name in impl blocks. 2025-04-09 15:01:14 +10:00
imports.rs resolve: Support imports of associated types and glob imports from traits 2025-05-02 15:59:38 +03:00
late.rs Add or-patterns to pattern types 2025-04-28 07:50:18 +00:00
lib.rs Remove Ident::empty. 2025-05-09 13:57:49 +10:00
macros.rs Remove #[rustc_macro_edition_2021]. 2025-04-20 11:15:46 +02:00
rustdoc.rs rustc_resolve: prevent iteration of refids for completeness 2025-03-27 12:39:48 -04:00