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
This is somewhat related to the previous change with resolving trait arguments. The fix is to change this assert to instead push a user visible error that the type variable was declared twice. These type variables don't actually have Locations associated with them though, so the reported location is only approximate and can be improved.
Minimal repro:
trait Crashy a -> t t
This is sufficient to cause the panic:
thread 'main' panicked at 'assertion failed: prev.is_none()', src\nameresolution\scope.rs:172:9
The text was updated successfully, but these errors were encountered: