Skip to content

Commit 08f194f

Browse files
authored
Rollup merge of rust-lang#137540 - yotamofek:pr/more-deprecated-test-directives, r=notriddle
Fix (more) test directives that were accidentally ignored Continuation of rust-lang#137099 , caught by rust-lang#137103 (and needed to unblock that one). These test directives were accidentally using the old (`// `@`)` syntax
2 parents 6e2ccb2 + 0881dba commit 08f194f

File tree

14 files changed

+24
-26
lines changed

14 files changed

+24
-26
lines changed

tests/run-make/rustdoc-scrape-examples-macros/src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Scraped example should only include line numbers for items b and c in ex.rs
2-
// @!has foobar/fn.f.html '//*[@class="src-line-numbers"]' '14'
3-
// @has foobar/fn.f.html '//*[@class="src-line-numbers"]' '15'
4-
// @has foobar/fn.f.html '//*[@class="src-line-numbers"]' '21'
5-
// @!has foobar/fn.f.html '//*[@class="src-line-numbers"]' '22'
2+
//@ !has foobar/fn.f.html '//span[@data-nosnippet]' '14'
3+
//@ has foobar/fn.f.html '//span[@data-nosnippet]' '15'
4+
//@ has foobar/fn.f.html '//span[@data-nosnippet]' '21'
5+
//@ !has foobar/fn.f.html '//span[@data-nosnippet]' '22'
66

77
pub fn f() {}
88

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
// @has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]//*[@class="prev"]' ''
2-
// @has foobar/fn.ok.html '//*[@class="more-scraped-examples"]' ''
3-
// @has src/ex/ex.rs.html
4-
// @has foobar/fn.ok.html '//a[@href="../src/ex/ex.rs.html#2"]' ''
1+
//@ has foobar/fn.ok.html '//*[@class="more-scraped-examples"]' ''
2+
//@ has src/ex/ex.rs.html
3+
//@ has foobar/fn.ok.html '//a[@href="../src/ex/ex.rs.html#2"]' ''
54

65
pub fn ok() {}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// @has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]' 'ex2'
2-
// @has foobar/fn.ok.html '//*[@class="more-scraped-examples"]' 'ex1'
3-
// @has foobar/fn.ok.html '//*[@class="highlight focus"]' 'ok'
4-
// @has foobar/fn.ok.html '//*[@class="highlight"]' 'ok'
1+
//@ has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]' 'ex2'
2+
//@ has foobar/fn.ok.html '//*[@class="more-scraped-examples"]' 'ex1'
3+
//@ has foobar/fn.ok.html '//*[@class="highlight focus"]' 'ok'
4+
//@ has foobar/fn.ok.html '//*[@class="highlight"]' 'ok'
55

66
pub fn ok(_x: i32) {}

tests/run-make/rustdoc-scrape-examples-remap/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// @has foobar/b/fn.foo.html '//*[@class="scraped-example expanded"]' 'ex.rs'
2-
// @has foobar/c/fn.foo.html '//*[@class="scraped-example expanded"]' 'ex.rs'
1+
//@ has foobar/b/fn.foo.html '//*[@class="scraped-example expanded"]' 'ex.rs'
2+
//@ has foobar/c/fn.foo.html '//*[@class="scraped-example expanded"]' 'ex.rs'
33

44
#[path = "a.rs"]
55
pub mod b;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// @has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]' ''
1+
//@ has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]' ''
22

33
pub fn ok() {}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// @has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]//code' ' '
1+
//@ has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]//code' ' '
22

33
pub fn ok() {}

tests/run-make/rustdoc-themes/foo.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// @has test.css
2-
// @has foo/struct.Foo.html
3-
// @has - '//*[@name="rustdoc-vars"]/@data-themes' 'test'
1+
//@ has test.css
2+
//@ has foo/struct.Foo.html
3+
//@ has - '//*[@name="rustdoc-vars"]/@data-themes' 'test'
44
pub struct Foo;
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// @has foobar/fn.ok.html
1+
//@ has foobar/fn.ok.html
22
pub fn ok() {}
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// @has foobar/fn.ok.html
1+
//@ has foobar/fn.ok.html
22
pub fn ok() {}
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// @has foobar/fn.ok.html
1+
//@ has foobar/fn.ok.html
22
pub fn ok() {}

tests/rustdoc-ui/unused-extern-crate.rs

-3
This file was deleted.
File renamed without changes.

tests/rustdoc/unused-extern-crate.rs

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
//@ aux-crate:panic_item=panic-item.rs
2+
//@ has unused_extern_crate/index.html

tests/ui/inline-const/collect-scopes-in-pat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// @compile-flags: -Zlint-mir
1+
//@ compile-flags: -Zlint-mir
22
//@ check-pass
33

44
#![feature(inline_const_pat)]

0 commit comments

Comments
 (0)