about summary refs log tree commit diff
path: root/tests/ui/rfcs
diff options
context:
space:
mode:
authorJana Dönszelmann <jana@donsz.nl>2025-08-16 18:04:58 +0200
committerJana Dönszelmann <jana@donsz.nl>2025-08-21 13:15:30 +0200
commit2158e2d4d7b2722325de01530296c4e93297c06f (patch)
treed18a87ad2bc0cdb0fd5cabf8f59ab2eb6d7beb7f /tests/ui/rfcs
parent9be8effb3f7636521d0d177fe23504bd69094ba3 (diff)
downloadrust-2158e2d4d7b2722325de01530296c4e93297c06f.tar.gz
rust-2158e2d4d7b2722325de01530296c4e93297c06f.zip
refactor target checking, move out of context.rs and rename MaybeWarn to Policy
Diffstat (limited to 'tests/ui/rfcs')
-rw-r--r--tests/ui/rfcs/rfc-2008-non-exhaustive/invalid-attribute.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/rfcs/rfc-2008-non-exhaustive/invalid-attribute.stderr b/tests/ui/rfcs/rfc-2008-non-exhaustive/invalid-attribute.stderr
index 3522c459977..98e8f1235e6 100644
--- a/tests/ui/rfcs/rfc-2008-non-exhaustive/invalid-attribute.stderr
+++ b/tests/ui/rfcs/rfc-2008-non-exhaustive/invalid-attribute.stderr
@@ -13,7 +13,7 @@ error: `#[non_exhaustive]` attribute cannot be used on traits
 LL | #[non_exhaustive]
    | ^^^^^^^^^^^^^^^^^
    |
-   = help: `#[non_exhaustive]` can be applied to data types, enum variants
+   = help: `#[non_exhaustive]` can be applied to data types and enum variants
 
 error: `#[non_exhaustive]` attribute cannot be used on unions
   --> $DIR/invalid-attribute.rs:9:1
@@ -21,7 +21,7 @@ error: `#[non_exhaustive]` attribute cannot be used on unions
 LL | #[non_exhaustive]
    | ^^^^^^^^^^^^^^^^^
    |
-   = help: `#[non_exhaustive]` can be applied to data types, enum variants
+   = help: `#[non_exhaustive]` can be applied to data types and enum variants
 
 error: aborting due to 3 previous errors