Convert most code to new inner attribute syntax.

Closes #2569
This commit is contained in:
Brian Anderson 2014-03-21 18:05:05 -07:00 committed by Alex Crichton
parent c6bbb95ce2
commit 451e8c1c61
327 changed files with 638 additions and 635 deletions

View File

@ -8,11 +8,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[crate_type = "bin"];
#[feature(phase)];
#![crate_type = "bin"]
#![feature(phase)]
#[allow(non_camel_case_types)];
#[deny(warnings)];
#![allow(non_camel_case_types)]
#![deny(warnings)]
extern crate test;
extern crate getopts;

View File

@ -15,15 +15,15 @@
//! of individual objects while the arena itself is still alive. The benefit
//! of an arena is very fast allocation; just a pointer bump.
#[crate_id = "arena#0.10-pre"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
#[license = "MIT/ASL2"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
#[allow(missing_doc)];
#[feature(managed_boxes)];
#![crate_id = "arena#0.10-pre"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![license = "MIT/ASL2"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")]
#![allow(missing_doc)]
#![feature(managed_boxes)]
extern crate collections;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(missing_doc)];
#![allow(missing_doc)]
use std::cmp;

View File

@ -12,15 +12,15 @@
* Collection types.
*/
#[crate_id = "collections#0.10-pre"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
#[license = "MIT/ASL2"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
#![crate_id = "collections#0.10-pre"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![license = "MIT/ASL2"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")]
#[feature(macro_rules, managed_boxes, default_type_params, phase)];
#![feature(macro_rules, managed_boxes, default_type_params, phase)]
extern crate rand;

View File

@ -10,7 +10,7 @@
//! A priority queue implemented with a binary heap
#[allow(missing_doc)];
#![allow(missing_doc)]
use std::clone::Clone;
use std::mem::{move_val_init, init, replace, swap};

View File

@ -13,7 +13,7 @@
* are O(highest integer key).
*/
#[allow(missing_doc)];
#![allow(missing_doc)]
use std::iter::{Enumerate, FilterMap, Rev};
use std::mem::replace;

View File

@ -14,15 +14,15 @@ Simple compression
*/
#[crate_id = "flate#0.10-pre"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
#[license = "MIT/ASL2"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
#[feature(phase)];
#[deny(deprecated_owned_vector)];
#![crate_id = "flate#0.10-pre"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![license = "MIT/ASL2"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")]
#![feature(phase)]
#![deny(deprecated_owned_vector)]
#[cfg(test)] #[phase(syntax, link)] extern crate log;

View File

