diff options
| author | Martin Nordholts <martin.nordholts@codetale.se> | 2024-02-09 08:05:32 +0100 |
|---|---|---|
| committer | Martin Nordholts <martin.nordholts@codetale.se> | 2024-03-11 06:19:30 +0100 |
| commit | aea60b0cc78cf7b0d189c52f79563f1e4e82dfb8 (patch) | |
| tree | ed2230f57686e90a780fe16640f1683898b35354 /tests/ui/attributes/unix_sigpipe/unix_sigpipe-start.stderr | |
| parent | c69fda7dc664e62f8920a02a4e55d6207b212c24 (diff) | |
| download | rust-aea60b0cc78cf7b0d189c52f79563f1e4e82dfb8.tar.gz rust-aea60b0cc78cf7b0d189c52f79563f1e4e82dfb8.zip | |
unix_sigpipe: Replace `inherit` with `sig_dfl` in syntax tests
The `sig_dfl` variant of the attribute is the most likely variant to be stabilized first, and thus to become the "most allowed" variant of the attribute. Because of this, it is the most appropriate variant to use in syntax tests, because even if the most allowed variant is used, the compiler shall still emit errors if it e.g. is used in the wrong places.
Diffstat (limited to 'tests/ui/attributes/unix_sigpipe/unix_sigpipe-start.stderr')
| -rw-r--r-- | tests/ui/attributes/unix_sigpipe/unix_sigpipe-start.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/attributes/unix_sigpipe/unix_sigpipe-start.stderr b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-start.stderr index 9f691e396bd..3d56b3655c9 100644 --- a/tests/ui/attributes/unix_sigpipe/unix_sigpipe-start.stderr +++ b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-start.stderr @@ -1,7 +1,7 @@ error: `unix_sigpipe` attribute can only be used on `fn main()` --> $DIR/unix_sigpipe-start.rs:5:1 | -LL | #[unix_sigpipe = "inherit"] +LL | #[unix_sigpipe = "sig_dfl"] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 1 previous error |
