about summary refs log tree commit diff
path: root/src/librustc/driver
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-11-12 12:17:55 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-11-12 12:17:55 -0800
commit065e39bb2fd439d792d8a8f72a7182dfc8b7c5a3 (patch)
tree7dc0761aee6f0eef769a3a4bbc475d3df7a789f4 /src/librustc/driver
parente4ead7b034c96b705ec34b8325f5f9f778f1cbb9 (diff)
downloadrust-065e39bb2fd439d792d8a8f72a7182dfc8b7c5a3.tar.gz
rust-065e39bb2fd439d792d8a8f72a7182dfc8b7c5a3.zip
Register new snapshots
Diffstat (limited to 'src/librustc/driver')
-rw-r--r--src/librustc/driver/mod.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/librustc/driver/mod.rs b/src/librustc/driver/mod.rs
index 8753795d9e2..edd82b42876 100644
--- a/src/librustc/driver/mod.rs
+++ b/src/librustc/driver/mod.rs
@@ -182,21 +182,6 @@ Available lint options:
 
 ");
 
-    // NOTE(stage0): remove function after a snapshot
-    #[cfg(stage0)]
-    fn sort_lints(lints: Vec<(&'static Lint, bool)>) -> Vec<&'static Lint> {
-        let mut lints: Vec<_> = lints.into_iter().map(|(x, _)| x).collect();
-        lints.sort_by(|x: &&Lint, y: &&Lint| {
-            match x.default_level.cmp(&y.default_level) {
-                // The sort doesn't case-fold but it's doubtful we care.
-                Equal => x.name.cmp(&y.name),
-                r => r,
-            }
-        });
-        lints
-    }
-
-    #[cfg(not(stage0))]  // NOTE(stage0): remove cfg after a snapshot
     fn sort_lints(lints: Vec<(&'static Lint, bool)>) -> Vec<&'static Lint> {
         let mut lints: Vec<_> = lints.into_iter().map(|(x, _)| x).collect();
         lints.sort_by(|x: &&Lint, y: &&Lint| {
@@ -209,19 +194,6 @@ Available lint options:
         lints
     }
 
-    // NOTE(stage0): remove function after a snapshot
-    #[cfg(stage0)]
-    fn sort_lint_groups(lints: Vec<(&'static str, Vec<lint::LintId>, bool)>)
-                     -> Vec<(&'static str, Vec<lint::LintId>)> {
-        let mut lints: Vec<_> = lints.into_iter().map(|(x, y, _)| (x, y)).collect();
-        lints.sort_by(|&(x, _): &(&'static str, Vec<lint::LintId>),
-                       &(y, _): &(&'static str, Vec<lint::LintId>)| {
-            x.cmp(&y)
-        });
-        lints
-    }
-
-    #[cfg(not(stage0))]  // NOTE(stage0): remove cfg after a snapshot
     fn sort_lint_groups(lints: Vec<(&'static str, Vec<lint::LintId>, bool)>)
                      -> Vec<(&'static str, Vec<lint::LintId>)> {
         let mut lints: Vec<_> = lints.into_iter().map(|(x, y, _)| (x, y)).collect();