Disable the doctests for the instruction_set errors
authorSimon Chopin <simon.chopin@canonical.com>
Sat, 30 Dec 2023 13:52:00 +0000 (14:52 +0100)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Sat, 30 Dec 2023 13:52:00 +0000 (14:52 +0100)
Bug: https://github.com/rust-lang/rust/issues/83453
Last-Update: 2022-02-23

The fix is as described in the upstream issue.
Last-Update: 2022-02-23
Gbp-Pq: Name ubuntu-ignore-arm-doctest.patch

compiler/rustc_error_codes/src/error_codes/E0778.md
compiler/rustc_error_codes/src/error_codes/E0779.md

index 467362dca58fdf15fe3d694463661b80e50a9a1a..d5688c2de47e9b483f5bd07b46947607a26d0efb 100644 (file)
@@ -16,7 +16,7 @@ specified:
 ```
 #![feature(isa_attribute)]
 
-#[cfg_attr(target_arch="arm", instruction_set(arm::a32))]
+#[cfg_attr(all(target_arch="arm", target_os="none"), instruction_set(arm::a32))]
 fn something() {}
 ```
 
@@ -25,7 +25,7 @@ or:
 ```
 #![feature(isa_attribute)]
 
-#[cfg_attr(target_arch="arm", instruction_set(arm::t32))]
+#[cfg_attr(all(target_arch="arm", target_os="none"), instruction_set(arm::t32))]
 fn something() {}
 ```
 
index 146e20c262659213cf4337ab751457433c84800d..9d23322bc3dc02b533f2e6f003c1756ec136d6e7 100644 (file)
@@ -21,7 +21,7 @@ error. Example:
 ```
 #![feature(isa_attribute)]
 
-#[cfg_attr(target_arch="arm", instruction_set(arm::a32))] // ok!
+#[cfg_attr(all(target_arch="arm", target_os="none"), instruction_set(arm::a32))] // ok!
 pub fn something() {}
 fn main() {}
 ```