Add of_trait
to DefKind::Impl.
This commit is contained in:
parent
9bb6e60d1f
commit
03dff82d59
28 changed files with 68 additions and 64 deletions
|
@ -1238,7 +1238,7 @@ impl<'v> RootCollector<'_, 'v> {
|
|||
collect_const_value(self.tcx, val, &mut self.output);
|
||||
}
|
||||
}
|
||||
DefKind::Impl => {
|
||||
DefKind::Impl { .. } => {
|
||||
if self.mode == MonoItemCollectionMode::Eager {
|
||||
let item = self.tcx.hir().item(id);
|
||||
create_mono_items_for_default_impls(self.tcx, item, self.output);
|
||||
|
|
|
@ -172,7 +172,7 @@ fn mark_used_by_default_parameters<'tcx>(
|
|||
| DefKind::Field
|
||||
| DefKind::LifetimeParam
|
||||
| DefKind::GlobalAsm
|
||||
| DefKind::Impl => {
|
||||
| DefKind::Impl { .. } => {
|
||||
for param in &generics.params {
|
||||
debug!(?param, "(other)");
|
||||
if let ty::GenericParamDefKind::Lifetime = param.kind {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue