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.rs | |
| 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.rs')
| -rw-r--r-- | tests/ui/attributes/unix_sigpipe/unix_sigpipe-start.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/attributes/unix_sigpipe/unix_sigpipe-start.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-start.rs index 64fd5ec4f0e..945b820f9e0 100644 --- a/tests/ui/attributes/unix_sigpipe/unix_sigpipe-start.rs +++ b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-start.rs @@ -2,5 +2,5 @@ #![feature(unix_sigpipe)] #[start] -#[unix_sigpipe = "inherit"] //~ error: `unix_sigpipe` attribute can only be used on `fn main()` +#[unix_sigpipe = "sig_dfl"] //~ error: `unix_sigpipe` attribute can only be used on `fn main()` fn custom_start(argc: isize, argv: *const *const u8) -> isize { 0 } |