@ -39,16 +39,16 @@ fn main() {
*/
#[crate_id = "fourcc#0.10-pre"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
#[license = "MIT/ASL2"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
#![crate_id = "fourcc#0.10-pre"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![license = "MIT/ASL2"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")]
#[deny(deprecated_owned_vector)];
#[feature(macro_registrar, managed_boxes)];
#![deny(deprecated_owned_vector)]
#![feature(macro_registrar, managed_boxes)]
extern crate syntax;

View File

@ -76,16 +76,16 @@
//! }
//! ~~~
#[crate_id = "getopts#0.10-pre"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
#[license = "MIT/ASL2"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
#[feature(globs, phase)];
#[deny(missing_doc)];
#[deny(deprecated_owned_vector)];
#![crate_id = "getopts#0.10-pre"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![license = "MIT/ASL2"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")]
#![feature(globs, phase)]
#![deny(missing_doc)]
#![deny(deprecated_owned_vector)]
#[cfg(test)] #[phase(syntax, link)] extern crate log;

View File

@ -23,13 +23,13 @@
* `glob`/`fnmatch` functions.
*/
#[crate_id = "glob#0.10-pre"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
#[license = "MIT/ASL2"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
#![crate_id = "glob#0.10-pre"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![license = "MIT/ASL2"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")]
use std::cell::Cell;
use std::{cmp, os, path};

View File

@ -184,17 +184,17 @@
//! pool.shutdown();
//! ```
#[crate_id = "green#0.10-pre"];
#[license = "MIT/ASL2"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
#![crate_id = "green#0.10-pre"]
#![license = "MIT/ASL2"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")]
// NB this does *not* include globs, please keep it that way.
#[feature(macro_rules, phase)];
#[allow(visible_private_types)];
#![feature(macro_rules, phase)]
#![allow(visible_private_types)]
#[cfg(test)] #[phase(syntax, link)] extern crate log;
#[cfg(test)] extern crate rustuv;

View File

@ -10,7 +10,7 @@
// FIXME: this file probably shouldn't exist
#[macro_escape];
#![macro_escape]
use std::fmt;

View File

@ -36,16 +36,16 @@ fn main() {
*/
#[crate_id = "hexfloat#0.10-pre"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
#[license = "MIT/ASL2"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
#![crate_id = "hexfloat#0.10-pre"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![license = "MIT/ASL2"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")]
#[deny(deprecated_owned_vector)];
#[feature(macro_registrar, managed_boxes)];
#![deny(deprecated_owned_vector)]
#![feature(macro_registrar, managed_boxes)]
extern crate syntax;

View File

@ -105,16 +105,16 @@ if logging is disabled, none of the components of the log will be executed.
*/
#[crate_id = "log#0.10-pre"];
#[license = "MIT/ASL2"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
#![crate_id = "log#0.10-pre"]
#![license = "MIT/ASL2"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")]
#[feature(macro_rules)];
#[deny(missing_doc, deprecated_owned_vector)];
#![feature(macro_rules)]
#![deny(missing_doc, deprecated_owned_vector)]
extern crate sync;

View File

@ -10,7 +10,7 @@
//! Logging macros
#[macro_escape];
#![macro_escape]
/// The standard logging macro
///

View File

@ -41,15 +41,15 @@
//! }
//! ```
#[crate_id = "native#0.10-pre"];
#[license = "MIT/ASL2"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
#[deny(unused_result, unused_must_use)];
#[allow(non_camel_case_types)];
#![crate_id = "native#0.10-pre"]
#![license = "MIT/ASL2"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")]
#![deny(unused_result, unused_must_use)]
#![allow(non_camel_case_types)]
// NB this crate explicitly does *not* allow glob imports, please seriously
// consider whether they're needed before adding that feature here (the

View File

@ -190,7 +190,7 @@ impl<T: ToStrRadix + Num + Ord> ToStrRadix for Cmplx<T> {
#[cfg(test)]
mod test {
#[allow(non_uppercase_statics)];
#![allow(non_uppercase_statics)]
use super::{Complex64, Cmplx};
use std::num::{Zero,One,Float};

View File

@ -8,17 +8,17 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[feature(macro_rules)];
#![feature(macro_rules)]
#[crate_id = "num#0.10-pre"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
#[license = "MIT/ASL2"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
#![crate_id = "num#0.10-pre"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![license = "MIT/ASL2"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")]
#[deny(deprecated_owned_vector)];
#![deny(deprecated_owned_vector)]
extern crate rand;

View File

@ -62,15 +62,15 @@ println!("{:?}", tuple_ptr)
```
*/
#[crate_id = "rand#0.10-pre"];
#[license = "MIT/ASL2"];
#[crate_type = "dylib"];
#[crate_type = "rlib"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
#![crate_id = "rand#0.10-pre"]
#![license = "MIT/ASL2"]
#![crate_type = "dylib"]
#![crate_type = "rlib"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")]
#[feature(macro_rules, managed_boxes, phase)];
#![feature(macro_rules, managed_boxes, phase)]
#[cfg(test)]
#[phase(syntax, link)] extern crate log;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
pub struct t {
module_asm: ~str,

View File

@ -10,8 +10,8 @@
// Code that generates a test runner to run all the tests in a crate
#[allow(dead_code)];
#[allow(unused_imports)];
#![allow(dead_code)]
#![allow(unused_imports)]
use driver::session::Session;
use front::config;

View File

@ -18,18 +18,18 @@ This API is completely unstable and subject to change.
*/
#[crate_id = "rustc#0.10-pre"];
#[comment = "The Rust compiler"];
#[license = "MIT/ASL2"];
#[crate_type = "dylib"];
#[crate_type = "rlib"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
#![crate_id = "rustc#0.10-pre"]
#![comment = "The Rust compiler"]
#![license = "MIT/ASL2"]
#![crate_type = "dylib"]
#![crate_type = "rlib"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
html_root_url = "http://static.rust-lang.org/doc/master")]
#[allow(deprecated)];
#[feature(macro_rules, globs, struct_variant, managed_boxes, quote,
default_type_params, phase)];
#![allow(deprecated)]
#![feature(macro_rules, globs, struct_variant, managed_boxes, quote,
default_type_params, phase)]
extern crate flate;
extern crate arena;

View File

@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_uppercase_pattern_statics)];
#[allow(non_camel_case_types)];
#![allow(non_uppercase_pattern_statics)]
#![allow(non_camel_case_types)]
use std::c_str::ToCStr;
use std::cell::RefCell;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use std::cast;
use syntax::crateid::CrateId;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
//! Validates all used crates and extern libraries and loads their metadata

View File

@ -10,7 +10,7 @@
// Searching for information from the cstore
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use metadata::common::*;
use metadata::cstore;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
// The crate store - a central repo for information collected about external
// crates and libraries

View File

@ -10,7 +10,7 @@
// Decoding metadata from a single crate's metadata
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use back::svh::Svh;
use metadata::cstore::crate_metadata;

View File

@ -10,8 +10,8 @@
// Metadata encoding
#[allow(unused_must_use)]; // everything is just a MemWriter, can't fail
#[allow(non_camel_case_types)];
#![allow(unused_must_use)] // everything is just a MemWriter, can't fail
#![allow(non_camel_case_types)]
use back::svh::Svh;
use metadata::common::*;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use std::cell::RefCell;
use std::os;

View File

@ -14,7 +14,7 @@
// tjc note: Would be great to have a `match check` macro equivalent
// for some of these
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use middle::ty;

View File

@ -10,8 +10,8 @@
// Type encoding
#[allow(unused_must_use)]; // as with encoding, everything is a no-fail MemWriter
#[allow(non_camel_case_types)];
#![allow(unused_must_use)] // as with encoding, everything is a no-fail MemWriter
#![allow(non_camel_case_types)]
use std::cell::RefCell;
use collections::HashMap;

View File

@ -8,9 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
// FIXME: remove this after snapshot, and Results are handled
#[allow(unused_must_use)];
#![allow(unused_must_use)]
use c = metadata::common;
use cstore = metadata::cstore;

View File

@ -10,7 +10,7 @@
/*! See doc.rs for a thorough explanation of the borrow checker */
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use mc = middle::mem_categorization;
use middle::ty;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use middle::const_eval::{compare_const_vals, lookup_const_by_id};
use middle::const_eval::{eval_const_expr, const_val, const_bool, const_float};

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use metadata::csearch;
use middle::astencode;

View File

@ -11,7 +11,7 @@
// A pass that annotates for each loops and functions with the free
// variables that they contain.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use middle::resolve;
use middle::ty;

View File

@ -33,7 +33,7 @@
//! modify the Context visitor appropriately. If you're adding lints from the
//! Context itself, span_lint should be used instead of add_lint.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use driver::session;
use metadata::csearch;

View File

@ -60,7 +60,7 @@
* tied to `x`. The type of `x'` will be a borrowed pointer.
*/
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use middle::ty;
use middle::typeck;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use driver::session::Session;
use metadata::csearch;

View File

@ -192,7 +192,7 @@
*
*/
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use back::abi;
use driver::session::FullDebugInfo;

View File

@ -23,7 +23,7 @@
// but one TypeRef corresponds to many `ty::t`s; for instance, tup(int, int,
// int) and rec(x=int, y=int, z=int) will have the same TypeRef.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use back::link::{mangle_exported_name};
use back::{link, abi};

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_uppercase_pattern_statics)];
#![allow(non_uppercase_pattern_statics)]
use lib::llvm::{llvm, Integer, Pointer, Float, Double, Struct, Array};
use lib::llvm::StructRetAttribute;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_uppercase_pattern_statics)];
#![allow(non_uppercase_pattern_statics)]
use std::libc::c_uint;
use std::cmp;

