1
Fork 0

Include rustc version in rustc_span::StableCrateId

Normalize symbol hashes in compiletest.

Remove DefId sorting
This commit is contained in:
pierwill 2021-10-20 15:14:16 -05:00
parent a737592a3d
commit 7d7dfba350
50 changed files with 261 additions and 204 deletions

View file

@ -2009,7 +2009,7 @@ impl<'a, 'tcx> LifetimeContext<'a, 'tcx> {
}
};
let mut def_ids: Vec<_> = defined_by
let def_ids: Vec<_> = defined_by
.values()
.flat_map(|region| match region {
Region::EarlyBound(_, def_id, _)
@ -2020,9 +2020,6 @@ impl<'a, 'tcx> LifetimeContext<'a, 'tcx> {
})
.collect();
// ensure that we issue lints in a repeatable order
def_ids.sort_by_cached_key(|&def_id| self.tcx.def_path_hash(def_id));
'lifetimes: for def_id in def_ids {
debug!("check_uses_for_lifetimes_defined_by_scope: def_id = {:?}", def_id);