about summary refs log tree commit diff
path: root/src/librustc/front
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-06-14 11:03:34 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-06-15 23:30:24 -0700
commit89b0e6e12ba2fb24ec0e6655a1130c16eb8d1745 (patch)
tree842308cfd38935989d625db41ffdd22758f8acdb /src/librustc/front
parent6d8342f5e9f7093694548e761ee7df4f55243f3f (diff)
Register new snapshots
Diffstat (limited to 'src/librustc/front')
-rw-r--r--src/librustc/front/feature_gate.rs10
-rw-r--r--src/librustc/front/std_inject.rs8
2 files changed, 0 insertions, 18 deletions
diff --git a/src/librustc/front/feature_gate.rs b/src/librustc/front/feature_gate.rs
index 1204a2d97b2..30d0c6d0564 100644
--- a/src/librustc/front/feature_gate.rs
+++ b/src/librustc/front/feature_gate.rs
@@ -108,16 +108,6 @@ struct Context<'a> {
 }
 
 impl<'a> Context<'a> {
-    #[cfg(stage0)]
-    fn gate_feature(&self, feature: &str, span: Span, explain: &str) {
-        if !self.has_feature(feature) {
-            self.sess.span_err(span, explain);
-            self.sess.span_note(span, format!("add \\#![feature({})] to the \
-                                                  crate attributes to enable",
-                                                 feature).as_slice());
-        }
-    }
-    #[cfg(not(stage0))]
     fn gate_feature(&self, feature: &str, span: Span, explain: &str) {
         if !self.has_feature(feature) {
             self.sess.span_err(span, explain);
diff --git a/src/librustc/front/std_inject.rs b/src/librustc/front/std_inject.rs
index bdb884cc822..401d3fd9b24 100644
--- a/src/librustc/front/std_inject.rs
+++ b/src/librustc/front/std_inject.rs
@@ -63,14 +63,6 @@ struct StandardLibraryInjector<'a> {
 pub fn with_version(krate: &str) -> Option<(InternedString, ast::StrStyle)> {
     match option_env!("CFG_DISABLE_INJECT_STD_VERSION") {
         Some("1") => None,
-        #[cfg(stage0)]
-        _ => {
-            Some((token::intern_and_get_ident(format!("{}\\#{}",
-                                                      krate,
-                                                      VERSION).as_slice()),
-                  ast::CookedStr))
-        }
-        #[cfg(not(stage0))]
         _ => {
             Some((token::intern_and_get_ident(format!("{}#{}",
                                                       krate,