Skip to content

Commit

Permalink
Rollup merge of #133233 - estebank:const-errors, r=Nadrieril
Browse files Browse the repository at this point in the history
Add context to "const in pattern" errors

*Each commit addresses specific diagnostics.*

- Add primary span labels
- Point at `const` item, and `const` generic param definition
- Reword messages and notes
- Point at generic param through which an associated `const` is being referenced
- Silence const in pattern with evaluation errors when they come from `const` items that already emit a diagnostic
- On non-structural type in const used as pattern, point at the type that should derive `PartialEq`
  • Loading branch information
fmease authored Dec 5, 2024
2 parents 445527a + aea2c1d commit 5e37c92
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 5e37c92

Please sign in to comment.