rollup merge of #18398 : aturon/lint-conventions-2
Conflicts: src/libcollections/slice.rs src/libcore/failure.rs src/libsyntax/parse/token.rs src/test/debuginfo/basic-types-mut-globals.rs src/test/debuginfo/simple-struct.rs src/test/debuginfo/trait-pointers.rs
This commit is contained in:
commit
00975e041d
@ -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;
|
||||
|
@ -151,7 +151,7 @@
|
||||
//! }
|
||||
//! ```
|
||||
|
||||
#![allow(missing_doc)]
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use core::prelude::*;
|
||||
|
||||
|
@ -109,7 +109,7 @@ pub use core::slice::{Found, NotFound};
|
||||
|
||||
// Functional utilities
|
||||
|
||||
#[allow(missing_doc)]
|
||||
#[allow(missing_docs)]
|
||||
pub trait VectorVector<T> for Sized? {
|
||||
// FIXME #5898: calling these .concat and .connect conflicts with
|
||||
// StrVector::con{cat,nect}, since they have generic contents.
|
||||
|
@ -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::*;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// FIXME: #6220 Implement floating point formatting
|
||||
|
||||
#![allow(unsigned_negate)]
|
||||
#![allow(unsigned_negation)]
|
||||
|
||||
use collections::Collection;
|
||||
use fmt;
|
||||
|
@ -42,7 +42,7 @@ A quick refresher on memory ordering:
|
||||
*/
|
||||
|
||||
#![experimental]
|
||||
#![allow(missing_doc)]
|
||||
#![allow(missing_docs)]
|
||||
|
||||
pub type GlueFn = extern "Rust" fn(*const i8);
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -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.
|
||||
|
@ -35,7 +35,7 @@
|
||||
//! warning.
|
||||
|
||||
#![allow(non_camel_case_types)]
|
||||
#![allow(missing_doc)]
|
||||
#![allow(missing_docs)]
|
||||
|
||||
#[experimental]
|
||||
#[simd]
|
||||
|
@ -768,7 +768,7 @@ Section: Comparing strings
|
||||
/// 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,
|
||||
@ -1118,7 +1118,7 @@ pub mod raw {
|
||||
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;
|
||||
|
@ -81,7 +81,7 @@ macro_rules! tuple_impls {
|
||||
}
|
||||
)+) => {
|
||||
$(
|
||||
#[allow(missing_doc)]
|
||||
#[allow(missing_docs)]
|
||||
#[stable]
|
||||
pub trait $Tuple<$($T),+> {
|
||||
$(
|
||||
@ -97,21 +97,21 @@ macro_rules! tuple_impls {
|
||||
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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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_,
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
//! C definitions used by libnative that don't belong in liblibc
|
||||
|
||||
#![allow(type_overflow)]
|
||||
#![allow(overflowing_literals)]
|
||||
|
||||
use libc;
|
||||
|
||||
|
@ -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)]
|
||||
|
@ -118,7 +118,7 @@ impl IsaacRng {
|
||||
|
||||
/// Refills the output buffer (`self.rsl`)
|
||||
#[inline]
|
||||
#[allow(unsigned_negate)]
|
||||
#[allow(unsigned_negation)]
|
||||
fn isaac(&mut self) {
|
||||
self.c += 1;
|
||||
// abbreviations
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -179,7 +179,7 @@ fn exec<'t>(which: ::regex::native::MatchKind, input: &'t str,
|
||||
}
|
||||
|
||||
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 exec<'t>(which: ::regex::native::MatchKind, input: &'t str,
|
||||
}
|
||||
|
||||
// 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 {
|
||||
|
@ -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),
|
||||
|
@ -1021,7 +1021,7 @@ declare_lint!(UNUSED_PARENS, Warn,
|
||||
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 @@ impl LintPass for UnusedParens {
|
||||
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 @@ impl LintPass for UnusedParens {
|
||||
},
|
||||
_ => return
|
||||
};
|
||||
self.check_unnecessary_parens_core(cx, &**value, msg, false);
|
||||
self.check_unused_parens_core(cx, &**value, msg, false);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1364,7 +1364,7 @@ impl MissingDoc {
|
||||
*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 @@ impl MissingDoc {
|
||||
// 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 @@ impl LintPass for MissingDoc {
|
||||
}
|
||||
|
||||
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 @@ impl LintPass for MissingDoc {
|
||||
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 @@ impl LintPass for MissingDoc {
|
||||
|
||||
// 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 @@ impl LintPass for MissingDoc {
|
||||
}
|
||||
|
||||
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 @@ impl LintPass for MissingDoc {
|
||||
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 @@ impl LintPass for MissingDoc {
|
||||
}
|
||||
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
@ -261,14 +261,12 @@ impl LintStore {
|
||||
match self.by_name.find_equiv(&lint_name) {
|
||||
Some(&Id(lint_id)) => Some(lint_id),
|
||||
Some(&Renamed(ref new_name, lint_id)) => {
|
||||
// NOTE(stage0): add the following code after the next snapshot
|
||||
|
||||
// let warning = format!("lint {} has been renamed to {}",
|
||||
// lint_name, new_name);
|
||||
// match span {
|
||||
// Some(span) => sess.span_warn(span, warning.as_slice()),
|
||||
// None => sess.warn(warning.as_slice()),
|
||||
// };
|
||||
let warning = format!("lint {} has been renamed to {}",
|
||||
lint_name, new_name);
|
||||
match span {
|
||||
Some(span) => sess.span_warn(span, warning.as_slice()),
|
||||
None => sess.warn(warning.as_slice()),
|
||||
};
|
||||
Some(lint_id)
|
||||
}
|
||||
None => None
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
});
|
||||
|
@ -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> {
|
||||
|
@ -83,7 +83,7 @@ impl Clone for MovePathIndex {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(non_uppercase_statics)]
|
||||
#[allow(non_upper_case_globals)]
|
||||
static InvalidMovePathIndex: MovePathIndex =
|
||||
MovePathIndex(uint::MAX);
|
||||
|
||||
@ -97,7 +97,7 @@ impl MoveIndex {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(non_uppercase_statics)]
|
||||
#[allow(non_upper_case_globals)]
|
||||
static InvalidMoveIndex: MoveIndex =
|
||||
MoveIndex(uint::MAX);
|
||||
|
||||
|
@ -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;
|
||||
|
@ -66,20 +66,20 @@ impl<E: Show> Show for Edge<E> {
|
||||
|
||||
#[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 {
|
||||
|
@ -3158,7 +3158,7 @@ impl<'a> Resolver<'a> {
|
||||
(_, _) => {
|
||||
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);
|
||||
|
@ -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)];
|
||||
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
@ -218,20 +218,20 @@ use syntax::parse::token::special_idents;
|
||||
|
||||
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;
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -2215,7 +2215,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 };
|
||||
)+
|
||||
}
|
||||
@ -4670,7 +4670,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;
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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)]
|
||||
|
@ -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)]
|
||||
");
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -66,7 +66,7 @@ use task::{Task, LocalStorage};
|
||||
*/
|
||||
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
|
||||
|
@ -28,9 +28,9 @@ pub const ENFORCE_SANITY: bool = true || !cfg!(rtopt) || cfg!(rtdebug) ||
|
||||
|
||||
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 {
|
||||
|
@ -12,7 +12,7 @@
|
||||
// Copyright (c) 2011 Google Inc.
|
||||
|
||||
#![forbid(non_camel_case_types)]
|
||||
#![allow(missing_doc)]
|
||||
#![allow(missing_docs)]
|
||||
|
||||
/*!
|
||||
JSON parsing and serialization
|
||||
|
@ -258,7 +258,7 @@ macro_rules! bitflags {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[allow(non_uppercase_statics)]
|
||||
#[allow(non_upper_case_globals)]
|
||||
mod tests {
|
||||
use hash;
|
||||
use option::{Some, None};
|
||||
|
@ -17,7 +17,7 @@ A simple wrapper over the platform's dynamic library facilities
|
||||
*/
|
||||
|
||||
#![experimental]
|
||||
#![allow(missing_doc)]
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use clone::Clone;
|
||||
use collections::MutableSeq;
|
||||
|
@ -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
|
||||
|
@ -1856,60 +1856,60 @@ bitflags! {
|
||||
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,
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ getaddrinfo()
|
||||
|
||||
*/
|
||||
|
||||
#![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 }| {
|
||||
|
@ -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;
|
||||
|
@ -22,7 +22,7 @@ instances as clients.
|
||||
|
||||
*/
|
||||
|
||||
#![allow(missing_doc)]
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use prelude::*;
|
||||
|
||||
|
@ -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::*;
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
//! Bindings for executing child processes
|
||||
|
||||
#![allow(experimental)]
|
||||
#![allow(non_uppercase_statics)]
|
||||
#![allow(non_upper_case_globals)]
|
||||
|
||||
use prelude::*;
|
||||
|
||||
|
@ -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"]
|
||||
|
||||
|
@ -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;
|
||||
);
|
||||
)
|
||||
|
@ -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::*;
|
||||
|
@ -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::*;
|
||||
|
@ -14,7 +14,7 @@
|
||||
//! u32, u64, uint, i8, i16, i32, i64, int, f32, f64}`.
|
||||
|
||||
#![experimental]
|
||||
#![allow(missing_doc)]
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use option::Option;
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
//
|
||||
// ignore-lexer-test FIXME #15679
|
||||
|
||||
#![allow(missing_doc)]
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use char;
|
||||
use clone::Clone;
|
||||
|
@ -11,7 +11,7 @@
|
||||
#![experimental]
|
||||
#![macro_escape]
|
||||
#![doc(hidden)]
|
||||
#![allow(unsigned_negate)]
|
||||
#![allow(unsigned_negation)]
|
||||
|
||||
macro_rules! uint_module (($T:ty) => (
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
#![experimental]
|
||||
|
||||
#![allow(missing_doc)]
|
||||
#![allow(missing_docs)]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
use clone::Clone;
|
||||
|
@ -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)]
|
||||
|
@ -88,7 +88,7 @@ mod imp {
|
||||
#[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")]
|
||||
|
@ -52,7 +52,7 @@ Several modules in `core` are clients of `rt`:
|
||||
#![experimental]
|
||||
|
||||
// FIXME: this should not be here.
|
||||
#![allow(missing_doc)]
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use failure;
|
||||
use rustrt;
|
||||
|
@ -24,7 +24,7 @@
|
||||
* ```
|
||||
*/
|
||||
|
||||
#![allow(missing_doc)]
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use core::prelude::*;
|
||||
use core::mem::replace;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
@ -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)},
|
||||
|
@ -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 {
|
||||
|
@ -469,7 +469,7 @@ macro_rules! declare_special_idents_and_keywords {(
|
||||
pub mod special_idents {
|
||||
use ast;
|
||||
$(
|
||||
#[allow(non_uppercase_statics)]
|
||||
#[allow(non_upper_case_globals)]
|
||||
pub const $si_static: ast::Ident = ast::Ident {
|
||||
name: ast::Name($si_name),
|
||||
ctxt: 0,
|
||||
@ -480,7 +480,7 @@ macro_rules! declare_special_idents_and_keywords {(
|
||||
pub mod special_names {
|
||||
use ast;
|
||||
$(
|
||||
#[allow(non_uppercase_statics)]
|
||||
#[allow(non_upper_case_globals)]
|
||||
pub const $si_static: ast::Name = ast::Name($si_name);
|
||||
)*
|
||||
}
|
||||
|
@ -90,10 +90,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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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),
|
||||
|
@ -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))
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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.
|
||||
|
@ -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!.
|
||||
|
@ -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
|
||||
|
@ -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"))]
|
||||
|
@ -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.
|
||||
|
@ -10,5 +10,5 @@
|
||||
|
||||
// error-pattern: missing documentation for crate
|
||||
|
||||
#![deny(missing_doc)]
|
||||
#![deny(missing_docs)]
|
||||
#![crate_type="lib"]
|
||||
|
@ -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 {
|
||||
|
@ -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) {
|
||||
|
@ -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 {
|
||||
|
@ -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 { }
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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"]
|
||||
|
@ -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;
|
||||
|
@ -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)]
|
||||
|
||||
|
@ -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)]
|
||||
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user