auto merge of #13493 : Manishearth/rust/newattr-everywhere, r=alexcrichton
See #13478
This commit is contained in:
commit
246ebd2d5a
473 changed files with 607 additions and 607 deletions
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="anonexternmod#0.1"];
|
||||
#![crate_id="anonexternmod#0.1"]
|
||||
|
||||
extern crate libc;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="cci_impl_lib"];
|
||||
#![crate_id="cci_impl_lib"]
|
||||
|
||||
pub trait uint_helpers {
|
||||
fn to(&self, v: uint, f: |uint|);
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="cci_iter_lib"];
|
||||
#![crate_id="cci_iter_lib"]
|
||||
|
||||
#[inline]
|
||||
pub fn iter<T>(v: &[T], f: |&T|) {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[feature(managed_boxes)];
|
||||
#![feature(managed_boxes)]
|
||||
|
||||
use std::cell::RefCell;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="cci_no_inline_lib"];
|
||||
#![crate_id="cci_no_inline_lib"]
|
||||
|
||||
|
||||
// same as cci_iter_lib, more-or-less, but not marked inline
|
||||
|
|
|
|||
|
|
@ -8,6 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id = "a"];
|
||||
#![crate_id = "a"]
|
||||
|
||||
pub fn foo<T>() {}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id = "a"];
|
||||
#![crate_id = "a"]
|
||||
|
||||
pub fn foo<T>() { println!("hello!"); }
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id = "b"];
|
||||
#![crate_id = "b"]
|
||||
|
||||
extern crate a;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[feature(managed_boxes)];
|
||||
#[crate_id="crate_method_reexport_grrrrrrr2"];
|
||||
#![feature(managed_boxes)]
|
||||
#![crate_id="crate_method_reexport_grrrrrrr2"]
|
||||
|
||||
pub use name_pool::add;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="crateresolve1#0.1"];
|
||||
#![crate_id="crateresolve1#0.1"]
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn f() -> int { 10 }
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="crateresolve1#0.2"];
|
||||
#![crate_id="crateresolve1#0.2"]
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn f() -> int { 20 }
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="crateresolve1#0.3"];
|
||||
#![crate_id="crateresolve1#0.3"]
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn f() -> int { 30 }
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="crateresolve2#0.1"];
|
||||
#![crate_id="crateresolve2#0.1"]
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn f() -> int { 10 }
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="crateresolve2#0.2"];
|
||||
#![crate_id="crateresolve2#0.2"]
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn f() -> int { 20 }
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="crateresolve2#0.3"];
|
||||
#![crate_id="crateresolve2#0.3"]
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn f() -> int { 30 }
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="crateresolve3#0.1"];
|
||||
#![crate_id="crateresolve3#0.1"]
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn f() -> int { 10 }
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="crateresolve3#0.2"];
|
||||
#![crate_id="crateresolve3#0.2"]
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn g() -> int { 20 }
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="crateresolve4a#0.1"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="crateresolve4a#0.1"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn f() -> int { 10 }
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="crateresolve4a#0.2"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="crateresolve4a#0.2"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn g() -> int { 20 }
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
// aux-build:crateresolve4a-1.rs
|
||||
// aux-build:crateresolve4a-2.rs
|
||||
#[crate_id="crateresolve4b#0.1"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="crateresolve4b#0.1"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
extern crate crateresolve4a = "crateresolve4a#0.2";
|
||||
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
// aux-build:crateresolve4a-1.rs
|
||||
// aux-build:crateresolve4a-2.rs
|
||||
#[crate_id="crateresolve4b#0.2"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="crateresolve4b#0.2"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
extern crate crateresolve4a = "crateresolve4a#0.1";
|
||||
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="crateresolve5#0.1"];
|
||||
#![crate_id="crateresolve5#0.1"]
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub struct NameVal { pub name: ~str, pub val: int }
|
||||
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="crateresolve5#0.2"];
|
||||
#![crate_id="crateresolve5#0.2"]
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub struct NameVal { pub name: ~str, pub val: int }
|
||||
pub fn struct_nameval() -> NameVal {
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@
|
|||
// except according to those terms.
|
||||
|
||||
// default link meta for 'package_id' will be equal to filestem
|
||||
#[crate_id="crateresolve8#0.1"];
|
||||
#![crate_id="crateresolve8#0.1"]
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn f() -> int { 20 }
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="crateresolve_calories#0.1"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="crateresolve_calories#0.1"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn f() -> int { 100 }
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="crateresolve_calories#0.1"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="crateresolve_calories#0.1"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn f() -> int { 200 }
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[feature(default_type_params)];
|
||||
#![feature(default_type_params)]
|
||||
|
||||
pub struct Heap;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="externcallback#0.1"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="externcallback#0.1"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
extern crate libc;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_type="lib"];
|
||||
#![crate_type="lib"]
|
||||
|
||||
pub mod extern_mod_ordering_lib {
|
||||
pub fn f() {}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="foreign_lib"];
|
||||
#![crate_id="foreign_lib"]
|
||||
|
||||
pub mod rustrt {
|
||||
extern crate libc;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub struct Fish {
|
||||
pub x: int
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="inline_dtor#0.1"];
|
||||
#![crate_id="inline_dtor#0.1"]
|
||||
|
||||
pub struct Foo;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="issue6919_3#0.1"];
|
||||
#![crate_id="issue6919_3#0.1"]
|
||||
|
||||
// part of issue-6919.rs
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[deny(dead_code)];
|
||||
#![deny(dead_code)]
|
||||
|
||||
mod inner {
|
||||
pub trait Trait {
|
||||
|
|
|
|||
|
|
@ -10,5 +10,5 @@
|
|||
|
||||
// no-prefer-dynamic
|
||||
|
||||
#[crate_id = "collections#0.11-pre"];
|
||||
#[crate_type = "dylib"];
|
||||
#![crate_id = "collections#0.11-pre"]
|
||||
#![crate_type = "dylib"]
|
||||
|
|
|
|||
|
|
@ -10,5 +10,5 @@
|
|||
|
||||
// no-prefer-dynamic
|
||||
|
||||
#[crate_id = "collections#0.11-pre"];
|
||||
#[crate_type = "rlib"];
|
||||
#![crate_id = "collections#0.11-pre"]
|
||||
#![crate_type = "rlib"]
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@
|
|||
|
||||
// no-prefer-dynamic
|
||||
|
||||
#[crate_type = "dylib"];
|
||||
#![crate_type = "dylib"]
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@
|
|||
|
||||
// no-prefer-dynamic
|
||||
|
||||
#[crate_type = "rlib"];
|
||||
#![crate_type = "rlib"]
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="a"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="a"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub trait i<T> { }
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="a#0.1"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="a#0.1"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
type t1 = uint;
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
|
||||
#[crate_id="b#0.1"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="b#0.1"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
extern crate a;
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="issue_2526#0.2"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="issue_2526#0.2"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
struct arc_destruct<T> {
|
||||
_data: int,
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[feature(managed_boxes)];
|
||||
#[crate_id="req"];
|
||||
#[crate_type = "lib"];
|
||||
#![feature(managed_boxes)]
|
||||
#![crate_id="req"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
extern crate collections;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="socketlib"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="socketlib"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub mod socket {
|
||||
extern crate libc;
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="numeric#0.1"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="numeric#0.1"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub trait Trig<T> {
|
||||
fn sin(&self) -> T;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[feature(managed_boxes)];
|
||||
#![feature(managed_boxes)]
|
||||
|
||||
extern crate collections;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[feature(struct_variant)];
|
||||
#![feature(struct_variant)]
|
||||
|
||||
pub struct BTree<V> {
|
||||
pub node: TreeItem<V>,
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub enum maybe<T> { just(T), nothing }
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
extern crate issue2378a;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="a#0.1"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="a#0.1"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
trait to_strz {
|
||||
fn to_strz() -> ~str;
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="c#0.1"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="c#0.1"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
extern crate a;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[allow(unused_imports)];
|
||||
#![allow(unused_imports)]
|
||||
#![feature(globs)]
|
||||
|
||||
extern crate issue_2316_a;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub mod issue_3136_a;
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="issue_3979_traits#0.1"];
|
||||
#![crate_id="issue_3979_traits#0.1"]
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub trait Positioned {
|
||||
fn SetX(&mut self, int);
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub trait X {
|
||||
fn x() {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
// Tests that metadata serialization works for the `Copy` kind.
|
||||
|
||||
#[crate_type="lib"];
|
||||
#![crate_type="lib"]
|
||||
|
||||
pub fn f<T:Copy>() {}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@
|
|||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
#[crate_id="lint_stability#0.1"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="lint_stability#0.1"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
#[deprecated]
|
||||
pub fn deprecated() {}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[feature(macro_rules)];
|
||||
#![feature(macro_rules)]
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! make_a_5(
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// force-host
|
||||
|
||||
#[feature(macro_registrar)];
|
||||
#![feature(macro_registrar)]
|
||||
|
||||
extern crate syntax;
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// force-host
|
||||
|
||||
#[feature(globs, macro_registrar, macro_rules, quote, managed_boxes)];
|
||||
#![feature(globs, macro_registrar, macro_rules, quote, managed_boxes)]
|
||||
|
||||
extern crate syntax;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[feature(macro_rules)];
|
||||
#![feature(macro_rules)]
|
||||
|
||||
pub mod inner {
|
||||
#[macro_export]
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_type="lib"];
|
||||
#![crate_type="lib"]
|
||||
|
||||
pub struct S {
|
||||
x: int,
|
||||
|
|
|
|||
|
|
@ -8,6 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_type="lib"];
|
||||
#![crate_type="lib"]
|
||||
|
||||
pub struct Au(pub int);
|
||||
|
|
|
|||
|
|
@ -8,6 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[no_std];
|
||||
#![no_std]
|
||||
|
||||
pub fn foo() {}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="static-function-pointer-aux"];
|
||||
#![crate_id="static-function-pointer-aux"]
|
||||
|
||||
pub fn f(x: int) -> int { -x }
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="static_methods_crate#0.1"];
|
||||
#[crate_type = "lib"];
|
||||
#![crate_id="static_methods_crate#0.1"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
use std::int;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
static private: int = 0;
|
||||
pub static public: int = 0;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_type="lib"];
|
||||
#![crate_type="lib"]
|
||||
|
||||
pub struct S {
|
||||
pub x: int,
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_id="trait_default_method_xc_aux"];
|
||||
#![crate_id="trait_default_method_xc_aux"]
|
||||
|
||||
pub struct Something { pub x: int }
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// Test library crate for cross-crate usages of traits inheriting
|
||||
// from the builtin kinds. Mostly tests metadata correctness.
|
||||
|
||||
#[crate_type="lib"];
|
||||
#![crate_type="lib"]
|
||||
|
||||
pub trait RequiresShare : Share { }
|
||||
pub trait RequiresRequiresShareAndSend : RequiresShare + Send { }
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_type="lib"];
|
||||
#![crate_type="lib"]
|
||||
|
||||
pub struct Struct {
|
||||
pub x: int
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[crate_type = "lib"];
|
||||
#![crate_type = "lib"]
|
||||
|
||||
// used by the rpass test
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// Microbenchmarks for various functions in std and extra
|
||||
|
||||
#[feature(macro_rules)];
|
||||
#![feature(macro_rules)]
|
||||
|
||||
extern crate rand;
|
||||
extern crate time;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[feature(managed_boxes)];
|
||||
#![feature(managed_boxes)]
|
||||
|
||||
use std::io;
|
||||
use std::io::stdio::StdReader;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[feature(managed_boxes)];
|
||||
#![feature(managed_boxes)]
|
||||
|
||||
extern crate collections;
|
||||
extern crate time;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// error-pattern: unreachable statement
|
||||
|
||||
#[deny(unreachable_code)];
|
||||
#![deny(unreachable_code)]
|
||||
|
||||
fn main() {
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -10,5 +10,5 @@
|
|||
|
||||
// error-pattern: missing documentation for crate
|
||||
|
||||
#[deny(missing_doc)];
|
||||
#[crate_type="lib"];
|
||||
#![deny(missing_doc)]
|
||||
#![crate_type="lib"]
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// error-pattern: dylib output requested, but some depenencies could not
|
||||
|
||||
#[crate_type = "dylib"];
|
||||
#![crate_type = "dylib"]
|
||||
|
||||
extern crate a = "issue-12133-rlib";
|
||||
extern crate b = "issue-12133-dylib";
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[feature(macro_rules)];
|
||||
#![feature(macro_rules)]
|
||||
|
||||
// error-pattern: unknown macro variable `nonexistent`
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// error-pattern: unreachable statement
|
||||
|
||||
#[deny(unreachable_code)];
|
||||
#![deny(unreachable_code)]
|
||||
|
||||
fn f() -> ! {
|
||||
return fail!();
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// error-pattern: multiple macro registration functions found
|
||||
|
||||
#[feature(macro_registrar)];
|
||||
#![feature(macro_registrar)]
|
||||
|
||||
// the registration function isn't typechecked yet
|
||||
#[macro_registrar]
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
So we try to compile with junk link_args and make sure they are visible in
|
||||
the compiler output. */
|
||||
|
||||
#[feature(link_args)];
|
||||
#![feature(link_args)]
|
||||
|
||||
#[link_args = "aFdEfSeVEEE"]
|
||||
extern {}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[no_std];
|
||||
#![no_std]
|
||||
|
||||
// error-pattern:requires `start` lang_item
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// error-pattern:mismatched types: expected `char` but found
|
||||
// Issue #876
|
||||
|
||||
#[no_implicit_prelude];
|
||||
#![no_implicit_prelude]
|
||||
use std::vec::Vec;
|
||||
|
||||
fn last<T>(v: Vec<&T> ) -> std::option::Option<T> {
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@
|
|||
// check:$14 = 3.5
|
||||
// debugger:continue
|
||||
|
||||
#[allow(unused_variable)];
|
||||
#![allow(unused_variable)]
|
||||
|
||||
static B: bool = false;
|
||||
static I: int = -1;
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
// check:[...]![...]_yyy([...])([...]);
|
||||
// debugger:continue
|
||||
|
||||
#[allow(unused_variable)];
|
||||
#![allow(unused_variable)]
|
||||
|
||||
fn main() {
|
||||
let unit: () = ();
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@
|
|||
// debugger:detach
|
||||
// debugger:quit
|
||||
|
||||
#[allow(unused_variable)];
|
||||
#![allow(unused_variable)]
|
||||
|
||||
static mut B: bool = false;
|
||||
static mut I: int = -1;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
// debugger:print f64
|
||||
// check:$14 = 3.5
|
||||
|
||||
#[allow(unused_variable)];
|
||||
#![allow(unused_variable)]
|
||||
|
||||
fn main() {
|
||||
let b: bool = false;
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
// debugger:print *f64_ref
|
||||
// check:$14 = 3.5
|
||||
|
||||
#[allow(unused_variable)];
|
||||
#![allow(unused_variable)]
|
||||
|
||||
fn main() {
|
||||
let bool_val: bool = true;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
// debugger:print *the_c_ref
|
||||
// check:$3 = TheC
|
||||
|
||||
#[allow(unused_variable)];
|
||||
#![allow(unused_variable)]
|
||||
|
||||
enum ABC { TheA, TheB, TheC }
|
||||
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
// debugger:print *univariant_ref
|
||||
// check:$3 = {4820353753753434}
|
||||
|
||||
#[allow(unused_variable)];
|
||||
#[feature(struct_variant)];
|
||||
#![allow(unused_variable)]
|
||||
#![feature(struct_variant)]
|
||||
|
||||
// The first element is to ensure proper alignment, irrespective of the machines word size. Since
|
||||
// the size of the discriminant value is machine dependent, this has be taken into account when
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// ignore-android: FIXME(#10381)
|
||||
|
||||
#[feature(managed_boxes)];
|
||||
#![feature(managed_boxes)]
|
||||
|
||||
// Gdb doesn't know about UTF-32 character encoding and will print a rust char as only
|
||||
// its numerical value.
|
||||
|
|
@ -61,7 +61,7 @@
|
|||
// debugger:print *f64_ref
|
||||
// check:$14 = 3.5
|
||||
|
||||
#[allow(unused_variable)];
|
||||
#![allow(unused_variable)]
|
||||
|
||||
fn main() {
|
||||
let bool_box: @bool = @true;
|
||||
|
|
|
|||
|
|
@ -45,8 +45,8 @@
|
|||
// debugger:print *unique_val_interior_ref_2
|
||||
// check:$10 = 26.5
|
||||
|
||||
#[feature(managed_boxes)];
|
||||
#[allow(unused_variable)];
|
||||
#![feature(managed_boxes)]
|
||||
#![allow(unused_variable)]
|
||||
|
||||
struct SomeStruct {
|
||||
x: int,
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// ignore-android: FIXME(#10381)
|
||||
|
||||
#[feature(managed_boxes)];
|
||||
#![feature(managed_boxes)]
|
||||
|
||||
// compile-flags:-g
|
||||
// debugger:rbreak zzz
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
// debugger:print *unique_val_ref
|
||||
// check:$4 = {-17, -22}
|
||||
|
||||
#[allow(unused_variable)];
|
||||
#![allow(unused_variable)]
|
||||
|
||||
fn main() {
|
||||
let stack_val: (i16, f32) = (-14, -19f32);
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
// debugger:print *f64_ref
|
||||
// check:$14 = 3.5
|
||||
|
||||
#[allow(unused_variable)];
|
||||
#![allow(unused_variable)]
|
||||
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
// debugger:print d->val
|
||||
// check:$4 = false
|
||||
|
||||
#[feature(managed_boxes)];
|
||||
#[allow(unused_variable)];
|
||||
#![feature(managed_boxes)]
|
||||
#![allow(unused_variable)]
|
||||
|
||||
fn main() {
|
||||
let a = ~1;
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@
|
|||
// debugger:print managed_dtor->val
|
||||
// check:$4 = {x = 33, y = 333, z = 3333, w = 33333}
|
||||
|
||||
#[feature(managed_boxes)];
|
||||
#[allow(unused_variable)];
|
||||
#![feature(managed_boxes)]
|
||||
#![allow(unused_variable)]
|
||||
|
||||
struct StructWithSomePadding {
|
||||
x: i16,
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
// check:$7 = {{Case1, x = 0, y = 8970181431921507452}, {Case1, 0, 2088533116, 2088533116}}
|
||||
// debugger:continue
|
||||
|
||||
#[feature(struct_variant)];
|
||||
#![feature(struct_variant)]
|
||||
|
||||
#[deriving(Clone)]
|
||||
struct Struct {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// ignore-android: FIXME(#10381)
|
||||
|
||||
#[feature(managed_boxes)];
|
||||
#![feature(managed_boxes)]
|
||||
|
||||
// compile-flags:-g
|
||||
// debugger:rbreak zzz
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
// debugger:print struct_with_drop
|
||||
// check:$7 = {{a = OneHundred, b = Vienna}, 9}
|
||||
|
||||
#[allow(unused_variable)];
|
||||
#![allow(unused_variable)]
|
||||
|
||||
enum AnEnum {
|
||||
OneHundred = 100,
|
||||
|
|
|
|||
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