Skip to content

Commit f2fd000

Browse files
committed
Fix incremental tests
1 parent f91d7ba commit f2fd000

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustc_metadata/decoder.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,10 +647,12 @@ impl<'a, 'tcx> CrateMetadata {
647647

648648
/// Iterates over all the stability attributes in the given crate.
649649
pub fn get_lib_features(&self) -> Vec<(ast::Name, Option<ast::Name>)> {
650-
self.root
650+
let mut features: Vec<_> = self.root
651651
.lib_features
652652
.decode(self)
653-
.collect()
653+
.collect();
654+
features.sort_unstable_by_key(|f| f.0.as_str());
655+
features
654656
}
655657

656658
/// Iterates over the language items in the given crate.

0 commit comments

Comments
 (0)