diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2018-12-08 01:56:03 +0100 |
|---|---|---|
| committer | Philipp Hansch <dev@phansch.net> | 2018-12-08 12:05:09 +0100 |
| commit | f13d23de41ef41da424dbd514f3012cd0e5dcd85 (patch) | |
| tree | 8533de57b2c2f3f616f547e25afc62f8f4b00db9 /clippy_lints/src/missing_doc.rs | |
| parent | 26602ddff475ef75ed94803b05217a761a7f5523 (diff) | |
| download | rust-f13d23de41ef41da424dbd514f3012cd0e5dcd85.tar.gz rust-f13d23de41ef41da424dbd514f3012cd0e5dcd85.zip | |
rustup https://github.com/rust-lang/rust/pull/56502 ( .hir -> .hir() )
Diffstat (limited to 'clippy_lints/src/missing_doc.rs')
| -rw-r--r-- | clippy_lints/src/missing_doc.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/missing_doc.rs b/clippy_lints/src/missing_doc.rs index 8eb64f7ca37..6a2db0bb098 100644 --- a/clippy_lints/src/missing_doc.rs +++ b/clippy_lints/src/missing_doc.rs @@ -142,8 +142,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc { hir::ItemKind::Fn(..) => { // ignore main() if it.name == "main" { - let def_id = cx.tcx.hir.local_def_id(it.id); - let def_key = cx.tcx.hir.def_key(def_id); + let def_id = cx.tcx.hir().local_def_id(it.id); + let def_key = cx.tcx.hir().def_key(def_id); if def_key.parent == Some(hir::def_id::CRATE_DEF_INDEX) { return; } @@ -180,7 +180,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc { fn check_impl_item(&mut self, cx: &LateContext<'a, 'tcx>, impl_item: &'tcx hir::ImplItem) { // If the method is an impl for a trait, don't doc. - let def_id = cx.tcx.hir.local_def_id(impl_item.id); + let def_id = cx.tcx.hir().local_def_id(impl_item.id); match cx.tcx.associated_item(def_id).container { ty::TraitContainer(_) => return, ty::ImplContainer(cid) => { |
