Update code with new lint names

This commit is contained in:
Aaron Turon 2014-10-27 15:37:07 -07:00
parent 58dc0a05ab
commit e0ad0fcb95
178 changed files with 265 additions and 265 deletions

View file

@ -29,7 +29,7 @@
html_root_url = "http://doc.rust-lang.org/nightly/")]
#![feature(unsafe_destructor)]
#![allow(missing_doc)]
#![allow(missing_docs)]
use std::cell::{Cell, RefCell};
use std::cmp;

View file

@ -151,7 +151,7 @@
//! }
//! ```
#![allow(missing_doc)]
#![allow(missing_docs)]
use core::prelude::*;

View file

@ -108,7 +108,7 @@
// Functional utilities
#[allow(missing_doc)]
#[allow(missing_docs)]
pub trait VectorVector<T> {
// FIXME #5898: calling these .concat and .connect conflicts with
// StrVector::con{cat,nect}, since they have generic contents.

View file

@ -11,7 +11,7 @@
//! A simple map based on a vector for small integer keys. Space requirements
//! are O(highest integer key).
#![allow(missing_doc)]
#![allow(missing_docs)]
use core::prelude::*;

View file

@ -28,7 +28,7 @@
//! one function. Currently, the actual symbol is declared in the standard
//! library, but the location of this may change over time.
#![allow(dead_code, missing_doc)]
#![allow(dead_code, missing_docs)]
use fmt;
use intrinsics;
@ -57,7 +57,7 @@ fn fail_bounds_check(file_line: &(&'static str, uint),
#[cold] #[inline(never)]
pub fn fail_fmt(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! {
#[allow(ctypes)]
#[allow(improper_ctypes)]
extern {
#[lang = "fail_fmt"]
fn fail_impl(fmt: &fmt::Arguments, file: &'static str,

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_docs)]
use char;
use collections::Collection;

View file

@ -10,7 +10,7 @@
//! Utilities for formatting and printing strings
#![allow(unused_variable)]
#![allow(unused_variables)]
use any;
use cell::{Cell, Ref, RefMut};
@ -733,7 +733,7 @@ macro_rules! tuple (
() => ();
( $($name:ident,)+ ) => (
impl<$($name:Show),*> Show for ($($name,)*) {
#[allow(non_snake_case, dead_assignment)]
#[allow(non_snake_case, unused_assignments)]
fn fmt(&self, f: &mut Formatter) -> Result {
try!(write!(f, "("));
let ($(ref $name,)*) = *self;

View file

@ -12,7 +12,7 @@
// FIXME: #6220 Implement floating point formatting
#![allow(unsigned_negate)]
#![allow(unsigned_negation)]
use collections::Collection;
use fmt;

View file

@ -42,7 +42,7 @@
*/
#![experimental]
#![allow(missing_doc)]
#![allow(missing_docs)]
pub type GlueFn = extern "Rust" fn(*const i8);

View file

@ -60,7 +60,7 @@
#![allow(unknown_features)]
#![feature(globs, intrinsics, lang_items, macro_rules, phase)]
#![feature(simd, unsafe_destructor, slicing_syntax)]
#![deny(missing_doc)]
#![deny(missing_docs)]
mod macros;

View file

@ -12,7 +12,7 @@
#![doc(primitive = "f32")]
// FIXME: MIN_VALUE and MAX_VALUE literals are parsed as -inf and inf #14353
#![allow(type_overflow)]
#![allow(overflowing_literals)]
use intrinsics;
use mem;

View file

@ -12,7 +12,7 @@
#![doc(primitive = "f64")]
// FIXME: MIN_VALUE and MAX_VALUE literals are parsed as -inf and inf #14353
#![allow(type_overflow)]
#![allow(overflowing_literals)]
use intrinsics;
use mem;

View file

@ -12,7 +12,7 @@
//! Numeric traits and functions for generic mathematics
#![allow(missing_doc)]
#![allow(missing_docs)]
use intrinsics;
use {int, i8, i16, i32, i64};

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_docs)]
#![experimental]
//! Contains struct definitions for the layout of compiler built-in types.

View file

@ -35,7 +35,7 @@
//! warning.
#![allow(non_camel_case_types)]
#![allow(missing_doc)]
#![allow(missing_docs)]
#[experimental]
#[simd]

View file

@ -767,7 +767,7 @@ fn size_hint(&self) -> (uint, Option<uint>) {
/// to compare &[u8] byte slices that are not necessarily valid UTF-8.
#[inline]
fn eq_slice_(a: &str, b: &str) -> bool {
#[allow(ctypes)]
#[allow(improper_ctypes)]
extern { fn memcmp(s1: *const i8, s2: *const i8, n: uint) -> i32; }
a.len() == b.len() && unsafe {
memcmp(a.as_ptr() as *const i8,
@ -1117,7 +1117,7 @@ pub unsafe fn slice_unchecked<'a>(s: &'a str, begin: uint, end: uint) -> &'a str
Section: Trait implementations
*/
#[allow(missing_doc)]
#[allow(missing_docs)]
pub mod traits {
use cmp::{Ord, Ordering, Less, Equal, Greater, PartialEq, PartialOrd, Equiv, Eq};
use collections::Collection;

View file

@ -81,7 +81,7 @@ macro_rules! tuple_impls {
}
)+) => {
$(
#[allow(missing_doc)]
#[allow(missing_docs)]
#[stable]
pub trait $Tuple<$($T),+> {
$(
@ -97,21 +97,21 @@ pub trait $Tuple<$($T),+> {
impl<$($T),+> $Tuple<$($T),+> for ($($T,)+) {
$(
#[inline]
#[allow(unused_variable)]
#[allow(unused_variables)]
#[unstable = "may rename pending accessor naming conventions"]
fn $valN(self) -> $T {
let ($($x,)+) = self; $ret
}
#[inline]
#[allow(unused_variable)]
#[allow(unused_variables)]
#[unstable = "may rename pending accessor naming conventions"]
fn $refN<'a>(&'a self) -> &'a $T {
let ($(ref $x,)+) = *self; $ret
}
#[inline]
#[allow(unused_variable)]
#[allow(unused_variables)]
#[unstable = "may rename pending accessor naming conventions"]
fn $mutN<'a>(&'a mut self) -> &'a mut $T {
let ($(ref mut $x,)+) = *self; $ret

View file

@ -7,7 +7,7 @@
// <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.
#![allow(unsigned_negate)]
#![allow(unsigned_negation)]
use core::fmt::radix;

View file

@ -89,7 +89,7 @@
html_playground_url = "http://play.rust-lang.org/")]
#![feature(globs, phase)]
#![feature(import_shadowing)]
#![deny(missing_doc)]
#![deny(missing_docs)]
#[cfg(test)] #[phase(plugin, link)] extern crate log;
@ -201,7 +201,7 @@ pub enum Fail_ {
/// The type of failure that occurred.
#[deriving(PartialEq, Eq)]
#[allow(missing_doc)]
#[allow(missing_docs)]
pub enum FailType {
ArgumentMissing_,
UnrecognizedOption_,

View file

@ -75,8 +75,8 @@
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_uppercase_statics)]
#![allow(missing_doc)]
#![allow(non_upper_case_globals)]
#![allow(missing_docs)]
#![allow(non_snake_case)]
extern crate core;

View file

@ -167,7 +167,7 @@
html_root_url = "http://doc.rust-lang.org/nightly/",
html_playground_url = "http://play.rust-lang.org/")]
#![feature(macro_rules)]
#![deny(missing_doc)]
#![deny(missing_docs)]
extern crate regex;

View file

@ -10,7 +10,7 @@
//! C definitions used by libnative that don't belong in liblibc
#![allow(type_overflow)]
#![allow(overflowing_literals)]
use libc;

View file

@ -55,7 +55,7 @@
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://doc.rust-lang.org/nightly/")]
#![deny(unused_result, unused_must_use)]
#![deny(unused_results, unused_must_use)]
#![allow(non_camel_case_types)]
#![allow(unknown_features)]
#![feature(default_type_params, lang_items, slicing_syntax)]

View file

@ -118,7 +118,7 @@ macro_rules! memloop (
/// Refills the output buffer (`self.rsl`)
#[inline]
#[allow(unsigned_negate)]
#[allow(unsigned_negation)]
fn isaac(&mut self) {
self.c += 1;
// abbreviations

View file

@ -26,7 +26,7 @@
html_playground_url = "http://play.rust-lang.org/")]
#![allow(unknown_features)]
#![feature(macro_rules, phase, slicing_syntax)]
#![allow(missing_doc)]
#![allow(missing_docs)]
extern crate serialize;

View file

@ -370,7 +370,7 @@
#![allow(unknown_features)]
#![feature(macro_rules, phase, slicing_syntax)]
#![deny(missing_doc)]
#![deny(missing_docs)]
#[cfg(test)]
extern crate "test" as stdtest;

View file

@ -179,7 +179,7 @@ struct Nfa<'t> {
}
impl<'t> Nfa<'t> {
#[allow(unused_variable)]
#[allow(unused_variables)]
fn run(&mut self, start: uint, end: uint) -> Vec<Option<uint>> {
let mut matched = false;
let prefix_bytes: &[u8] = $prefix_bytes;
@ -226,7 +226,7 @@ fn run(&mut self, start: uint, end: uint) -> Vec<Option<uint>> {
}
// Sometimes `nlist` is never used (for empty regexes).
#[allow(unused_variable)]
#[allow(unused_variables)]
#[inline]
fn step(&self, groups: &mut Captures, nlist: &mut Threads,
caps: &mut Captures, pc: uint) -> StepState {

View file

@ -498,7 +498,7 @@ pub fn get_os(triple: &str) -> Option<abi::Os> {
}
None
}
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static os_names : &'static [(&'static str, abi::Os)] = &[
("mingw32", abi::OsWindows),
("win32", abi::OsWindows),
@ -516,7 +516,7 @@ pub fn get_arch(triple: &str) -> Option<abi::Architecture> {
}
None
}
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static architecture_abis : &'static [(&'static str, abi::Architecture)] = &[
("i386", abi::X86),
("i486", abi::X86),

View file

@ -1021,7 +1021,7 @@ fn check_pat(&mut self, cx: &Context, p: &ast::Pat) {
pub struct UnusedParens;
impl UnusedParens {
fn check_unnecessary_parens_core(&self, cx: &Context, value: &ast::Expr, msg: &str,
fn check_unused_parens_core(&self, cx: &Context, value: &ast::Expr, msg: &str,
struct_lit_needs_parens: bool) {
match value.node {
ast::ExprParen(ref inner) => {
@ -1090,7 +1090,7 @@ fn check_expr(&mut self, cx: &Context, e: &ast::Expr) {
ast::ExprAssignOp(_, _, ref value) => (value, "assigned value", false),
_ => return
};
self.check_unnecessary_parens_core(cx, &**value, msg, struct_lit_needs_parens);
self.check_unused_parens_core(cx, &**value, msg, struct_lit_needs_parens);
}
fn check_stmt(&mut self, cx: &Context, s: &ast::Stmt) {
@ -1104,7 +1104,7 @@ fn check_stmt(&mut self, cx: &Context, s: &ast::Stmt) {
},
_ => return
};
self.check_unnecessary_parens_core(cx, &**value, msg, false);
self.check_unused_parens_core(cx, &**value, msg, false);
}
}
@ -1364,7 +1364,7 @@ fn doc_hidden(&self) -> bool {
*self.doc_hidden_stack.last().expect("empty doc_hidden_stack")
}
fn check_missing_doc_attrs(&self,
fn check_missing_docs_attrs(&self,
cx: &Context,
id: Option<ast::NodeId>,
attrs: &[ast::Attribute],
@ -1374,7 +1374,7 @@ fn check_missing_doc_attrs(&self,
// documentation is probably not really relevant right now.
if cx.sess().opts.test { return }
// `#[doc(hidden)]` disables missing_doc check.
// `#[doc(hidden)]` disables missing_docs check.
if self.doc_hidden() { return }
// Only check publicly-visible items, using the result from the privacy pass.
@ -1429,7 +1429,7 @@ fn check_struct_def_post(&mut self, _: &Context,
}
fn check_crate(&mut self, cx: &Context, krate: &ast::Crate) {
self.check_missing_doc_attrs(cx, None, krate.attrs.as_slice(),
self.check_missing_docs_attrs(cx, None, krate.attrs.as_slice(),
krate.span, "crate");
}
@ -1442,7 +1442,7 @@ fn check_item(&mut self, cx: &Context, it: &ast::Item) {
ast::ItemTrait(..) => "a trait",
_ => return
};
self.check_missing_doc_attrs(cx, Some(it.id), it.attrs.as_slice(),
self.check_missing_docs_attrs(cx, Some(it.id), it.attrs.as_slice(),
it.span, desc);
}
@ -1456,7 +1456,7 @@ fn check_fn(&mut self, cx: &Context,
// Otherwise, doc according to privacy. This will also check
// doc for default methods defined on traits.
self.check_missing_doc_attrs(cx, Some(m.id), m.attrs.as_slice(),
self.check_missing_docs_attrs(cx, Some(m.id), m.attrs.as_slice(),
m.span, "a method");
}
_ => {}
@ -1464,7 +1464,7 @@ fn check_fn(&mut self, cx: &Context,
}
fn check_ty_method(&mut self, cx: &Context, tm: &ast::TypeMethod) {
self.check_missing_doc_attrs(cx, Some(tm.id), tm.attrs.as_slice(),
self.check_missing_docs_attrs(cx, Some(tm.id), tm.attrs.as_slice(),
tm.span, "a type method");
}
@ -1473,7 +1473,7 @@ fn check_struct_field(&mut self, cx: &Context, sf: &ast::StructField) {
ast::NamedField(_, vis) if vis == ast::Public => {
let cur_struct_def = *self.struct_def_stack.last()
.expect("empty struct_def_stack");
self.check_missing_doc_attrs(cx, Some(cur_struct_def),
self.check_missing_docs_attrs(cx, Some(cur_struct_def),
sf.node.attrs.as_slice(), sf.span,
"a struct field")
}
@ -1482,7 +1482,7 @@ fn check_struct_field(&mut self, cx: &Context, sf: &ast::StructField) {
}
fn check_variant(&mut self, cx: &Context, v: &ast::Variant, _: &ast::Generics) {
self.check_missing_doc_attrs(cx, Some(v.node.id), v.node.attrs.as_slice(),
self.check_missing_docs_attrs(cx, Some(v.node.id), v.node.attrs.as_slice(),
v.span, "a variant");
}
}

View file

@ -98,7 +98,7 @@ macro_rules! declare_lint (
#[macro_export]
macro_rules! lint_array ( ($( $lint:expr ),*) => (
{
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static array: LintArray = &[ $( &$lint ),* ];
array
}

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, non_uppercase_statics)]
#![allow(non_camel_case_types, non_upper_case_globals)]
use std::mem;
use back::svh::Svh;

View file

@ -1330,9 +1330,9 @@ pub fn get_missing_lang_items(cdata: Cmd)
{
let items = reader::get_doc(rbml::Doc::new(cdata.data()), tag_lang_items);
let mut result = Vec::new();
reader::tagged_docs(items, tag_lang_items_missing, |missing_doc| {
reader::tagged_docs(items, tag_lang_items_missing, |missing_docs| {
let item: lang_items::LangItem =
FromPrimitive::from_u32(reader::doc_as_u32(missing_doc)).unwrap();
FromPrimitive::from_u32(reader::doc_as_u32(missing_docs)).unwrap();
result.push(item);
true
});

View file

@ -2028,7 +2028,7 @@ fn encode_dylib_dependency_formats(rbml_w: &mut Encoder, ecx: &EncodeContext) {
}
// NB: Increment this as you change the metadata encoding version.
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
pub const metadata_encoding_version : &'static [u8] = &[b'r', b'u', b's', b't', 0, 0, 0, 1 ];
pub fn encode_metadata(parms: EncodeParams, krate: &Crate) -> Vec<u8> {

View file

@ -83,7 +83,7 @@ fn clone(&self) -> MovePathIndex {
}
}
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static InvalidMovePathIndex: MovePathIndex =
MovePathIndex(uint::MAX);
@ -97,7 +97,7 @@ fn get(&self) -> uint {
}
}
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static InvalidMoveIndex: MoveIndex =
MoveIndex(uint::MAX);

View file

@ -9,7 +9,7 @@
// except according to those terms.
#![allow(non_camel_case_types)]
#![allow(unsigned_negate)]
#![allow(unsigned_negation)]
use metadata::csearch;
use middle::astencode;

View file

@ -66,20 +66,20 @@ fn fmt(&self, f: &mut Formatter) -> Result<(), FormatError> {
#[deriving(Clone, PartialEq, Show)]
pub struct NodeIndex(pub uint);
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
pub const InvalidNodeIndex: NodeIndex = NodeIndex(uint::MAX);
#[deriving(PartialEq, Show)]
pub struct EdgeIndex(pub uint);
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
pub const InvalidEdgeIndex: EdgeIndex = EdgeIndex(uint::MAX);
// Use a private field here to guarantee no more instances are created:
#[deriving(Show)]
pub struct Direction { repr: uint }
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
pub const Outgoing: Direction = Direction { repr: 0 };
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
pub const Incoming: Direction = Direction { repr: 1 };
impl NodeIndex {

View file

@ -3158,7 +3158,7 @@ fn search_parent_externals(needle: Name, module: &Rc<Module>)
(_, _) => {
search_module = module_def.clone();
// track extern crates for unused_extern_crate lint
// track extern crates for unused_extern_crates lint
match module_def.def_id.get() {
Some(did) => {
self.used_crates.insert(did.krate);

View file

@ -43,7 +43,7 @@
* taken to it, implementing them for Rust seems difficult.
*/
#![allow(unsigned_negate)]
#![allow(unsigned_negation)]
use std::collections::Map;
use std::num::Int;
@ -393,12 +393,12 @@ fn mk_cenum(cx: &CrateContext, hint: Hint, bounds: &IntBounds) -> Repr {
fn range_to_inttype(cx: &CrateContext, hint: Hint, bounds: &IntBounds) -> IntType {
debug!("range_to_inttype: {} {}", hint, bounds);
// Lists of sizes to try. u64 is always allowed as a fallback.
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static choose_shortest: &'static[IntType] = &[
attr::UnsignedInt(ast::TyU8), attr::SignedInt(ast::TyI8),
attr::UnsignedInt(ast::TyU16), attr::SignedInt(ast::TyI16),
attr::UnsignedInt(ast::TyU32), attr::SignedInt(ast::TyI32)];
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static at_least_32: &'static[IntType] = &[
attr::UnsignedInt(ast::TyU32), attr::SignedInt(ast::TyI32)];

View file

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

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_uppercase_statics)]
#![allow(non_upper_case_globals)]
use 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_statics)]
#![allow(non_upper_case_globals)]
use llvm;
use llvm::{Integer, Pointer, Float, Double};

View file

@ -218,20 +218,20 @@ struct List {
static DW_LANG_RUST: c_uint = 0x9000;
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static DW_TAG_auto_variable: c_uint = 0x100;
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static DW_TAG_arg_variable: c_uint = 0x101;
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static DW_ATE_boolean: c_uint = 0x02;
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static DW_ATE_float: c_uint = 0x04;
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static DW_ATE_signed: c_uint = 0x05;
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static DW_ATE_unsigned: c_uint = 0x07;
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static DW_ATE_unsigned_char: c_uint = 0x08;
static UNKNOWN_LINE_NUMBER: c_uint = 0;

View file

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

View file

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

View file

@ -2212,7 +2212,7 @@ macro_rules! def_type_content_sets(
mod $mname {
use middle::ty::TypeContents;
$(
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
pub const $name: TypeContents = TypeContents { bits: $bits };
)+
}
@ -4661,7 +4661,7 @@ pub fn unboxed_closure_upvars(tcx: &ctxt, closure_id: ast::DefId, substs: &Subst
}
pub fn is_binopable(cx: &ctxt, ty: t, op: ast::BinOp) -> bool {
#![allow(non_uppercase_statics)]
#![allow(non_upper_case_globals)]
static tycat_other: int = 0;
static tycat_bool: int = 1;
static tycat_char: int = 2;

View file

@ -46,7 +46,7 @@
// future). If you want to resolve everything but one type, you are
// probably better off writing `resolve_all - resolve_ivar`.
#![allow(non_uppercase_statics)]
#![allow(non_upper_case_globals)]
use middle::ty::{FloatVar, FloatVid, IntVar, IntVid, RegionVid, TyVar, TyVid};
use middle::ty::{IntType, UintType};

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_uppercase_statics)]
#![allow(non_upper_case_globals)]
pub const box_field_refcnt: uint = 0u;
pub const box_field_drop_glue: uint = 1u;

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_uppercase_statics)]
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(dead_code)]

View file

@ -212,7 +212,7 @@ pub fn maketest(s: &str, cratename: Option<&str>, lints: bool, dont_insert_main:
if lints {
prog.push_str(r"
#![deny(warnings)]
#![allow(unused_variable, dead_assignment, unused_mut, unused_attribute, dead_code)]
#![allow(unused_variables, unused_assignments, unused_mut, unused_attributes, dead_code)]
");
}

View file

@ -10,7 +10,7 @@
//! Unwind library interface
#![allow(non_uppercase_statics)]
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(dead_code)] // these are just bindings

View file

@ -66,7 +66,7 @@
*/
pub type Key<T> = &'static KeyValue<T>;
#[allow(missing_doc)]
#[allow(missing_docs)]
pub enum KeyValue<T> { KeyValueKey }
// The task-local-map stores all TLD information for the currently running

View file

@ -28,9 +28,9 @@
pub struct Stdio(libc::c_int);
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
pub const Stdout: Stdio = Stdio(libc::STDOUT_FILENO);
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
pub const Stderr: Stdio = Stdio(libc::STDERR_FILENO);
impl fmt::FormatWriter for Stdio {

View file

@ -12,7 +12,7 @@
// Copyright (c) 2011 Google Inc.
#![forbid(non_camel_case_types)]
#![allow(missing_doc)]
#![allow(missing_docs)]
/*!
JSON parsing and serialization

View file

@ -258,7 +258,7 @@ fn not(&self) -> $BitFlags {
}
#[cfg(test)]
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
mod tests {
use hash;
use option::{Some, None};

View file

@ -17,7 +17,7 @@
*/
#![experimental]
#![allow(missing_doc)]
#![allow(missing_docs)]
use clone::Clone;
use collections::MutableSeq;

View file

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

View file

@ -1834,60 +1834,60 @@ pub struct UnstableFileStat {
const ALL_PERMISSIONS = USER_RWX.bits | GROUP_RWX.bits | OTHER_RWX.bits,
// Deprecated names
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
#[deprecated = "use USER_READ instead"]
const UserRead = USER_READ.bits,
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
#[deprecated = "use USER_WRITE instead"]
const UserWrite = USER_WRITE.bits,
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
#[deprecated = "use USER_EXECUTE instead"]
const UserExecute = USER_EXECUTE.bits,
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
#[deprecated = "use GROUP_READ instead"]
const GroupRead = GROUP_READ.bits,
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
#[deprecated = "use GROUP_WRITE instead"]
const GroupWrite = GROUP_WRITE.bits,
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
#[deprecated = "use GROUP_EXECUTE instead"]
const GroupExecute = GROUP_EXECUTE.bits,
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
#[deprecated = "use OTHER_READ instead"]
const OtherRead = OTHER_READ.bits,
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
#[deprecated = "use OTHER_WRITE instead"]
const OtherWrite = OTHER_WRITE.bits,
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
#[deprecated = "use OTHER_EXECUTE instead"]
const OtherExecute = OTHER_EXECUTE.bits,
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
#[deprecated = "use USER_RWX instead"]
const UserRWX = USER_RWX.bits,
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
#[deprecated = "use GROUP_RWX instead"]
const GroupRWX = GROUP_RWX.bits,
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
#[deprecated = "use OTHER_RWX instead"]
const OtherRWX = OTHER_RWX.bits,
#[doc = "Deprecated: use `USER_FILE` instead."]
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
#[deprecated = "use USER_FILE instead"]
const UserFile = USER_FILE.bits,
#[doc = "Deprecated: use `USER_DIR` instead."]
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
#[deprecated = "use USER_DIR instead"]
const UserDir = USER_DIR.bits,
#[doc = "Deprecated: use `USER_EXEC` instead."]
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
#[deprecated = "use USER_EXEC instead"]
const UserExec = USER_EXEC.bits,
#[doc = "Deprecated: use `ALL_PERMISSIONS` instead"]
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
#[deprecated = "use ALL_PERMISSIONS instead"]
const AllPermissions = ALL_PERMISSIONS.bits,
}

View file

@ -17,7 +17,7 @@
*/
#![allow(missing_doc)]
#![allow(missing_docs)]
use iter::Iterator;
use io::{IoResult, IoError};
@ -91,7 +91,7 @@ pub fn get_host_addresses(host: &str) -> IoResult<Vec<IpAddr>> {
///
/// FIXME: this is not public because the `Hint` structure is not ready for public
/// consumption just yet.
#[allow(unused_variable)]
#[allow(unused_variables)]
fn lookup(hostname: Option<&str>, servname: Option<&str>, hint: Option<Hint>)
-> IoResult<Vec<Info>> {
let hint = hint.map(|Hint { family, socktype, protocol, flags }| {

View file

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

View file

@ -22,7 +22,7 @@
*/
#![allow(missing_doc)]
#![allow(missing_docs)]
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_docs)]
use prelude::*;

View file

@ -11,7 +11,7 @@
//! Bindings for executing child processes
#![allow(experimental)]
#![allow(non_uppercase_statics)]
#![allow(non_upper_case_globals)]
use prelude::*;

View file

@ -113,7 +113,7 @@
// Don't link to std. We are std.
#![no_std]
#![deny(missing_doc)]
#![deny(missing_docs)]
#![reexport_test_harness_main = "test_main"]

View file

@ -304,11 +304,11 @@ macro_rules! println(
#[macro_export]
macro_rules! local_data_key(
($name:ident: $ty:ty) => (
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static $name: ::std::local_data::Key<$ty> = &::std::local_data::KeyValueKey;
);
(pub $name:ident: $ty:ty) => (
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
pub static $name: ::std::local_data::Key<$ty> = &::std::local_data::KeyValueKey;
);
)

View file

@ -11,8 +11,8 @@
//! Operations and constants for 32-bits floats (`f32` type)
#![experimental]
#![allow(missing_doc)]
#![allow(unsigned_negate)]
#![allow(missing_docs)]
#![allow(unsigned_negation)]
#![doc(primitive = "f32")]
use prelude::*;

View file

@ -11,7 +11,7 @@
//! Operations and constants for 64-bits floats (`f64` type)
#![experimental]
#![allow(missing_doc)]
#![allow(missing_docs)]
#![doc(primitive = "f64")]
use prelude::*;

View file

@ -14,7 +14,7 @@
//! u32, u64, uint, i8, i16, i32, i64, int, f32, f64}`.
#![experimental]
#![allow(missing_doc)]
#![allow(missing_docs)]
use option::Option;

View file

@ -10,7 +10,7 @@
//
// ignore-lexer-test FIXME #15679
#![allow(missing_doc)]
#![allow(missing_docs)]
use char;
use clone::Clone;

View file

@ -11,7 +11,7 @@
#![experimental]
#![macro_escape]
#![doc(hidden)]
#![allow(unsigned_negate)]
#![allow(unsigned_negation)]
macro_rules! uint_module (($T:ty) => (

View file

@ -28,7 +28,7 @@
#![experimental]
#![allow(missing_doc)]
#![allow(missing_docs)]
#![allow(non_snake_case)]
use clone::Clone;

View file

@ -457,9 +457,9 @@ fn normalize_helper<'a>(v: &'a [u8], is_abs: bool) -> Option<Vec<&'a [u8]>> {
}
}
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static dot_static: &'static [u8] = b".";
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static dot_dot_static: &'static [u8] = b"..";
#[cfg(test)]

View file

@ -88,7 +88,7 @@ pub struct OsRng {
#[repr(C)]
struct SecRandom;
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static kSecRandomDefault: *const SecRandom = 0 as *const SecRandom;
#[link(name = "Security", kind = "framework")]

View file

@ -52,7 +52,7 @@
#![experimental]
// FIXME: this should not be here.
#![allow(missing_doc)]
#![allow(missing_docs)]
use failure;
use rustrt;

View file

@ -24,7 +24,7 @@
* ```
*/
#![allow(missing_doc)]
#![allow(missing_docs)]
use core::prelude::*;
use core::mem::replace;

View file

@ -29,7 +29,7 @@
#![feature(phase, globs, macro_rules, unsafe_destructor)]
#![feature(import_shadowing)]
#![deny(missing_doc)]
#![deny(missing_docs)]
#![no_std]
#[phase(plugin, link)] extern crate core;

View file

@ -26,7 +26,7 @@
*/
#![experimental]
#![allow(missing_doc, dead_code)]
#![allow(missing_docs, dead_code)]
// http://www.1024cores.net/home/lock-free-algorithms/queues/bounded-mpmc-queue

View file

@ -47,9 +47,9 @@ pub enum Architecture {
Mipsel
}
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
const IntelBits: u32 = (1 << (X86 as uint)) | (1 << (X86_64 as uint));
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
const ArmBits: u32 = (1 << (Arm as uint));
pub struct AbiData {
@ -72,7 +72,7 @@ pub enum AbiArchitecture {
Archs(u32)
}
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
static AbiDatas: &'static [AbiData] = &[
// Platform-specific ABIs
AbiData {abi: Cdecl, name: "cdecl", abi_arch: Archs(IntelBits)},

View file

@ -291,7 +291,7 @@ pub fn operator_prec(op: ast::BinOp) -> uint {
/// Precedence of the `as` operator, which is a binary operator
/// not appearing in the prior table.
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
pub static as_prec: uint = 12u;
pub fn empty_generics() -> Generics {

View file

@ -384,14 +384,14 @@ pub mod keywords {
pub mod special_idents {
use ast::{Ident, Name};
$(
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
pub const $si_static: Ident = Ident { name: Name($si_name), ctxt: 0 };
)*
}
pub mod special_names {
use ast::Name;
$( #[allow(non_uppercase_statics)] pub const $si_static: Name = Name($si_name); )*
$( #[allow(non_upper_case_globals)] pub const $si_static: Name = Name($si_name); )*
}
/**

View file

@ -89,10 +89,10 @@ pub fn rust_printer_annotated<'a>(writer: Box<io::Writer+'static>,
}
}
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
pub const indent_unit: uint = 4u;
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
pub const default_columns: uint = 78u;
/// Requires you to pass an input filename and reader so that

View file

@ -52,7 +52,7 @@
#![allow(unknown_features)]
#![feature(macro_rules, phase, slicing_syntax)]
#![deny(missing_doc)]
#![deny(missing_docs)]
#[phase(plugin, link)] extern crate log;

View file

@ -38,7 +38,7 @@ enum FormatState {
}
/// Types of parameters a capability can use
#[allow(missing_doc)]
#[allow(missing_docs)]
#[deriving(Clone)]
pub enum Param {
Words(String),

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_uppercase_statics)]
#![allow(non_upper_case_globals)]
//! ncurses-compatible compiled terminfo format parsing (term(5))

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_docs)]
use std::collections::hashmap;
use std::collections::hashmap::{Occupied, Vacant};
@ -128,7 +128,7 @@ pub trait Stats <T: FloatMath + FromPrimitive>{
/// Extracted collection of all the summary statistics of a sample set.
#[deriving(Clone, PartialEq)]
#[allow(missing_doc)]
#[allow(missing_docs)]
pub struct Summary<T> {
pub sum: T,
pub min: T,

View file

@ -10,7 +10,7 @@
// NOTE: The following code was generated by "src/etc/unicode.py", do not edit directly
#![allow(missing_doc, non_uppercase_statics, non_snake_case)]
#![allow(missing_docs, non_upper_case_globals, non_snake_case)]
/// The version of [Unicode](http://www.unicode.org/)
/// that the `UnicodeChar` and `UnicodeStrSlice` traits are based on.

View file

@ -15,9 +15,9 @@
extern crate regex;
#[phase(plugin)] extern crate regex_macros;
#[deny(unused_variable)]
#[deny(unused_variables)]
#[deny(dead_code)]
#[allow(non_uppercase_statics)]
#[allow(non_upper_case_globals)]
// Tests to make sure that extraneous dead code warnings aren't emitted from
// the code generated by regex!.

View file

@ -15,7 +15,7 @@
extern crate regex;
#[phase(plugin)] extern crate regex_macros;
#[deny(unused_variable)]
#[deny(unused_variables)]
#[deny(dead_code)]
// Tests to make sure that extraneous dead code warnings aren't emitted from

View file

@ -12,7 +12,7 @@
#![feature(asm)]
#![allow(dead_code, non_uppercase_statics)]
#![allow(dead_code, non_upper_case_globals)]
#[cfg(any(target_arch = "x86",
target_arch = "x86_64"))]

View file

@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_variable)]
#![allow(dead_assignment)]
#![allow(unused_variables)]
#![allow(unused_assignments)]
fn separate_arms() {
// Here both arms perform assignments, but only is illegal.

View file

@ -10,5 +10,5 @@
// error-pattern: missing documentation for crate
#![deny(missing_doc)]
#![deny(missing_docs)]
#![crate_type="lib"]

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![deny(ctypes)]
#![deny(improper_ctypes)]
#![allow(dead_code)]
struct A {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![deny(unused_variable)]
#![deny(unused_variables)]
fn main() {
for _ in range(1i, 101) {

View file

@ -9,7 +9,7 @@
// except according to those terms.
#![deny(unreachable_code)]
#![allow(unused_variable)]
#![allow(unused_variables)]
#![allow(dead_code)]
fn fail_len(v: Vec<int> ) -> uint {

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![deny(ctypes)]
#![deny(improper_ctypes)]
#![allow(dead_code)]
enum Z { }

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![deny(ctypes)]
#![deny(improper_ctypes)]
extern crate libc;

View file

@ -9,9 +9,9 @@
// except according to those terms.
#![no_std]
#![allow(unused_variable)]
#![allow(unused_variables)]
#![allow(non_camel_case_types)]
#![allow(non_uppercase_statics)]
#![allow(non_upper_case_globals)]
#![deny(dead_code)]
#![crate_type="lib"]

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_variable)]
#![allow(unused_variables)]
#![deny(dead_code)]
struct Foo;

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unused_variable)]
#![allow(unused_variables)]
#![allow(non_camel_case_types)]
#![deny(dead_code)]

View file

@ -9,7 +9,7 @@
// except according to those terms.
#![feature(struct_variant)]
#![allow(unused_variable)]
#![allow(unused_variables)]
#![allow(non_camel_case_types)]
#![deny(dead_code)]

View file

@ -9,7 +9,7 @@
// except according to those terms.
#![feature(struct_variant)]
#![allow(unused_variable)]
#![allow(unused_variables)]
#![deny(dead_code)]
enum Enum1 {

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