mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-01 00:49:30 +00:00
Merge pull request #1682 from Mrmaxmeier/rustup-2017-04-15
Rustup to 1.18.0-nightly (d5cf1cb64 2017-04-15)
This commit is contained in:
commit
6f2fe14405
6 changed files with 10 additions and 4 deletions
|
@ -1,6 +1,9 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## 0.0.124 — 2017-04-16
|
||||||
|
* Update to *rustc 1.18.0-nightly (d5cf1cb64 2017-04-15)*
|
||||||
|
|
||||||
## 0.0.123 — 2017-04-07
|
## 0.0.123 — 2017-04-07
|
||||||
* Fix various false positives
|
* Fix various false positives
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "clippy"
|
name = "clippy"
|
||||||
version = "0.0.123"
|
version = "0.0.124"
|
||||||
authors = [
|
authors = [
|
||||||
"Manish Goregaokar <manishsmail@gmail.com>",
|
"Manish Goregaokar <manishsmail@gmail.com>",
|
||||||
"Andre Bogus <bogusandre@gmail.com>",
|
"Andre Bogus <bogusandre@gmail.com>",
|
||||||
|
@ -30,7 +30,7 @@ test = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
# begin automatic update
|
# begin automatic update
|
||||||
clippy_lints = { version = "0.0.123", path = "clippy_lints" }
|
clippy_lints = { version = "0.0.124", path = "clippy_lints" }
|
||||||
# end automatic update
|
# end automatic update
|
||||||
cargo_metadata = "0.1.1"
|
cargo_metadata = "0.1.1"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "clippy_lints"
|
name = "clippy_lints"
|
||||||
# begin automatic update
|
# begin automatic update
|
||||||
version = "0.0.123"
|
version = "0.0.124"
|
||||||
# end automatic update
|
# end automatic update
|
||||||
authors = [
|
authors = [
|
||||||
"Manish Goregaokar <manishsmail@gmail.com>",
|
"Manish Goregaokar <manishsmail@gmail.com>",
|
||||||
|
|
|
@ -122,6 +122,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc {
|
||||||
hir::ItemStatic(..) => "a static",
|
hir::ItemStatic(..) => "a static",
|
||||||
hir::ItemStruct(..) => "a struct",
|
hir::ItemStruct(..) => "a struct",
|
||||||
hir::ItemTrait(..) => "a trait",
|
hir::ItemTrait(..) => "a trait",
|
||||||
|
hir::ItemGlobalAsm(..) => "an assembly blob",
|
||||||
hir::ItemTy(..) => "a type alias",
|
hir::ItemTy(..) => "a type alias",
|
||||||
hir::ItemUnion(..) => "a union",
|
hir::ItemUnion(..) => "a union",
|
||||||
hir::ItemDefaultImpl(..) |
|
hir::ItemDefaultImpl(..) |
|
||||||
|
|
|
@ -372,6 +372,7 @@ fn print_item(cx: &LateContext, item: &hir::Item) {
|
||||||
},
|
},
|
||||||
hir::ItemMod(..) => println!("module"),
|
hir::ItemMod(..) => println!("module"),
|
||||||
hir::ItemForeignMod(ref fm) => println!("foreign module with abi: {}", fm.abi),
|
hir::ItemForeignMod(ref fm) => println!("foreign module with abi: {}", fm.abi),
|
||||||
|
hir::ItemGlobalAsm(ref asm) => println!("global asm: {:?}", asm),
|
||||||
hir::ItemTy(..) => {
|
hir::ItemTy(..) => {
|
||||||
println!("type alias for {:?}", cx.tcx.item_type(did));
|
println!("type alias for {:?}", cx.tcx.item_type(did));
|
||||||
},
|
},
|
||||||
|
|
|
@ -904,7 +904,8 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
|
||||||
Def::AssociatedConst(id) |
|
Def::AssociatedConst(id) |
|
||||||
Def::Local(id) |
|
Def::Local(id) |
|
||||||
Def::Upvar(id, ..) |
|
Def::Upvar(id, ..) |
|
||||||
Def::Macro(id, _) => Some(id),
|
Def::Macro(id, ..) |
|
||||||
|
Def::GlobalAsm(id) => Some(id),
|
||||||
|
|
||||||
Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) | Def::Err => None,
|
Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) | Def::Err => None,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue