1
Fork 0

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

@ -550,7 +550,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
let sm = self.tcx.sess.source_map();
let def_id = match outer_res {
Res::SelfTyParam { .. } | Res::SelfCtor(_) => {
Res::SelfTyParam { .. } => {
err.span_label(span, "can't use `Self` here");
return err;
}