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
@@ -340,7 +337,7 @@ impl Definitions {
340
337
let root = LocalDefId { local_def_index : table. allocate ( key, def_path_hash) } ;
341
338
assert_eq ! ( root. local_def_index, CRATE_DEF_INDEX ) ;
342
339
343
- Definitions { table, next_disambiguator : Default :: default ( ) , stable_crate_id }
340
+ Definitions { table, next_disambiguator : Default :: default ( ) }
344
341
}
345
342
346
343
/// Adds a definition with a parent definition.
@@ -382,7 +379,7 @@ impl Definitions {
382
379
hash : DefPathHash ,
383
380
err : & mut dyn FnMut ( ) -> !,
384
381
) -> LocalDefId {
385
- debug_assert ! ( hash. stable_crate_id( ) == self . stable_crate_id) ;
382
+ debug_assert ! ( hash. stable_crate_id( ) == self . table . stable_crate_id) ;
386
383
self . table
387
384
. def_path_hash_to_index
388
385
. get ( & hash)
You can’t perform that action at this time.
0 commit comments