This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,6 @@ impl DefPathTable {
103103pub struct Definitions {
104104 table : DefPathTable ,
105105 next_disambiguator : UnordMap < ( LocalDefId , DefPathData ) , u32 > ,
106-
107- /// The [StableCrateId] of the local crate.
108- stable_crate_id : StableCrateId ,
109106}
110107
111108/// A unique identifier that we can use to lookup a definition
@@ -340,7 +337,7 @@ impl Definitions {
340337 let root = LocalDefId { local_def_index : table. allocate ( key, def_path_hash) } ;
341338 assert_eq ! ( root. local_def_index, CRATE_DEF_INDEX ) ;
342339
343- Definitions { table, next_disambiguator : Default :: default ( ) , stable_crate_id }
340+ Definitions { table, next_disambiguator : Default :: default ( ) }
344341 }
345342
346343 /// Adds a definition with a parent definition.
@@ -382,7 +379,7 @@ impl Definitions {
382379 hash : DefPathHash ,
383380 err : & mut dyn FnMut ( ) -> !,
384381 ) -> LocalDefId {
385- debug_assert ! ( hash. stable_crate_id( ) == self . stable_crate_id) ;
382+ debug_assert ! ( hash. stable_crate_id( ) == self . table . stable_crate_id) ;
386383 self . table
387384 . def_path_hash_to_index
388385 . get ( & hash)
You can’t perform that action at this time.
0 commit comments