From: Simon Chopin Date: Thu, 13 Jun 2024 09:16:41 +0000 (+0200) Subject: Disable the doctests for the instruction_set errors X-Git-Tag: archive/raspbian/1.94.1+dfsg1-1+rpi1~1^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b6674387784679311f411542067f11c3783da3a6;p=rustc.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. Gbp-Pq: Topic ubuntu 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 4bdf85451c..af57fe848a 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0778.md +++ b/compiler/rustc_error_codes/src/error_codes/E0778.md @@ -17,7 +17,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() {} ``` @@ -26,7 +26,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 036931379a..46969ef938 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0779.md +++ b/compiler/rustc_error_codes/src/error_codes/E0779.md @@ -22,7 +22,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() {} ```