View File

@ -11,7 +11,7 @@
// The classification code for the x86_64 ABI is taken from the clay language
// https://github.com/jckarter/clay/blob/master/compiler/src/externals.cpp
#[allow(non_uppercase_pattern_statics)];
#![allow(non_uppercase_pattern_statics)]
use lib::llvm::{llvm, Integer, Pointer, Float, Double};
use lib::llvm::{Struct, Array, Attribute};

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
//! Code that is useful in various trans modules.

View File

@ -31,7 +31,7 @@
* See doc.rs for more comments.
*/
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use back::abi;
use lib::llvm::{ValueRef, llvm};

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_uppercase_pattern_statics)];
#![allow(non_uppercase_pattern_statics)]
use arena::TypedArena;
use lib::llvm::{SequentiallyConsistent, Acquire, Release, Xchg};

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[macro_escape];
#![macro_escape]
macro_rules! unpack_datum(
($bcx: ident, $inp: expr) => (

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use back::abi;
use lib;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_uppercase_pattern_statics)];
#![allow(non_uppercase_pattern_statics)]
use lib::llvm::{llvm, TypeRef, Bool, False, True, TypeKind};
use lib::llvm::{Float, Double, X86_FP80, PPC_FP128, FP128};

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use middle::trans::adt;
use middle::trans::common::*;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use back::svh::Svh;
use driver::session::Session;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use middle::pat_util::{PatIdMap, pat_id_map, pat_is_binding, pat_is_const};
use middle::ty;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[macro_escape];
#![macro_escape]
macro_rules! if_ok(
($inp: expr) => (

View File

@ -10,7 +10,7 @@
/*! See doc.rs for documentation */
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
pub use middle::ty::IntVarValue;
pub use middle::typeck::infer::resolve::resolve_and_force_all_but_regions;

View File

@ -59,7 +59,7 @@ independently:
*/
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use driver::session;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use syntax::ast;
use syntax::codemap::{Span};

View File

@ -14,7 +14,7 @@
//! green/native threading. This is just a bare-bones enough solution for
//! librustdoc, it is not production quality at all.
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
pub use self::imp::Lock;

View File

@ -24,7 +24,7 @@
//! // ... something using html
//! ```
#[allow(non_camel_case_types)];
#![allow(non_camel_case_types)]
use std::cast;
use std::fmt;

View File

@ -8,13 +8,13 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[crate_id = "rustdoc#0.10-pre"];
#[desc = "rustdoc, the Rust documentation extractor"];
#[license = "MIT/ASL2"];
#[crate_type = "dylib"];
#[crate_type = "rlib"];
#![crate_id = "rustdoc#0.10-pre"]
#![desc = "rustdoc, the Rust documentation extractor"]
#![license = "MIT/ASL2"]
#![crate_type = "dylib"]
#![crate_type = "rlib"]
#[feature(globs, struct_variant, managed_boxes, macro_rules, phase)];
#![feature(globs, struct_variant, managed_boxes, macro_rules, phase)]
extern crate syntax;
extern crate rustc;

View File

@ -31,7 +31,7 @@
//! This enqueueing is done with a concurrent queue from libstd, and the
//! signalling is achieved with an async handle.
#[allow(dead_code)];
#![allow(dead_code)]
use std::cast;
use std::rt::local::Local;

View File

@ -34,14 +34,14 @@ via `close` and `delete` methods.
*/
#[crate_id = "rustuv#0.10-pre"];
#[license = "MIT/ASL2"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
#![crate_id = "rustuv#0.10-pre"]
#![license = "MIT/ASL2"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#[feature(macro_rules)];
#[deny(unused_result, unused_must_use)];
#[allow(visible_private_types)];
#![feature(macro_rules)]
#![deny(unused_result, unused_must_use)]
#![allow(visible_private_types)]
#[cfg(test)] extern crate green;
#[cfg(test)] extern crate realrustuv = "rustuv";

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[macro_escape];
#![macro_escape]
use std::fmt;

View File

@ -18,7 +18,7 @@
//! event loop alive we use uv_ref and uv_unref in order to control when the
//! async handle is active or not.
#[allow(dead_code)];
#![allow(dead_code)]
use std::cast;
use std::libc::{c_void, c_int};

View File

@ -27,7 +27,7 @@
* the mappings should be added in this module.
*/
#[allow(non_camel_case_types)]; // C types
#![allow(non_camel_case_types)] // C types
use std::libc::{size_t, c_int, c_uint, c_void, c_char, c_double};
use std::libc::{ssize_t, sockaddr, free, addrinfo};

View File

@ -28,14 +28,14 @@
//! An example version number with all five components is
//! `0.8.1-rc.3.0+20130922.linux`.
#[crate_id = "semver#0.10-pre"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
#[license = "MIT/ASL2"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
#[deny(deprecated_owned_vector)];
#![crate_id = "semver#0.10-pre"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![license = "MIT/ASL2"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")]
#![deny(deprecated_owned_vector)]
use std::char;
use std::cmp;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(missing_doc)];
#![allow(missing_doc)]
use std::io;
use std::str;

View File

@ -11,8 +11,8 @@
// Rust JSON serialization library
// Copyright (c) 2011 Google Inc.
#[forbid(non_camel_case_types)];
#[allow(missing_doc)];
#![forbid(non_camel_case_types)]
#![allow(missing_doc)]
/*!
JSON parsing and serialization

View File

@ -14,14 +14,14 @@
Core encoding and decoding interfaces.
*/
#[crate_id = "serialize#0.10-pre"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
#[license = "MIT/ASL2"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
#[feature(macro_rules, managed_boxes, default_type_params, phase)];
#![crate_id = "serialize#0.10-pre"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![license = "MIT/ASL2"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")]
#![feature(macro_rules, managed_boxes, default_type_params, phase)]
// test harness access
#[cfg(test)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[doc(hidden)];
#![doc(hidden)]
use ptr;
use raw;

View File

@ -20,7 +20,7 @@ and `Eq` to overload the `==` and `!=` operators.
*/
#[allow(missing_doc)];
#![allow(missing_doc)]
/**
* Trait for values that can be compared for equality and inequality.

View File

@ -43,7 +43,7 @@
//! }
//! ```
#[allow(dead_code)];
#![allow(dead_code)]
use cast;
use cell::Cell;

View File

@ -14,8 +14,8 @@
//! These definitions are similar to their `ct` equivalents, but differ in that
//! these can be statically allocated and are slightly optimized for the runtime
#[allow(missing_doc)];
#[doc(hidden)];
#![allow(missing_doc)]
#![doc(hidden)]
use fmt::parse;
use option::Option;

View File

@ -16,7 +16,7 @@ collector is task-local so `Gc<T>` is not sendable.
*/
#[allow(experimental)];
#![allow(experimental)]
use kinds::marker;
use clone::Clone;

View File

@ -61,7 +61,7 @@
* ```
*/
#[allow(unused_must_use)];
#![allow(unused_must_use)]
use container::Container;
use io::Writer;

View File

@ -41,7 +41,7 @@ A quick refresher on memory ordering:
*/
#[allow(missing_doc)];
#![allow(missing_doc)]
// This is needed to prevent duplicate lang item definitions.
#[cfg(test)]

View File

@ -10,7 +10,7 @@
//! Utility mixins that apply to all Readers and Writers
#[allow(missing_doc)];
#![allow(missing_doc)]
// FIXME: Not sure how this should be structured
// FIXME: Iteration should probably be considered separately

View File

@ -208,7 +208,7 @@ responding to errors that may occur while attempting to read the numbers.
*/
#[deny(unused_must_use)];
#![deny(unused_must_use)]
use cast;
use char::Char;

View File

@ -17,7 +17,7 @@ getaddrinfo()
*/
#[allow(missing_doc)];
#![allow(missing_doc)]
use io::IoResult;
use io::net::ip::{SocketAddr, IpAddr};

View File

@ -13,7 +13,7 @@
//! This module contains functions useful for parsing, formatting, and
//! manipulating IP addresses.
#[allow(missing_doc)];
#![allow(missing_doc)]
use container::Container;
use fmt;

View File

@ -17,7 +17,7 @@
//! A TCP connection implements the `Reader` and `Writer` traits, while the TCP
//! listener (socket server) implements the `Listener` and `Acceptor` traits.
#[deny(missing_doc)];
#![deny(missing_doc)]
use clone::Clone;
use io::IoResult;

View File

@ -22,7 +22,7 @@ instances as clients.
*/
#[allow(missing_doc)];
#![allow(missing_doc)]
use prelude::*;

View File

@ -13,7 +13,7 @@
//! Currently these aren't particularly useful, there only exists bindings
//! enough so that pipes can be created to child processes.
#[allow(missing_doc)];
#![allow(missing_doc)]
use prelude::*;
use io::IoResult;

View File

@ -10,7 +10,7 @@
//! Bindings for executing child processes
#[deny(missing_doc)];
#![deny(missing_doc)]
use prelude::*;

View File

@ -10,7 +10,7 @@
/*! Various utility functions useful for writing I/O tests */
#[macro_escape];
#![macro_escape]
use libc;
use os;

View File

@ -43,21 +43,21 @@
//!
//! use std::prelude::*;
#[crate_id = "std#0.10-pre"];
#[comment = "The Rust standard library"];
#[license = "MIT/ASL2"];
#[crate_type = "rlib"];
#[crate_type = "dylib"];
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")];
#[feature(macro_rules, globs, asm, managed_boxes, thread_local, link_args,
simd, linkage, default_type_params, phase)];
#![crate_id = "std#0.10-pre"]
#![comment = "The Rust standard library"]
#![license = "MIT/ASL2"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://static.rust-lang.org/doc/master")]
#![feature(macro_rules, globs, asm, managed_boxes, thread_local, link_args,
simd, linkage, default_type_params, phase)]
// Don't link to std. We are std.
#[no_std];
#![no_std]
#[deny(missing_doc)];
#![deny(missing_doc)]
// When testing libstd, bring in libuv as the I/O backend so tests can print
// things and all of the std::io tests have an I/O interface to run on top

View File

@ -62,10 +62,10 @@
* dissolved.
*/
#[allow(non_camel_case_types)];
#[allow(non_uppercase_statics)];
#[allow(missing_doc)];
#[allow(uppercase_variables)];
#![allow(non_camel_case_types)]
#![allow(non_uppercase_statics)]
#![allow(missing_doc)]
#![allow(uppercase_variables)]
// Initial glob-exports mean that all the contents of all the modules
// wind up exported, if you're interested in writing platform-specific code.

View File

@ -14,7 +14,7 @@
//! library. Each macro is available for use when linking against the standard
//! library.
#[macro_escape];
#![macro_escape]
/// The entry point for failure of rust tasks.
///

View File

@ -13,7 +13,7 @@
//! This module contains functions for querying the size and alignment of
//! types, initializing and manipulating memory.
#[allow(missing_doc)]; // FIXME
#![allow(missing_doc)] // FIXME
use cast;
use ptr;

View File

@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(missing_doc)];
#[allow(dead_code)];
#![allow(missing_doc)]
#![allow(dead_code)]
//! Bindings for the C math library (for basic mathematic functions)

View File

@ -10,7 +10,7 @@
//! Operations and constants for 32-bits floats (`f32` type)
#[allow(missing_doc)];
#![allow(missing_doc)]
use prelude::*;

View File

@ -10,7 +10,7 @@
//! Operations and constants for 64-bits floats (`f64` type)
#[allow(missing_doc)];
#![allow(missing_doc)]
use prelude::*;

View File

@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[macro_escape];
#[doc(hidden)];
#![macro_escape]
#![doc(hidden)]
macro_rules! assert_approx_eq(
($a:expr, $b:expr) => ({

View File

@ -10,7 +10,7 @@
//! Operations and constants for signed 16-bits integers (`i16` type)
#[allow(non_uppercase_statics)];
#![allow(non_uppercase_statics)]
use prelude::*;

View File

@ -10,7 +10,7 @@
//! Operations and constants for signed 32-bits integers (`i32` type)
#[allow(non_uppercase_statics)];
#![allow(non_uppercase_statics)]
use prelude::*;

View File

@ -10,7 +10,7 @@
//! Operations and constants for signed 64-bits integers (`i64` type)
#[allow(non_uppercase_statics)];
#![allow(non_uppercase_statics)]
use prelude::*;

View File

@ -10,7 +10,7 @@
//! Operations and constants for signed 8-bits integers (`i8` type)
#[allow(non_uppercase_statics)];
#![allow(non_uppercase_statics)]
use prelude::*;

View File

@ -10,7 +10,7 @@
//! Operations and constants for architecture-sized signed integers (`int` type)
#[allow(non_uppercase_statics)];
#![allow(non_uppercase_statics)]
use prelude::*;

View File

@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[macro_escape];
#[doc(hidden)];
#![macro_escape]
#![doc(hidden)]
macro_rules! int_module (($T:ty, $bits:expr) => (

Some files were not shown because too many files have changed in this diff Show More