From: Simon Chopin Date: Sat, 14 Jan 2023 08:38:46 +0000 (+0000) Subject: Disable the doctests for the instruction_set errors X-Git-Tag: archive/raspbian/1.63.0+dfsg1-2_deb10u2+rpi1^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=64827708550f4a3d35e42e6b2295a5393278ca45;p=rustc-mozilla.git Disable the doctests for the instruction_set errors 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 --- diff --git a/compiler/rustc_error_codes/src/error_codes/E0778.md b/compiler/rustc_error_codes/src/error_codes/E0778.md index 467362dca..d5688c2de 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0778.md +++ b/compiler/rustc_error_codes/src/error_codes/E0778.md @@ -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() {} ``` diff --git a/compiler/rustc_error_codes/src/error_codes/E0779.md b/compiler/rustc_error_codes/src/error_codes/E0779.md index 146e20c26..9d23322bc 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0779.md +++ b/compiler/rustc_error_codes/src/error_codes/E0779.md @@ -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() {} ```