Separate out a hir::Impl
struct
This makes it possible to pass the `Impl` directly to functions, instead of having to pass each of the many fields one at a time. It also simplifies matches in many cases.
This commit is contained in:
parent
fd34606ddf
commit
a8ff647deb
61 changed files with 258 additions and 246 deletions
|
@ -541,7 +541,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingDoc {
|
|||
return;
|
||||
}
|
||||
}
|
||||
hir::ItemKind::Impl { of_trait: Some(ref trait_ref), items, .. } => {
|
||||
hir::ItemKind::Impl(hir::Impl { of_trait: Some(ref trait_ref), items, .. }) => {
|
||||
// If the trait is private, add the impl items to `private_traits` so they don't get
|
||||
// reported for missing docs.
|
||||
let real_trait = trait_ref.path.res.def_id();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue