File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,6 @@ impl DefPathTable {
103
103
pub struct Definitions {
104
104
table : DefPathTable ,
105
105
next_disambiguator : UnordMap < ( LocalDefId , DefPathData ) , u32 > ,
106
-
107
- /// The [StableCrateId] of the local crate.
108
- stable_crate_id : StableCrateId ,
109
106
}
110
107
111
108
/// A unique identifier that we can use to lookup a definition
@@ -342,7 +339,7 @@ impl Definitions {
342
339
let root = LocalDefId { local_def_index : table. allocate ( key, def_path_hash) } ;
343
340
assert_eq ! ( root. local_def_index, CRATE_DEF_INDEX ) ;
344
341
345
- Definitions { table, next_disambiguator : Default :: default ( ) , stable_crate_id }
342
+ Definitions { table, next_disambiguator : Default :: default ( ) }
346
343
}
347
344
348
345
/// Adds a definition with a parent definition.
@@ -384,7 +381,7 @@ impl Definitions {
384
381
hash : DefPathHash ,
385
382
err : & mut dyn FnMut ( ) -> !,
386
383
) -> LocalDefId {
387
- debug_assert ! ( hash. stable_crate_id( ) == self . stable_crate_id) ;
384
+ debug_assert ! ( hash. stable_crate_id( ) == self . table . stable_crate_id) ;
388
385
self . table
389
386
. def_path_hash_to_index
390
387
. get ( & hash)
You can’t perform that action at this time.
0 commit comments