Revert "Validate resolution for SelfCtor too."

This reverts commit 83453408a0.
This commit is contained in:
Camille GILLOT 2023-05-14 12:48:32 +00:00
parent bc888958c9
commit 343819d33f
4 changed files with 2 additions and 55 deletions

View file

@ -1174,10 +1174,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
return Res::Err;
}
}
Res::Def(DefKind::TyParam, _)
| Res::SelfTyParam { .. }
| Res::SelfTyAlias { .. }
| Res::SelfCtor(_) => {
Res::Def(DefKind::TyParam, _) | Res::SelfTyParam { .. } | Res::SelfTyAlias { .. } => {
for rib in ribs {
let has_generic_params: HasGenericParams = match rib.kind {
RibKind::Normal