mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
rustup to rustc 1.19.0-nightly (258ae6dd9 2017-06-15)
This commit is contained in:
parent
3873c61347
commit
16a958b103
3 changed files with 18 additions and 18 deletions
|
@ -1,7 +1,7 @@
|
||||||
// error-pattern:cargo-clippy
|
// error-pattern:cargo-clippy
|
||||||
|
|
||||||
#![feature(box_syntax)]
|
#![feature(box_syntax)]
|
||||||
#![feature(collections)]
|
#![feature(alloc)]
|
||||||
#![feature(custom_attribute)]
|
#![feature(custom_attribute)]
|
||||||
#![feature(i128_type)]
|
#![feature(i128_type)]
|
||||||
#![feature(i128)]
|
#![feature(i128)]
|
||||||
|
@ -22,7 +22,7 @@ extern crate toml;
|
||||||
|
|
||||||
// Only for the compile time checking of paths
|
// Only for the compile time checking of paths
|
||||||
extern crate core;
|
extern crate core;
|
||||||
extern crate collections;
|
extern crate alloc;
|
||||||
|
|
||||||
// for unicode nfc normalization
|
// for unicode nfc normalization
|
||||||
extern crate unicode_normalization;
|
extern crate unicode_normalization;
|
||||||
|
|
|
@ -3,18 +3,18 @@
|
||||||
pub const ASMUT_TRAIT: [&'static str; 3] = ["core", "convert", "AsMut"];
|
pub const ASMUT_TRAIT: [&'static str; 3] = ["core", "convert", "AsMut"];
|
||||||
pub const ASREF_TRAIT: [&'static str; 3] = ["core", "convert", "AsRef"];
|
pub const ASREF_TRAIT: [&'static str; 3] = ["core", "convert", "AsRef"];
|
||||||
pub const BEGIN_PANIC: [&'static str; 3] = ["std", "panicking", "begin_panic"];
|
pub const BEGIN_PANIC: [&'static str; 3] = ["std", "panicking", "begin_panic"];
|
||||||
pub const BINARY_HEAP: [&'static str; 3] = ["collections", "binary_heap", "BinaryHeap"];
|
pub const BINARY_HEAP: [&'static str; 3] = ["alloc", "binary_heap", "BinaryHeap"];
|
||||||
pub const BORROW_TRAIT: [&'static str; 3] = ["core", "borrow", "Borrow"];
|
pub const BORROW_TRAIT: [&'static str; 3] = ["core", "borrow", "Borrow"];
|
||||||
pub const BOX: [&'static str; 3] = ["std", "boxed", "Box"];
|
pub const BOX: [&'static str; 3] = ["std", "boxed", "Box"];
|
||||||
pub const BOX_NEW: [&'static str; 4] = ["std", "boxed", "Box", "new"];
|
pub const BOX_NEW: [&'static str; 4] = ["std", "boxed", "Box", "new"];
|
||||||
pub const BTREEMAP: [&'static str; 4] = ["collections", "btree", "map", "BTreeMap"];
|
pub const BTREEMAP: [&'static str; 4] = ["alloc", "btree", "map", "BTreeMap"];
|
||||||
pub const BTREEMAP_ENTRY: [&'static str; 4] = ["collections", "btree", "map", "Entry"];
|
pub const BTREEMAP_ENTRY: [&'static str; 4] = ["alloc", "btree", "map", "Entry"];
|
||||||
pub const BTREESET: [&'static str; 4] = ["collections", "btree", "set", "BTreeSet"];
|
pub const BTREESET: [&'static str; 4] = ["alloc", "btree", "set", "BTreeSet"];
|
||||||
pub const CLONE: [&'static str; 4] = ["core", "clone", "Clone", "clone"];
|
pub const CLONE: [&'static str; 4] = ["core", "clone", "Clone", "clone"];
|
||||||
pub const CLONE_TRAIT: [&'static str; 3] = ["core", "clone", "Clone"];
|
pub const CLONE_TRAIT: [&'static str; 3] = ["core", "clone", "Clone"];
|
||||||
pub const CMP_MAX: [&'static str; 3] = ["core", "cmp", "max"];
|
pub const CMP_MAX: [&'static str; 3] = ["core", "cmp", "max"];
|
||||||
pub const CMP_MIN: [&'static str; 3] = ["core", "cmp", "min"];
|
pub const CMP_MIN: [&'static str; 3] = ["core", "cmp", "min"];
|
||||||
pub const COW: [&'static str; 3] = ["collections", "borrow", "Cow"];
|
pub const COW: [&'static str; 3] = ["alloc", "borrow", "Cow"];
|
||||||
pub const CSTRING_NEW: [&'static str; 5] = ["std", "ffi", "c_str", "CString", "new"];
|
pub const CSTRING_NEW: [&'static str; 5] = ["std", "ffi", "c_str", "CString", "new"];
|
||||||
pub const DEBUG_FMT_METHOD: [&'static str; 4] = ["core", "fmt", "Debug", "fmt"];
|
pub const DEBUG_FMT_METHOD: [&'static str; 4] = ["core", "fmt", "Debug", "fmt"];
|
||||||
pub const DEFAULT_TRAIT: [&'static str; 3] = ["core", "default", "Default"];
|
pub const DEFAULT_TRAIT: [&'static str; 3] = ["core", "default", "Default"];
|
||||||
|
@ -31,7 +31,7 @@ pub const IO_PRINT: [&'static str; 4] = ["std", "io", "stdio", "_print"];
|
||||||
pub const IO_READ: [&'static str; 3] = ["std", "io", "Read"];
|
pub const IO_READ: [&'static str; 3] = ["std", "io", "Read"];
|
||||||
pub const IO_WRITE: [&'static str; 3] = ["std", "io", "Write"];
|
pub const IO_WRITE: [&'static str; 3] = ["std", "io", "Write"];
|
||||||
pub const ITERATOR: [&'static str; 4] = ["core", "iter", "iterator", "Iterator"];
|
pub const ITERATOR: [&'static str; 4] = ["core", "iter", "iterator", "Iterator"];
|
||||||
pub const LINKED_LIST: [&'static str; 3] = ["collections", "linked_list", "LinkedList"];
|
pub const LINKED_LIST: [&'static str; 3] = ["alloc", "linked_list", "LinkedList"];
|
||||||
pub const LINT: [&'static str; 3] = ["rustc", "lint", "Lint"];
|
pub const LINT: [&'static str; 3] = ["rustc", "lint", "Lint"];
|
||||||
pub const LINT_ARRAY: [&'static str; 3] = ["rustc", "lint", "LintArray"];
|
pub const LINT_ARRAY: [&'static str; 3] = ["rustc", "lint", "LintArray"];
|
||||||
pub const MEM_FORGET: [&'static str; 3] = ["core", "mem", "forget"];
|
pub const MEM_FORGET: [&'static str; 3] = ["core", "mem", "forget"];
|
||||||
|
@ -67,12 +67,12 @@ pub const RESULT: [&'static str; 3] = ["core", "result", "Result"];
|
||||||
pub const RESULT_ERR: [&'static str; 4] = ["core", "result", "Result", "Err"];
|
pub const RESULT_ERR: [&'static str; 4] = ["core", "result", "Result", "Err"];
|
||||||
pub const RESULT_OK: [&'static str; 4] = ["core", "result", "Result", "Ok"];
|
pub const RESULT_OK: [&'static str; 4] = ["core", "result", "Result", "Ok"];
|
||||||
pub const SERDE_DE_VISITOR: [&'static str; 3] = ["serde", "de", "Visitor"];
|
pub const SERDE_DE_VISITOR: [&'static str; 3] = ["serde", "de", "Visitor"];
|
||||||
pub const SLICE_INTO_VEC: [&'static str; 4] = ["collections", "slice", "<impl [T]>", "into_vec"];
|
pub const SLICE_INTO_VEC: [&'static str; 4] = ["alloc", "slice", "<impl [T]>", "into_vec"];
|
||||||
pub const STRING: [&'static str; 3] = ["collections", "string", "String"];
|
pub const STRING: [&'static str; 3] = ["alloc", "string", "String"];
|
||||||
pub const TO_OWNED: [&'static str; 3] = ["collections", "borrow", "ToOwned"];
|
pub const TO_OWNED: [&'static str; 3] = ["alloc", "borrow", "ToOwned"];
|
||||||
pub const TO_STRING: [&'static str; 3] = ["collections", "string", "ToString"];
|
pub const TO_STRING: [&'static str; 3] = ["alloc", "string", "ToString"];
|
||||||
pub const TRANSMUTE: [&'static str; 4] = ["core", "intrinsics", "", "transmute"];
|
pub const TRANSMUTE: [&'static str; 4] = ["core", "intrinsics", "", "transmute"];
|
||||||
pub const TRY_INTO_RESULT: [&'static str; 4] = ["std", "ops", "Try", "into_result"];
|
pub const TRY_INTO_RESULT: [&'static str; 4] = ["std", "ops", "Try", "into_result"];
|
||||||
pub const VEC: [&'static str; 3] = ["collections", "vec", "Vec"];
|
pub const VEC: [&'static str; 3] = ["alloc", "vec", "Vec"];
|
||||||
pub const VEC_DEQUE: [&'static str; 3] = ["collections", "vec_deque", "VecDeque"];
|
pub const VEC_DEQUE: [&'static str; 3] = ["alloc", "vec_deque", "VecDeque"];
|
||||||
pub const VEC_FROM_ELEM: [&'static str; 3] = ["collections", "vec", "from_elem"];
|
pub const VEC_FROM_ELEM: [&'static str; 3] = ["alloc", "vec", "from_elem"];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![feature(plugin, collections)]
|
#![feature(plugin, alloc)]
|
||||||
#![feature(associated_type_defaults)]
|
#![feature(associated_type_defaults)]
|
||||||
#![feature(associated_consts)]
|
#![feature(associated_consts)]
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@
|
||||||
#![warn(clippy)]
|
#![warn(clippy)]
|
||||||
#![allow(dead_code, needless_pass_by_value)]
|
#![allow(dead_code, needless_pass_by_value)]
|
||||||
|
|
||||||
extern crate collections;
|
extern crate alloc;
|
||||||
use collections::linked_list::LinkedList;
|
use alloc::linked_list::LinkedList;
|
||||||
|
|
||||||
trait Foo {
|
trait Foo {
|
||||||
type Baz = LinkedList<u8>;
|
type Baz = LinkedList<u8>;
|
||||||
|
|
Loading…
Reference in a new issue