Rollup merge of #130287 - notriddle:notriddle/issue-d, r=jieyouxu
rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 9) Follow up * https://github.com/rust-lang/rust/pull/116214 * https://github.com/rust-lang/rust/pull/116432 * https://github.com/rust-lang/rust/pull/116824 * https://github.com/rust-lang/rust/pull/118105 * https://github.com/rust-lang/rust/pull/119561 * https://github.com/rust-lang/rust/pull/123574 * https://github.com/rust-lang/rust/pull/125382 * https://github.com/rust-lang/rust/pull/127671 As always, it's easier to review the commits one at a time. Don't use the Files Changed tab. It's confusing.
This commit is contained in:
commit
1c23c8ba0c
@ -1,5 +1,5 @@
|
||||
error[E0229]: associated item constraints are not allowed here
|
||||
--> $DIR/issue-102467.rs:7:17
|
||||
--> $DIR/associated-constant-not-allowed-102467.rs:7:17
|
||||
|
|
||||
LL | type A: S<C<X = 0i32> = 34>;
|
||||
| ^^^^^^^^ associated item constraint not allowed here
|
||||
@ -11,7 +11,7 @@ LL + type A: S<C = 34>;
|
||||
|
|
||||
|
||||
error[E0229]: associated item constraints are not allowed here
|
||||
--> $DIR/issue-102467.rs:7:17
|
||||
--> $DIR/associated-constant-not-allowed-102467.rs:7:17
|
||||
|
|
||||
LL | type A: S<C<X = 0i32> = 34>;
|
||||
| ^^^^^^^^ associated item constraint not allowed here
|
@ -1,4 +1,5 @@
|
||||
//@ check-pass
|
||||
// https://github.com/rust-lang/rust/issues/110629
|
||||
|
||||
#![feature(type_alias_impl_trait)]
|
||||
|
@ -1,3 +1,5 @@
|
||||
// https://github.com/rust-lang/rust/issues/110629
|
||||
|
||||
type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>;
|
||||
//~^ ERROR cycle detected when expanding type alias
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0391]: cycle detected when expanding type alias `Bar`
|
||||
--> $DIR/issue-110629-private-type-cycle-dyn.rs:1:38
|
||||
--> $DIR/private-type-cycle-dyn-110629.rs:3:38
|
||||
|
|
||||
LL | type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>;
|
||||
| ^^^^^^^^^^^
|
||||
@ -9,7 +9,7 @@ LL | type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>;
|
||||
= help: consider using a struct, enum, or union instead to break the cycle
|
||||
= help: see <https://doc.rust-lang.org/reference/types.html#recursive-types> for more information
|
||||
note: cycle used when checking that `Bar` is well-formed
|
||||
--> $DIR/issue-110629-private-type-cycle-dyn.rs:1:1
|
||||
--> $DIR/private-type-cycle-dyn-110629.rs:3:1
|
||||
|
|
||||
LL | type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>;
|
||||
| ^^^^^^^^^^^^^^^^
|
@ -1,4 +1,5 @@
|
||||
// Ensuring that anonymous re-exports are always inlined.
|
||||
// https://github.com/rust-lang/rust/issues/108931
|
||||
|
||||
#![crate_name = "foo"]
|
||||
|
@ -1,5 +1,6 @@
|
||||
// This test ensures that even if the crate module is `#[doc(hidden)]`, the file
|
||||
// is generated.
|
||||
// https://github.com/rust-lang/rust/issues/109695
|
||||
|
||||
//@ has 'foo/index.html'
|
||||
//@ has 'foo/all.html'
|
@ -1,3 +1,4 @@
|
||||
// https://github.com/rust-lang/rust/issues/100679
|
||||
#![crate_name="foo"]
|
||||
|
||||
pub struct Vec;
|
@ -1,5 +1,6 @@
|
||||
//@ aux-build: issue-113982-doc_auto_cfg-reexport-foreign.rs
|
||||
|
||||
// https://github.com/rust-lang/rust/issues/113982
|
||||
#![feature(no_core, doc_auto_cfg)]
|
||||
#![no_core]
|
||||
#![crate_name = "foo"]
|
@ -1,11 +1,13 @@
|
||||
// ignore-tidy-linelength
|
||||
// https://github.com/rust-lang/rust/issues/100679
|
||||
#![crate_name="foo"]
|
||||
|
||||
//@ has issue_33054/impls/struct.Foo.html
|
||||
//@ has foo/impls/struct.Foo.html
|
||||
//@ has - '//h3[@class="code-header"]' 'impl Foo'
|
||||
//@ has - '//h3[@class="code-header"]' 'impl Bar for Foo'
|
||||
//@ count - '//*[@id="trait-implementations-list"]//*[@class="impl"]' 1
|
||||
//@ count - '//*[@id="main-content"]/div[@id="implementations-list"]/details/summary/*[@class="impl"]' 1
|
||||
//@ has issue_33054/impls/bar/trait.Bar.html
|
||||
//@ has foo/impls/bar/trait.Bar.html
|
||||
//@ has - '//h3[@class="code-header"]' 'impl Bar for Foo'
|
||||
//@ count - '//*[@class="struct"]' 1
|
||||
pub mod impls;
|
@ -1,9 +1,12 @@
|
||||
//@ has issue_118180_empty_tuple_struct/enum.Enum.html
|
||||
// https://github.com/rust-lang/rust/issues/118180
|
||||
#![crate_name="foo"]
|
||||
|
||||
//@ has foo/enum.Enum.html
|
||||
pub enum Enum {
|
||||
//@ has - '//*[@id="variant.Empty"]//h3' 'Empty()'
|
||||
Empty(),
|
||||
}
|
||||
|
||||
//@ has issue_118180_empty_tuple_struct/struct.Empty.html
|
||||
//@ has foo/struct.Empty.html
|
||||
//@ has - '//pre/code' 'Empty()'
|
||||
pub struct Empty();
|
@ -1,4 +1,7 @@
|
||||
//@ has issue_108925/enum.MyThing.html
|
||||
// https://github.com/rust-lang/rust/issues/108925
|
||||
#![crate_name="foo"]
|
||||
|
||||
//@ has foo/enum.MyThing.html
|
||||
//@ has - '//code' 'Shown'
|
||||
//@ !has - '//code' 'NotShown'
|
||||
//@ !has - '//code' '// some variants omitted'
|
@ -1,3 +1,4 @@
|
||||
// https://github.com/rust-lang/rust/issues/111249
|
||||
#![crate_name = "foo"]
|
||||
#![feature(no_core)]
|
||||
#![no_core]
|
@ -1,3 +1,4 @@
|
||||
// https://github.com/rust-lang/rust/issues/94683
|
||||
#![crate_name = "foo"]
|
||||
|
||||
pub trait Trait {
|
@ -1,8 +1,10 @@
|
||||
// Make sure that we escape the arguments of the GAT projection even if we fail to compute
|
||||
// the href of the corresponding trait (in this case it is private).
|
||||
// Further, test that we also linkify the GAT arguments.
|
||||
// https://github.com/rust-lang/rust/issues/94683
|
||||
#![crate_name="foo"]
|
||||
|
||||
//@ has 'issue_109488/type.A.html'
|
||||
//@ has 'foo/type.A.html'
|
||||
//@ has - '//pre[@class="rust item-decl"]' '<S as Tr>::P<Option<i32>>'
|
||||
//@ has - '//pre[@class="rust item-decl"]//a[@class="enum"]/@href' '{{channel}}/core/option/enum.Option.html'
|
||||
pub type A = <S as Tr>::P<Option<i32>>;
|
@ -1,3 +1,4 @@
|
||||
// https://github.com/rust-lang/rust/issues/115295
|
||||
#![crate_name = "foo"]
|
||||
|
||||
//@ has foo/trait.Trait.html
|
@ -1,10 +1,12 @@
|
||||
//@ compile-flags: --document-private-items
|
||||
|
||||
// https://github.com/rust-lang/rust/issues/110629
|
||||
#![crate_name="foo"]
|
||||
#![feature(type_alias_impl_trait)]
|
||||
|
||||
type Bar<'a, 'b> = impl PartialEq<Bar<'a, 'b>> + std::fmt::Debug;
|
||||
|
||||
//@ has issue_110629_private_type_cycle/type.Bar.html
|
||||
//@ has foo/type.Bar.html
|
||||
//@ has - '//pre[@class="rust item-decl"]' \
|
||||
// "pub(crate) type Bar<'a, 'b> = impl PartialEq<Bar<'a, 'b>> + Debug;"
|
||||
|
@ -1,3 +1,4 @@
|
||||
// Regression test for <https://github.com/rust-lang/rust/issues/111064>.
|
||||
#![feature(no_core)]
|
||||
#![no_core]
|
||||
#![crate_name = "foo"]
|
Loading…
Reference in New Issue
Block a user