You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tracking issue for super_or_self_in_global_path compatibility lint #36888
Paths starting with self or super are relative by definition, "global" prefix :: used to indicate absolute paths doesn't make sense on them.
However, older versions of the compiler sometimes (e.g. in imports) accepted and ignored such prefixes:
mod m {
struct S;
use ::self::S as Z; // <- was accepted, the path was still interpreted as relative despite `::`
}
Activity
Auto merge of #42136 - petrochenkov:oldhard, r=nikomatsakis
Rollup merge of rust-lang#42136 - petrochenkov:oldhard, r=nikomatsakis