File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
compiler/rustc_middle/src/hir Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1173,10 +1173,12 @@ pub(super) fn crate_hash(tcx: TyCtxt<'_>, _: LocalCrate) -> Svh {
1173
1173
debugger_visualizers. hash_stable ( & mut hcx, & mut stable_hasher) ;
1174
1174
if tcx. sess . opts . incremental . is_some ( ) {
1175
1175
let definitions = tcx. untracked ( ) . definitions . freeze ( ) ;
1176
- let mut owner_spans: Vec < _ > = krate
1177
- . owners
1178
- . iter_enumerated ( )
1179
- . filter_map ( |( def_id, info) | {
1176
+ let mut owner_spans: Vec < _ > = definitions
1177
+ . def_path_table ( )
1178
+ . def_keys ( )
1179
+ . filter_map ( |local_def_index| {
1180
+ let def_id = LocalDefId { local_def_index } ;
1181
+ let info = tcx. hir_owner ( def_id) ;
1180
1182
let _ = info. as_owner ( ) ?;
1181
1183
let def_path_hash = definitions. def_path_hash ( def_id) ;
1182
1184
let span = tcx. source_span ( def_id) ;
You can’t perform that action at this time.
0 commit comments