extern mod => extern crate
This was previously implemented, and it just needed a snapshot to go through
This commit is contained in:
parent
359ac360a4
commit
a41b0c2529
438 changed files with 682 additions and 685 deletions
|
|
@ -13,6 +13,6 @@
|
|||
#[crate_id="crateresolve4b#0.1"];
|
||||
#[crate_type = "lib"];
|
||||
|
||||
extern mod crateresolve4a = "crateresolve4a#0.2";
|
||||
extern crate crateresolve4a = "crateresolve4a#0.2";
|
||||
|
||||
pub fn f() -> int { crateresolve4a::g() }
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@
|
|||
#[crate_id="crateresolve4b#0.2"];
|
||||
#[crate_type = "lib"];
|
||||
|
||||
extern mod crateresolve4a = "crateresolve4a#0.1";
|
||||
extern crate crateresolve4a = "crateresolve4a#0.1";
|
||||
|
||||
pub fn g() -> int { crateresolve4a::f() }
|
||||
|
|
|
|||
|
|
@ -14,11 +14,11 @@
|
|||
|
||||
// These both have the same version but differ in other metadata
|
||||
pub mod a {
|
||||
extern mod cr_1 (name = "crateresolve_calories", vers = "0.1", calories="100");
|
||||
extern crate cr_1 (name = "crateresolve_calories", vers = "0.1", calories="100");
|
||||
pub fn f() -> int { cr_1::f() }
|
||||
}
|
||||
|
||||
pub mod b {
|
||||
extern mod cr_2 (name = "crateresolve_calories", vers = "0.1", calories="200");
|
||||
extern crate cr_2 (name = "crateresolve_calories", vers = "0.1", calories="200");
|
||||
pub fn f() -> int { cr_2::f() }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,4 +13,4 @@
|
|||
#[crate_id="b#0.1"];
|
||||
#[crate_type = "lib"];
|
||||
|
||||
extern mod a;
|
||||
extern crate a;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#[crate_id="issue_2526#0.2"];
|
||||
#[crate_type = "lib"];
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
struct arc_destruct<T> {
|
||||
_data: int,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
#[crate_id="req"];
|
||||
#[crate_type = "lib"];
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
use std::cell::RefCell;
|
||||
use std::hashmap::HashMap;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-fast windows doesn't like extern mod
|
||||
// ignore-fast windows doesn't like extern crate
|
||||
// aux-build:issue-9906.rs
|
||||
|
||||
pub use other::FooBar;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#[crate_type = "lib"];
|
||||
|
||||
extern mod issue2378a;
|
||||
extern crate issue2378a;
|
||||
|
||||
use issue2378a::maybe;
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#[crate_id="c#0.1"];
|
||||
#[crate_type = "lib"];
|
||||
|
||||
extern mod a;
|
||||
extern crate a;
|
||||
|
||||
use a::to_strz;
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#[allow(unused_imports)];
|
||||
#[feature(globs)];
|
||||
|
||||
extern mod issue_2316_a;
|
||||
extern crate issue_2316_a;
|
||||
|
||||
pub mod cloth {
|
||||
use issue_2316_a::*;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#[feature(macro_registrar)];
|
||||
|
||||
extern mod syntax;
|
||||
extern crate syntax;
|
||||
|
||||
use std::any::Any;
|
||||
use std::local_data;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#[feature(globs, macro_registrar, macro_rules, quote)];
|
||||
|
||||
extern mod syntax;
|
||||
extern crate syntax;
|
||||
|
||||
use syntax::ast::{Name, TokenTree};
|
||||
use syntax::codemap::Span;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod pub_use_xcrate1;
|
||||
extern crate pub_use_xcrate1;
|
||||
|
||||
pub use pub_use_xcrate1::Foo;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// aux-build:trait_default_method_xc_aux.rs
|
||||
|
||||
extern mod aux = "trait_default_method_xc_aux";
|
||||
extern crate aux = "trait_default_method_xc_aux";
|
||||
use aux::A;
|
||||
|
||||
pub struct a_struct { x: int }
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
extern mod collections;
|
||||
extern crate extra;
|
||||
extern crate collections;
|
||||
|
||||
use extra::time;
|
||||
use collections::TreeMap;
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
extern mod collections;
|
||||
extern crate extra;
|
||||
extern crate collections;
|
||||
|
||||
use collections::bitv::BitvSet;
|
||||
use collections::TreeSet;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#[feature(macro_rules)];
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
use extra::time::precise_time_s;
|
||||
use std::mem::swap;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
// different scalability characteristics compared to the select
|
||||
// version.
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
use std::comm;
|
||||
use std::os;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
//
|
||||
// I *think* it's the same, more or less.
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
use std::os;
|
||||
use std::task;
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
|
||||
// This also serves as a pipes test, because Arcs are implemented with pipes.
|
||||
|
||||
extern mod extra;
|
||||
extern mod sync;
|
||||
extern crate extra;
|
||||
extern crate sync;
|
||||
|
||||
use sync::Arc;
|
||||
use sync::MutexArc;
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
|
||||
// This also serves as a pipes test, because Arcs are implemented with pipes.
|
||||
|
||||
extern mod extra;
|
||||
extern mod sync;
|
||||
extern crate extra;
|
||||
extern crate sync;
|
||||
|
||||
use sync::RWArc;
|
||||
use sync::Future;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
use std::os;
|
||||
use std::uint;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
use std::os;
|
||||
use std::uint;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
use std::task::spawn;
|
||||
use std::os;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
use std::os;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod sync;
|
||||
extern mod arena;
|
||||
extern crate sync;
|
||||
extern crate arena;
|
||||
|
||||
use std::iter::range_step;
|
||||
use sync::Future;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// chameneos
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
use std::option;
|
||||
use std::os;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
use std::os;
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
// ignore-pretty the `let to_child` line gets an extra newline
|
||||
// multi tasking k-nucleotide
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
use std::cmp::Ord;
|
||||
use std::comm;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// ignore-test
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
use std::cast::transmute;
|
||||
use std::i32::range;
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
|
||||
*/
|
||||
|
||||
extern mod extra;
|
||||
extern mod getopts;
|
||||
extern crate extra;
|
||||
extern crate getopts;
|
||||
|
||||
use extra::time;
|
||||
use std::os;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod num;
|
||||
extern crate num;
|
||||
|
||||
use std::from_str::FromStr;
|
||||
use std::num::One;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// ignore-test arcs no longer unwrap
|
||||
|
||||
extern mod sync;
|
||||
extern crate sync;
|
||||
|
||||
use std::from_str::FromStr;
|
||||
use std::iter::count;
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
// Microbenchmark for the smallintmap library
|
||||
|
||||
extern mod extra;
|
||||
extern mod collections;
|
||||
extern crate extra;
|
||||
extern crate collections;
|
||||
|
||||
use collections::SmallIntMap;
|
||||
use std::os;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#[feature(managed_boxes)];
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
use std::io;
|
||||
use std::io::stdio::StdReader;
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
#[feature(managed_boxes)];
|
||||
|
||||
extern mod extra;
|
||||
extern mod collections;
|
||||
extern crate extra;
|
||||
extern crate collections;
|
||||
|
||||
use collections::list::{List, Cons, Nil};
|
||||
use extra::time::precise_time_s;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// ignore-fast aux-build
|
||||
// aux-build:ambig_impl_2_lib.rs
|
||||
extern mod ambig_impl_2_lib;
|
||||
extern crate ambig_impl_2_lib;
|
||||
use ambig_impl_2_lib::me;
|
||||
trait me {
|
||||
fn me(&self) -> uint;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod sync;
|
||||
extern crate sync;
|
||||
use sync::RWArc;
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
// error-pattern: lifetime of return value does not outlive the function call
|
||||
extern mod sync;
|
||||
extern crate sync;
|
||||
use sync::RWArc;
|
||||
fn main() {
|
||||
let x = ~RWArc::new(1);
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod sync;
|
||||
extern crate sync;
|
||||
use sync::RWArc;
|
||||
fn main() {
|
||||
let x = ~RWArc::new(1);
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod sync;
|
||||
extern crate sync;
|
||||
use sync::RWArc;
|
||||
fn main() {
|
||||
let x = ~RWArc::new(1);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
// error-pattern: lifetime of variable does not enclose its declaration
|
||||
extern mod sync;
|
||||
extern crate sync;
|
||||
use sync::RWArc;
|
||||
fn main() {
|
||||
let x = ~RWArc::new(1);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
// error-pattern: lifetime of variable does not enclose its declaration
|
||||
extern mod sync;
|
||||
extern crate sync;
|
||||
use sync::RWArc;
|
||||
fn main() {
|
||||
let x = ~RWArc::new(1);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
// Test for traits inheriting from the builtin kinds cross-crate.
|
||||
// Mostly tests correctness of metadata.
|
||||
|
||||
extern mod trait_superkinds_in_metadata;
|
||||
extern crate trait_superkinds_in_metadata;
|
||||
use trait_superkinds_in_metadata::{RequiresRequiresFreezeAndSend, RequiresFreeze};
|
||||
|
||||
struct X<T>(T);
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
// Tests that methods that implement a trait cannot be invoked
|
||||
// unless the trait is imported.
|
||||
|
||||
extern mod coherence_inherent_cc_lib;
|
||||
extern crate coherence_inherent_cc_lib;
|
||||
|
||||
mod Import {
|
||||
// Trait is in scope here:
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
// 'conflicting implementations' error message.
|
||||
|
||||
// aux-build:trait_impl_conflict.rs
|
||||
extern mod trait_impl_conflict;
|
||||
extern crate trait_impl_conflict;
|
||||
use trait_impl_conflict::Foo;
|
||||
|
||||
impl<A> Foo for A {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
// aux-build:crateresolve1-3.rs
|
||||
// error-pattern:multiple matching crates for `crateresolve1`
|
||||
|
||||
extern mod crateresolve1;
|
||||
extern crate crateresolve1;
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,10 +13,10 @@
|
|||
// aux-build:crateresolve2-3.rs
|
||||
// error-pattern:using multiple versions of crate `crateresolve2`
|
||||
|
||||
extern mod crateresolve2 = "crateresolve2#0.1";
|
||||
extern crate crateresolve2 = "crateresolve2#0.1";
|
||||
|
||||
mod m {
|
||||
pub extern mod crateresolve2 = "crateresolve2#0.2";
|
||||
pub extern crate crateresolve2 = "crateresolve2#0.2";
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@
|
|||
// aux-build:crateresolve5-1.rs
|
||||
// aux-build:crateresolve5-2.rs
|
||||
|
||||
extern mod cr5_1 = "crateresolve5#0.1";
|
||||
extern mod cr5_2 = "crateresolve5#0.2";
|
||||
extern crate cr5_1 = "crateresolve5#0.1";
|
||||
extern crate cr5_2 = "crateresolve5#0.2";
|
||||
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
#[deriving(Clone)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
#[deriving(Clone)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
#[deriving(Clone)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
#[deriving(Clone)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
#[deriving(TotalEq)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
#[deriving(TotalEq)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
#[deriving(TotalEq)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
#[deriving(TotalEq)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// issue 7327
|
||||
|
||||
// ignore-fast #7103
|
||||
extern mod sync;
|
||||
extern crate sync;
|
||||
use sync::Arc;
|
||||
|
||||
struct A { y: Arc<int>, x: Arc<int> }
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod sync;
|
||||
extern crate sync;
|
||||
|
||||
use sync::Future;
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
|
||||
extern mod bäz; //~ ERROR non-ascii idents
|
||||
extern crate bäz; //~ ERROR non-ascii idents
|
||||
|
||||
use föö::bar; //~ ERROR non-ascii idents
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,6 @@
|
|||
|
||||
#[phase(syntax)]
|
||||
//~^ ERROR compile time crate loading is experimental and possibly buggy
|
||||
extern mod macro_crate_test;
|
||||
extern crate macro_crate_test;
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@
|
|||
#[simd]
|
||||
pub struct i64x2(i64, i64); //~ ERROR: SIMD types are experimental
|
||||
|
||||
fn main() {}
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// aux-build:private_trait_xc.rs
|
||||
|
||||
extern mod private_trait_xc;
|
||||
extern crate private_trait_xc;
|
||||
|
||||
struct Bar;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
fn siphash(k0 : u64) {
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
fn siphash<T>() {
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
trait siphash {
|
||||
fn result(&self) -> u64;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
extern crate extra;
|
||||
|
||||
trait SipHash {
|
||||
fn reset(&self);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
// aux-build:issue_3907.rs
|
||||
extern mod issue_3907;
|
||||
extern crate issue_3907;
|
||||
|
||||
type Foo = issue_3907::Foo; //~ ERROR: reference to trait
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
//aux-build:issue_5844_aux.rs
|
||||
|
||||
extern mod issue_5844_aux;
|
||||
extern crate issue_5844_aux;
|
||||
|
||||
fn main () {
|
||||
issue_5844_aux::rand(); //~ ERROR: requires unsafe
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
pub extern mod std; //~ ERROR: `pub` visibility is not allowed
|
||||
priv extern mod std; //~ ERROR: unnecessary visibility qualifier
|
||||
extern mod std;
|
||||
pub extern crate std; //~ ERROR: `pub` visibility is not allowed
|
||||
priv extern crate std; //~ ERROR: unnecessary visibility qualifier
|
||||
extern crate std;
|
||||
|
||||
pub use std::bool;
|
||||
priv use std::bool; //~ ERROR: unnecessary visibility qualifier
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
#[allow(dead_code)];
|
||||
|
||||
mod cross_crate {
|
||||
extern mod lint_stability;
|
||||
extern crate lint_stability;
|
||||
use self::lint_stability::*;
|
||||
|
||||
fn test() {
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@
|
|||
|
||||
fn main() {
|
||||
log_syntax!() //~ ERROR `log_syntax!` is not stable enough
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue