Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 077540c

Browse files
Address review comments and add back some #[inline] attrs from removed commits.
1 parent 900a11b commit 077540c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎compiler/rustc_data_structures/src/unord.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ impl<T, I: Iterator<Item = T>> UnordItems<T, I> {
159159
self.collect_stable_ord_by_key(project_to_key)
160160
}
161161

162+
#[inline]
162163
pub fn collect_sorted<HCX, C>(self, hcx: &HCX, cache_sort_key: bool) -> C
163164
where
164165
T: ToStableHashKey<HCX>,
@@ -178,6 +179,7 @@ impl<T, I: Iterator<Item = T>> UnordItems<T, I> {
178179
items
179180
}
180181

182+
#[inline]
181183
pub fn collect_stable_ord_by_key<K, C, P>(self, project_to_key: P) -> C
182184
where
183185
K: StableCompare,

‎compiler/rustc_passes/src/stability.rs‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,8 +1052,6 @@ pub fn check_unused_or_stable_features(tcx: TyCtxt<'_>) {
10521052
tcx.dcx().emit_err(errors::UnknownFeature { span, feature: *feature });
10531053
}
10541054

1055-
// We only use the hash map contents to emit errors, and the order of
1056-
// emitted errors do not affect query stability.
10571055
for (&implied_by, &feature) in remaining_implications.to_sorted_stable_ord() {
10581056
let local_defined_features = tcx.lib_features(LOCAL_CRATE);
10591057
let span = local_defined_features

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /