tests/rustdoc-json: Remove some needless uses of #![no_core]
.
Done by removing all uses of `#![no_core]`, and the reverting the ones that failed. More involved ones are in a later commit.
This commit is contained in:
parent
187d1afa9d
commit
f784fa7bd9
40 changed files with 9 additions and 126 deletions
|
@ -1,6 +1,3 @@
|
|||
#![feature(no_core)]
|
||||
#![no_core]
|
||||
|
||||
pub struct Foo;
|
||||
|
||||
/// impl Foo priv
|
||||
|
@ -9,18 +6,16 @@ impl Foo {
|
|||
}
|
||||
// @!has '$.index[*][?(@.docs=="impl Foo priv")]'
|
||||
|
||||
|
||||
/// impl Foo pub
|
||||
impl Foo {
|
||||
pub fn qux() {}
|
||||
}
|
||||
// @is '$.index[*][?(@.docs=="impl Foo pub")].visibility' '"default"'
|
||||
|
||||
|
||||
/// impl Foo hidden
|
||||
impl Foo {
|
||||
#[doc(hidden)]
|
||||
pub fn __quazl(){}
|
||||
pub fn __quazl() {}
|
||||
}
|
||||
// FIXME(#111564): Is this the right behaviour?
|
||||
// @is '$.index[*][?(@.docs=="impl Foo hidden")].visibility' '"default"'
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
// compile-flags: --document-hidden-items
|
||||
#![feature(no_core)]
|
||||
#![no_core]
|
||||
|
||||
pub struct Foo;
|
||||
|
||||
|
@ -11,18 +9,16 @@ impl Foo {
|
|||
// FIXME(#111564): Is this the right behaviour?
|
||||
// @is '$.index[*][?(@.docs=="impl Foo priv")].visibility' '"default"'
|
||||
|
||||
|
||||
/// impl Foo pub
|
||||
impl Foo {
|
||||
pub fn qux() {}
|
||||
}
|
||||
// @is '$.index[*][?(@.docs=="impl Foo pub")].visibility' '"default"'
|
||||
|
||||
|
||||
/// impl Foo hidden
|
||||
impl Foo {
|
||||
#[doc(hidden)]
|
||||
pub fn __quazl(){}
|
||||
pub fn __quazl() {}
|
||||
}
|
||||
// FIXME(#111564): Is this the right behaviour?
|
||||
// @is '$.index[*][?(@.docs=="impl Foo hidden")].visibility' '"default"'
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
// compile-flags: --document-private-items
|
||||
#![feature(no_core)]
|
||||
#![no_core]
|
||||
|
||||
pub struct Foo;
|
||||
|
||||
|
@ -10,18 +8,16 @@ impl Foo {
|
|||
}
|
||||
// @is '$.index[*][?(@.docs=="impl Foo priv")].visibility' '"default"'
|
||||
|
||||
|
||||
/// impl Foo pub
|
||||
impl Foo {
|
||||
pub fn qux() {}
|
||||
}
|
||||
// @is '$.index[*][?(@.docs=="impl Foo pub")].visibility' '"default"'
|
||||
|
||||
|
||||
/// impl Foo hidden
|
||||
impl Foo {
|
||||
#[doc(hidden)]
|
||||
pub fn __quazl(){}
|
||||
pub fn __quazl() {}
|
||||
}
|
||||
// FIXME(#111564): Is this the right behaviour?
|
||||
// @is '$.index[*][?(@.docs=="impl Foo hidden")].visibility' '"default"'
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
// compile-flags: --document-hidden-items
|
||||
|
||||
#![feature(no_core)]
|
||||
#![no_core]
|
||||
|
||||
// @has "$.index[*][?(@.name == 'HiddenPubStruct')]"
|
||||
// @has "$.index[*][?(@.inner.impl)]"
|
||||
// @has "$.index[*][?(@.name=='PubTrait')]"
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#![feature(no_core)]
|
||||
#![feature(rustc_attrs)]
|
||||
#![no_core]
|
||||
|
||||
// @set Local = "$.index[*][?(@.name=='Local')].id"
|
||||
pub trait Local {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue