Skip to content

Commit 6f2fe14

Browse files
authored
Merge pull request #1682 from Mrmaxmeier/rustup-2017-04-15
Rustup to 1.18.0-nightly (d5cf1cb 2017-04-15)
2 parents 5842463 + c4b94f9 commit 6f2fe14

File tree

6 files changed

+10
-4
lines changed

6 files changed

+10
-4
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## 0.0.124 — 2017-04-16
5+
* Update to *rustc 1.18.0-nightly (d5cf1cb64 2017-04-15)*
6+
47
## 0.0.123 — 2017-04-07
58
* Fix various false positives
69

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clippy"
3-
version = "0.0.123"
3+
version = "0.0.124"
44
authors = [
55
"Manish Goregaokar <[email protected]>",
66
"Andre Bogus <[email protected]>",
@@ -30,7 +30,7 @@ test = false
3030

3131
[dependencies]
3232
# begin automatic update
33-
clippy_lints = { version = "0.0.123", path = "clippy_lints" }
33+
clippy_lints = { version = "0.0.124", path = "clippy_lints" }
3434
# end automatic update
3535
cargo_metadata = "0.1.1"
3636

clippy_lints/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "clippy_lints"
33
# begin automatic update
4-
version = "0.0.123"
4+
version = "0.0.124"
55
# end automatic update
66
authors = [
77
"Manish Goregaokar <[email protected]>",

clippy_lints/src/missing_doc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc {
122122
hir::ItemStatic(..) => "a static",
123123
hir::ItemStruct(..) => "a struct",
124124
hir::ItemTrait(..) => "a trait",
125+
hir::ItemGlobalAsm(..) => "an assembly blob",
125126
hir::ItemTy(..) => "a type alias",
126127
hir::ItemUnion(..) => "a union",
127128
hir::ItemDefaultImpl(..) |

clippy_lints/src/utils/inspector.rs

+1
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ fn print_item(cx: &LateContext, item: &hir::Item) {
372372
},
373373
hir::ItemMod(..) => println!("module"),
374374
hir::ItemForeignMod(ref fm) => println!("foreign module with abi: {}", fm.abi),
375+
hir::ItemGlobalAsm(ref asm) => println!("global asm: {:?}", asm),
375376
hir::ItemTy(..) => {
376377
println!("type alias for {:?}", cx.tcx.item_type(did));
377378
},

clippy_lints/src/utils/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,8 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
904904
Def::AssociatedConst(id) |
905905
Def::Local(id) |
906906
Def::Upvar(id, ..) |
907-
Def::Macro(id, _) => Some(id),
907+
Def::Macro(id, ..) |
908+
Def::GlobalAsm(id) => Some(id),
908909

909910
Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) | Def::Err => None,
910911
}

0 commit comments

Comments
 (0)