about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2024-01-04 13:51:06 +0100
committerMichael Woerister <michaelwoerister@posteo>2024-01-04 13:51:06 +0100
commit077540cedf836b3c6e17db39de21e2278bae90fc (patch)
tree072d3a07cc2469d1831ab4bb197c71ed1f7ff20f /compiler
parent900a11bbec52fdae89012ccb3ea4045edddc3995 (diff)
downloadrust-077540cedf836b3c6e17db39de21e2278bae90fc.tar.gz
rust-077540cedf836b3c6e17db39de21e2278bae90fc.zip
Address review comments and add back some #[inline] attrs from removed commits.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_data_structures/src/unord.rs2
-rw-r--r--compiler/rustc_passes/src/stability.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_data_structures/src/unord.rs b/compiler/rustc_data_structures/src/unord.rs
index 476ea432a0c..bd4dff6f62f 100644
--- a/compiler/rustc_data_structures/src/unord.rs
+++ b/compiler/rustc_data_structures/src/unord.rs
@@ -159,6 +159,7 @@ impl<T, I: Iterator<Item = T>> UnordItems<T, I> {
         self.collect_stable_ord_by_key(project_to_key)
     }
 
+    #[inline]
     pub fn collect_sorted<HCX, C>(self, hcx: &HCX, cache_sort_key: bool) -> C
     where
         T: ToStableHashKey<HCX>,
@@ -178,6 +179,7 @@ impl<T, I: Iterator<Item = T>> UnordItems<T, I> {
         items
     }
 
+    #[inline]
     pub fn collect_stable_ord_by_key<K, C, P>(self, project_to_key: P) -> C
     where
         K: StableCompare,
diff --git a/compiler/rustc_passes/src/stability.rs b/compiler/rustc_passes/src/stability.rs
index adf4c231f78..18b9ba0f042 100644
--- a/compiler/rustc_passes/src/stability.rs
+++ b/compiler/rustc_passes/src/stability.rs
@@ -1052,8 +1052,6 @@ pub fn check_unused_or_stable_features(tcx: TyCtxt<'_>) {
         tcx.dcx().emit_err(errors::UnknownFeature { span, feature: *feature });
     }
 
-    // We only use the hash map contents to emit errors, and the order of
-    // emitted errors do not affect query stability.
     for (&implied_by, &feature) in remaining_implications.to_sorted_stable_ord() {
         let local_defined_features = tcx.lib_features(LOCAL_CRATE);
         let span = local_defined_features