| Age | Commit message (Collapse) | Author | Lines |
|
|
|
Diagnostics for struct path resolution errors in resolve and typeck are unified.
Self type is treated as a type alias in few places (not reachable yet).
Unsafe cell is seen in constants even through type aliases.
All checks for struct paths in typeck work on type level.
|
|
The span underlines only the name of the thing that's not a struct rather
than the whole expression.
|
|
Treat Def::Err correctly in struct patterns
Make instantiate_path and instantiate_type a bit closer to each other
|
|
Fixes #27815
|
|
|
|
|
|
here. Some of this may have been poorly rebased, though I tried to be
careful and preserve the spirit of the test.
|
|
Changed error to 'use of trait `{}` as a struct constructor'
|