]> git.lizzy.rs Git - rust.git/commitdiff
Fix incremental tests
authorvarkor <github@varkor.com>
Tue, 24 Jul 2018 12:37:41 +0000 (13:37 +0100)
committervarkor <github@varkor.com>
Sun, 5 Aug 2018 14:54:49 +0000 (15:54 +0100)
src/librustc_metadata/decoder.rs

index 45a61ec33085d2345e1fde4d47ce1fc1b3688a4f..032f8bdd069a7b4ff0d93870ef3484826d37144d 100644 (file)
@@ -647,10 +647,12 @@ pub fn get_impl_trait(&self,
 
     /// Iterates over all the stability attributes in the given crate.
     pub fn get_lib_features(&self) -> Vec<(ast::Name, Option<ast::Name>)> {
-        self.root
+        let mut features: Vec<_> = self.root
             .lib_features
             .decode(self)
-            .collect()
+            .collect();
+        features.sort_unstable_by_key(|f| f.0.as_str());
+        features
     }
 
     /// Iterates over the language items in the given crate.