reduce the usage of explicit version markers
This commit is contained in:
parent
3ee479f3e9
commit
20ef4238bb
@ -12,7 +12,7 @@
|
||||
|
||||
#[allow(non_camel_case_types)];
|
||||
|
||||
extern mod std(vers = "0.7-pre");
|
||||
extern mod std;
|
||||
|
||||
use core::*;
|
||||
|
||||
|
@ -9,21 +9,21 @@
|
||||
// except according to those terms.
|
||||
|
||||
#[cfg(rustpkg)]
|
||||
extern mod this(name = "rustpkg", vers = "0.7-pre");
|
||||
extern mod this(name = "rustpkg");
|
||||
|
||||
#[cfg(fuzzer)]
|
||||
extern mod this(name = "fuzzer", vers = "0.7-pre");
|
||||
extern mod this(name = "fuzzer");
|
||||
|
||||
#[cfg(rustdoc)]
|
||||
extern mod this(name = "rustdoc", vers = "0.7-pre");
|
||||
extern mod this(name = "rustdoc");
|
||||
|
||||
#[cfg(rusti)]
|
||||
extern mod this(name = "rusti", vers = "0.7-pre");
|
||||
extern mod this(name = "rusti");
|
||||
|
||||
#[cfg(rust)]
|
||||
extern mod this(name = "rust", vers = "0.7-pre");
|
||||
extern mod this(name = "rust");
|
||||
|
||||
#[cfg(rustc)]
|
||||
extern mod this(name = "rustc", vers = "0.7-pre");
|
||||
extern mod this(name = "rustc");
|
||||
|
||||
fn main() { this::main() }
|
||||
|
@ -63,7 +63,7 @@ they contained the following prologue:
|
||||
#[deny(non_camel_case_types)];
|
||||
|
||||
// Make core testable by not duplicating lang items. See #2912
|
||||
#[cfg(test)] extern mod realcore(name = "core", vers = "0.7-pre");
|
||||
#[cfg(test)] extern mod realcore(name = "core");
|
||||
#[cfg(test)] pub use kinds = realcore::kinds;
|
||||
#[cfg(test)] pub use ops = realcore::ops;
|
||||
#[cfg(test)] pub use cmp = realcore::cmp;
|
||||
|
@ -20,8 +20,8 @@
|
||||
|
||||
#[allow(non_camel_case_types)];
|
||||
|
||||
extern mod std(vers = "0.7-pre");
|
||||
extern mod syntax(vers = "0.7-pre");
|
||||
extern mod std;
|
||||
extern mod syntax;
|
||||
|
||||
use core::run;
|
||||
|
||||
|
@ -20,10 +20,10 @@
|
||||
#[license = "MIT/ASL2"];
|
||||
#[crate_type = "lib"];
|
||||
|
||||
extern mod rustpkg(vers = "0.7-pre");
|
||||
extern mod rustdoc(vers = "0.7-pre");
|
||||
extern mod rusti(vers = "0.7-pre");
|
||||
extern mod rustc(vers = "0.7-pre");
|
||||
extern mod rustpkg;
|
||||
extern mod rustdoc;
|
||||
extern mod rusti;
|
||||
extern mod rustc;
|
||||
|
||||
use core::run;
|
||||
|
||||
|
@ -21,9 +21,8 @@
|
||||
#[allow(non_camel_case_types)];
|
||||
#[deny(deprecated_pattern)];
|
||||
|
||||
extern mod std(vers = "0.7-pre");
|
||||
extern mod syntax(vers = "0.7-pre");
|
||||
|
||||
extern mod std;
|
||||
extern mod syntax;
|
||||
|
||||
use driver::driver::{host_triple, optgroups, early_error};
|
||||
use driver::driver::{str_input, file_input, build_session_options};
|
||||
|
@ -21,9 +21,9 @@
|
||||
|
||||
#[allow(non_implicitly_copyable_typarams)];
|
||||
|
||||
extern mod std(vers = "0.7-pre");
|
||||
extern mod rustc(vers = "0.7-pre");
|
||||
extern mod syntax(vers = "0.7-pre");
|
||||
extern mod std;
|
||||
extern mod rustc;
|
||||
extern mod syntax;
|
||||
|
||||
use config::Config;
|
||||
use doc::Item;
|
||||
|
@ -18,9 +18,9 @@
|
||||
#[license = "MIT/ASL2"];
|
||||
#[crate_type = "lib"];
|
||||
|
||||
extern mod std(vers = "0.7-pre");
|
||||
extern mod rustc(vers = "0.7-pre");
|
||||
extern mod syntax(vers = "0.7-pre");
|
||||
extern mod std;
|
||||
extern mod rustc;
|
||||
extern mod syntax;
|
||||
|
||||
use core::*;
|
||||
use core::cell::Cell;
|
||||
|
@ -18,9 +18,9 @@
|
||||
#[license = "MIT/ASL2"];
|
||||
#[crate_type = "lib"];
|
||||
|
||||
extern mod std(vers = "0.7-pre");
|
||||
extern mod rustc(vers = "0.7-pre");
|
||||
extern mod syntax(vers = "0.7-pre");
|
||||
extern mod std;
|
||||
extern mod rustc;
|
||||
extern mod syntax;
|
||||
|
||||
use core::*;
|
||||
pub use core::path::Path;
|
||||
|
@ -23,7 +23,7 @@
|
||||
#[allow(non_camel_case_types)];
|
||||
#[deny(deprecated_pattern)];
|
||||
|
||||
extern mod std(vers = "0.7-pre");
|
||||
extern mod std;
|
||||
|
||||
// allow the interner_key macro
|
||||
// to escape this module:
|
||||
|
Loading…
Reference in New Issue
Block a user