diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-11-12 12:17:55 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-11-12 12:17:55 -0800 |
| commit | 065e39bb2fd439d792d8a8f72a7182dfc8b7c5a3 (patch) | |
| tree | 7dc0761aee6f0eef769a3a4bbc475d3df7a789f4 /src/librustc/driver | |
| parent | e4ead7b034c96b705ec34b8325f5f9f778f1cbb9 (diff) | |
| download | rust-065e39bb2fd439d792d8a8f72a7182dfc8b7c5a3.tar.gz rust-065e39bb2fd439d792d8a8f72a7182dfc8b7c5a3.zip | |
Register new snapshots
Diffstat (limited to 'src/librustc/driver')
| -rw-r--r-- | src/librustc/driver/mod.rs | 28 |
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(); |
