about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2024-12-05 07:29:54 +0100
committerGitHub <noreply@github.com>2024-12-05 07:29:54 +0100
commit626db0640952ed4cce66ca3f03bfcb8897df9eda (patch)
treecd46b6561e50cde851aaa408296067a0d31416f3 /src
parentbc13c82e6e3ddeec1ca3d72940452ffa865837cd (diff)
parent4e6a401b224342287469a1a294bba7ad10e8641c (diff)
downloadrust-626db0640952ed4cce66ca3f03bfcb8897df9eda.tar.gz
rust-626db0640952ed4cce66ca3f03bfcb8897df9eda.zip
Rollup merge of #133233 - estebank:const-errors, r=Nadrieril
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`
Diffstat (limited to 'src')
-rw-r--r--src/tools/tidy/src/fluent_period.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tools/tidy/src/fluent_period.rs b/src/tools/tidy/src/fluent_period.rs
index 8bc404dc858..6a136e5aec6 100644
--- a/src/tools/tidy/src/fluent_period.rs
+++ b/src/tools/tidy/src/fluent_period.rs
@@ -18,7 +18,6 @@ const ALLOWLIST: &[&str] = &[
     "const_eval_validation_failure_note",
     "driver_impl_ice",
     "incremental_corrupt_file",
-    "mir_build_pointer_pattern",
 ];
 
 fn check_period(filename: &str, contents: &str, bad: &mut bool) {