Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 4486c24

Browse files
committed
Add URL and crate_name to test cases
1 parent 6715446 commit 4486c24

20 files changed

+40
-12
lines changed

tests/rustdoc/issue-80233-normalize-auto-trait.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// Regression test for issue #80233
22
// Tests that we don't ICE when processing auto traits
3+
// https://github.com/rust-lang/rust/issues/80233
34

45
#![crate_type = "lib"]
6+
#![crate_name = "foo"]
57
pub trait Trait1 {}
68

79
pub trait Trait2 {
@@ -30,7 +32,7 @@ impl<T: Trait3> Trait3 for Vec<T> {
3032

3133
pub struct Struct1 {}
3234

33-
// @has issue_80233_normalize_auto_trait/struct.Question.html
35+
// @has foo/struct.Question.html
3436
// @has - '//h3[@class="code-header"]' 'impl<T> Send for Question<T>'
3537
pub struct Question<T: Trait1> {
3638
pub ins: <<Vec<T> as Trait3>::Type3 as Trait2>::Type2,

tests/rustdoc/issue-81141-private-reexport-in-public-api-2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ edition:2015
22

3+
// https://github.com/rust-lang/rust/issues/81141
34
#![crate_name = "foo"]
45

56
use external::Public as Private;

tests/rustdoc/issue-81141-private-reexport-in-public-api-generics.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/81141
12
#![crate_name = "foo"]
23

34
use crate::bar::Foo as Alias;

tests/rustdoc/issue-81141-private-reexport-in-public-api-hidden.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ compile-flags: -Z unstable-options --document-hidden-items
22

3+
// https://github.com/rust-lang/rust/issues/81141
34
#![crate_name = "foo"]
45

56
#[doc(hidden)]

tests/rustdoc/issue-81141-private-reexport-in-public-api-private.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ compile-flags: --document-private-items
22

3+
// https://github.com/rust-lang/rust/issues/81141
34
#![crate_name = "foo"]
45

56
use crate::bar::Bar as Alias;

tests/rustdoc/issue-81141-private-reexport-in-public-api.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// This test ensures that if a private re-export is present in a public API, it'll be
22
// replaced by the first public item in the re-export chain or by the private item.
33

4+
// https://github.com/rust-lang/rust/issues/81141
45
#![crate_name = "foo"]
56

67
use crate::bar::Bar as Alias;

tests/rustdoc/issue-82465-asref-for-and-of-local.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
// https://github.com/rust-lang/rust/issues/82465
2+
#![crate_name = "foo"]
3+
14
use std::convert::AsRef;
25
pub struct Local;
36

4-
// @has issue_82465_asref_for_and_of_local/struct.Local.html '//h3[@class="code-header"]' 'impl AsRef<str> for Local'
7+
// @has foo/struct.Local.html '//h3[@class="code-header"]' 'impl AsRef<str> for Local'
58
impl AsRef<str> for Local {
69
fn as_ref(&self) -> &str {
710
todo!()

tests/rustdoc/issue-83375-multiple-mods-w-same-name-doc-inline-last-item.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/83375
12
#![crate_name = "foo"]
23

34
pub mod sub {

tests/rustdoc/issue-83375-multiple-mods-w-same-name-doc-inline.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/83375
12
#![crate_name = "foo"]
23

34
pub mod sub {

tests/rustdoc/issue-85454.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//@ aux-build:issue-85454.rs
22
//@ build-aux-docs
33
#![crate_name = "foo"]
4+
// https://github.com/rust-lang/rust/issues/85454
45

56
extern crate issue_85454;
67

0 commit comments

Comments
 (0)