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
Name resolution: a visible module's type candidate is returned before the scoped-binding tier, so a module type T can shadow a generic parameter T during specialization #1967
Noted while fixing #1955 (lookup_named_type_filtered, Sema.w): a visible module candidate is returned before the scoped-binding tier (Self, generic type parameters inserted into named_types directly). A module declaring pub type T imported by a generic fn f[T](…) could resolve T inside the specialization to the module's type. Needs a failing-first fixture (generic fn + imported module with a same-named type, instantiate, observe which T the body sees) and the precedence fixed so scoped bindings win, with the #1955 fixture's order-check coverage.
Fixed on main by 792351b (stack #2007, battery green on 0f13a62). A scoped type binding (Self, a generic parameter) wins over a visible module candidate; type-parameter frames are restored last-to-first (three sites).
Activity
Name resolution: a scoped type binding (Self, a generic parameter) wi…
Sema/MIR: CK_FN loud on a missing fn (#1859); atomics default SeqCst (#…
ehartford commentedon Oct 3, 2026
Fixed on main by 792351b (stack #2007, battery green on 0f13a62). A scoped type binding (Self, a generic parameter) wins over a visible module candidate; type-parameter frames are restored last-to-first (three sites).