Skip to content

Commit 0fb53e7

Browse files
authored
Rollup merge of #143759 - fluiderson:rdttff, r=aDotInTheVoid
Fix typos in function names in the `target_feature` test Seems like `test1` was copy-pasted but forgotten to be renamed after.
2 parents 4d89e63 + ed96f00 commit 0fb53e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/rustdoc-json/attrs/target_feature.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
pub fn test1() {}
77

88
//@ is "$.index[?(@.name=='test2')].attrs" '["#[target_feature(enable=\"avx\", enable=\"avx2\")]"]'
9-
//@ is "$.index[?(@.name=='test1')].inner.function.header.is_unsafe" false
9+
//@ is "$.index[?(@.name=='test2')].inner.function.header.is_unsafe" false
1010
#[target_feature(enable = "avx,avx2")]
1111
pub fn test2() {}
1212

1313
//@ is "$.index[?(@.name=='test3')].attrs" '["#[target_feature(enable=\"avx\", enable=\"avx2\")]"]'
14-
//@ is "$.index[?(@.name=='test1')].inner.function.header.is_unsafe" false
14+
//@ is "$.index[?(@.name=='test3')].inner.function.header.is_unsafe" false
1515
#[target_feature(enable = "avx", enable = "avx2")]
1616
pub fn test3() {}
1717

1818
//@ is "$.index[?(@.name=='test4')].attrs" '["#[target_feature(enable=\"avx\", enable=\"avx2\", enable=\"avx512f\")]"]'
19-
//@ is "$.index[?(@.name=='test1')].inner.function.header.is_unsafe" false
19+
//@ is "$.index[?(@.name=='test4')].inner.function.header.is_unsafe" false
2020
#[target_feature(enable = "avx", enable = "avx2,avx512f")]
2121
pub fn test4() {}
2222

0 commit comments

Comments
 (0)