File tree 3 files changed +25
-4
lines changed
3 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -1201,11 +1201,12 @@ impl LangString {
1201
1201
seen_rust_tags = !seen_other_tags;
1202
1202
}
1203
1203
LangStringToken :: LangToken ( x)
1204
- if let Some ( ignore) = x. strip_prefix ( "ignore-" )
1205
- && enable_per_target_ignores =>
1204
+ if let Some ( ignore) = x. strip_prefix ( "ignore-" ) =>
1206
1205
{
1207
- ignores. push ( ignore. to_owned ( ) ) ;
1208
- seen_rust_tags = !seen_other_tags;
1206
+ if enable_per_target_ignores {
1207
+ ignores. push ( ignore. to_owned ( ) ) ;
1208
+ seen_rust_tags = !seen_other_tags;
1209
+ }
1209
1210
}
1210
1211
LangStringToken :: LangToken ( "rust" ) => {
1211
1212
data. rust = true ;
Original file line number Diff line number Diff line change
1
+ //@ only-aarch64
2
+ //@ compile-flags:--test
3
+ //@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
4
+ //@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
5
+ //@ check-pass
6
+
7
+ ///```ignore-x86_64
8
+ /// assert!(cfg!(not(target_arch = "x86_64")));
9
+ ///```
10
+ pub fn foo ( ) -> u8 {
11
+ 4
12
+ }
13
+
14
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+
2
+ running 1 test
3
+ test $DIR/per-target-ignores.rs - foo (line 6) ... ok
4
+
5
+ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
6
+
You can’t perform that action at this time.
0 commit comments