@@ -261,14 +261,16 @@ pub enum DefPathData {
261261 // they are treated specially by the `def_path` function.
262262 /// The crate root (marker).
263263 CrateRoot ,
264- // Catch-all for random `DefId` things like `DUMMY_NODE_ID`.
265- Misc ,
266264
267265 // Different kinds of items and item-like things:
268266 /// An impl.
269267 Impl ,
270268 /// An `extern` block.
271269 ForeignMod ,
270+ /// A `use` item.
271+ Use ,
272+ /// A global asm item.
273+ GlobalAsm ,
272274 /// Something in the type namespace.
273275 TypeNs ( Symbol ) ,
274276 /// Something in the value namespace.
@@ -443,9 +445,8 @@ impl DefPathData {
443445 match * self {
444446 TypeNs ( name) | ValueNs ( name) | MacroNs ( name) | LifetimeNs ( name) => Some ( name) ,
445447
446- Impl | ForeignMod | CrateRoot | Misc | ClosureExpr | Ctor | AnonConst | ImplTrait => {
447- None
448- }
448+ Impl | ForeignMod | CrateRoot | Use | GlobalAsm | ClosureExpr | Ctor | AnonConst
449+ | ImplTrait => None ,
449450 }
450451 }
451452
@@ -459,7 +460,8 @@ impl DefPathData {
459460 CrateRoot => DefPathDataName :: Anon { namespace : kw:: Crate } ,
460461 Impl => DefPathDataName :: Anon { namespace : kw:: Impl } ,
461462 ForeignMod => DefPathDataName :: Anon { namespace : kw:: Extern } ,
462- Misc => DefPathDataName :: Anon { namespace : sym:: misc } ,
463+ Use => DefPathDataName :: Anon { namespace : kw:: Use } ,
464+ GlobalAsm => DefPathDataName :: Anon { namespace : sym:: global_asm } ,
463465 ClosureExpr => DefPathDataName :: Anon { namespace : sym:: closure } ,
464466 Ctor => DefPathDataName :: Anon { namespace : sym:: constructor } ,
465467 AnonConst => DefPathDataName :: Anon { namespace : sym:: constant } ,
0 commit comments