Skip to content

Commit 89f0f32

Browse files
committed
Rustup to 1.18.0-nightly (d5cf1cb 2017-04-15)
1 parent 5842463 commit 89f0f32

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

clippy_lints/src/missing_doc.rs

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 2 additions & 1 deletion
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)