]> git.lizzy.rs Git - rust.git/commitdiff
error code examples: replace some more ignore with compile_fail
authorTrevor Spiteri <tspiteri@ieee.org>
Thu, 6 Feb 2020 14:31:21 +0000 (15:31 +0100)
committerTrevor Spiteri <tspiteri@ieee.org>
Thu, 6 Feb 2020 14:31:21 +0000 (15:31 +0100)
Now that compile_fail attempts a full build rather than
--emit=metadata, these errors should be caught by compile_fail and do
not need to be ignored.

src/librustc_error_codes/error_codes/E0511.md
src/librustc_error_codes/error_codes/E0534.md
src/librustc_error_codes/error_codes/E0535.md
src/librustc_error_codes/error_codes/E0633.md
src/librustc_error_codes/error_codes/E0668.md

index 2d6ff8241e69232754927cac33b4515d2b936170..4f6644f358291bf6d6ca7cc1eb264aaec8c42192 100644 (file)
@@ -1,7 +1,7 @@
 Invalid monomorphization of an intrinsic function was used. Erroneous code
 example:
 
-```ignore (error-emitted-at-codegen-which-cannot-be-handled-by-compile_fail)
+```compile_fail,E0511
 #![feature(platform_intrinsics)]
 
 extern "platform-intrinsic" {
index e50b84764b4dbc28dacbe68ee851a1746c6a6ae5..0afa4a8c9581167e27bb1b93413d96ce8936a267 100644 (file)
@@ -2,7 +2,7 @@ The `inline` attribute was malformed.
 
 Erroneous code example:
 
-```ignore (compile_fail not working here; see Issue #43707)
+```compile_fail,E0534
 #[inline()] // error: expected one argument
 pub fn something() {}
 
index e9abfe5dda1ba913f57d338256d7ce1287c5b12a..035d395b76fe7040a7ab71dc86a060be3e819012 100644 (file)
@@ -2,7 +2,7 @@ An unknown argument was given to the `inline` attribute.
 
 Erroneous code example:
 
-```ignore (compile_fail not working here; see Issue #43707)
+```compile_fail,E0535
 #[inline(unknown)] // error: invalid argument
 pub fn something() {}
 
index 65cdf90036adeb044aaf7486539dbad5136e86f7..7f488cde664d94859cfe17920775b11be27b3e71 100644 (file)
@@ -2,7 +2,9 @@ The `unwind` attribute was malformed.
 
 Erroneous code example:
 
-```ignore (compile_fail not working here; see Issue #43707)
+```compile_fail,E0633
+#![feature(unwind_attributes)]
+
 #[unwind()] // error: expected one argument
 pub extern fn something() {}
 
index 2621a31a9e0f8d89d133ba3b3aa9fbd7adc35d8a..f5d26244fb961e15abe11e1b8ed946502e4eafee 100644 (file)
@@ -6,7 +6,7 @@ assembly call.
 
 In particular, it can happen if you forgot the closing bracket of a register
 constraint (see issue #51430):
-```ignore (error-emitted-at-codegen-which-cannot-be-handled-by-compile_fail)
+```compile_fail,E0668
 #![feature(asm)]
 
 fn main() {