SIGN IN SIGN UP
rust-lang / rust UNCLAIMED

Empowering everyone to build reliable and efficient software.

0 0 65 Rust

Rollup merge of #123997 - compiler-errors:self-res, r=fmease

Delay span bug when `Self` kw resolves to `DefKind::{Mod,Trait}`

Catch the case where `kw::Self` is recovered in the parser and causes us to subsequently resolve `&self`'s implicit type to something that's not a type.

This check could be made more accurate, though I'm not sure how hard we have to try here.

Fixes #123988
M
Matthias Krüger committed
90af17ddcbd39ff80ee4264e908eda2e2c57de98
Committed by GitHub <noreply@github.com> on 4/17/2024, 3:44:53 AM