Add missing lang items in no_core tests in rustdoc
This commit is contained in:
parent
0d907c17a8
commit
36839759ce
8 changed files with 31 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
#![feature(no_core)]
|
||||
#![feature(no_core, lang_items)]
|
||||
#![feature(rustc_attrs)]
|
||||
#![feature(rustdoc_internals)]
|
||||
#![no_core]
|
||||
|
@ -6,6 +6,9 @@
|
|||
|
||||
//@ set impl_i32 = "$.index[*][?(@.docs=='Only core can do this')].id"
|
||||
|
||||
#[lang = "sized"]
|
||||
trait Sized {}
|
||||
|
||||
/// Only core can do this
|
||||
impl i32 {
|
||||
//@ set identity = "$.index[*][?(@.docs=='Do Nothing')].id"
|
||||
|
|
|
@ -2,9 +2,12 @@
|
|||
// feature.
|
||||
|
||||
#![deny(warnings)]
|
||||
#![feature(no_core)]
|
||||
#![feature(no_core, lang_items)]
|
||||
#![no_core]
|
||||
|
||||
#[lang = "sized"]
|
||||
trait Sized {}
|
||||
|
||||
/// ```{class="}
|
||||
/// main;
|
||||
/// ```
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error: unclosed quote string `"`
|
||||
--> $DIR/custom_code_classes_in_docs-warning3.rs:8:1
|
||||
--> $DIR/custom_code_classes_in_docs-warning3.rs:11:1
|
||||
|
|
||||
LL | / /// ```{class="}
|
||||
LL | | /// main;
|
||||
|
@ -17,7 +17,7 @@ LL | #![deny(warnings)]
|
|||
= note: `#[deny(rustdoc::invalid_codeblock_attributes)]` implied by `#[deny(warnings)]`
|
||||
|
||||
error: unclosed quote string `"`
|
||||
--> $DIR/custom_code_classes_in_docs-warning3.rs:8:1
|
||||
--> $DIR/custom_code_classes_in_docs-warning3.rs:11:1
|
||||
|
|
||||
LL | / /// ```{class="}
|
||||
LL | | /// main;
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
#![feature(doc_cfg)]
|
||||
#![feature(no_core)]
|
||||
#![feature(no_core, lang_items)]
|
||||
|
||||
#![crate_name = "foo"]
|
||||
#![no_core]
|
||||
|
||||
#[lang = "sized"]
|
||||
trait Sized {}
|
||||
|
||||
//@ has 'foo/index.html'
|
||||
//@ has - '//dt/*[@class="stab portability"]' 'foobar'
|
||||
//@ has - '//dt/*[@class="stab portability"]' 'bar'
|
||||
|
|
|
@ -2,9 +2,12 @@
|
|||
//@ compile-flags: --extern-html-root-url=primitive_doc=../ -Z unstable-options
|
||||
//@ only-linux
|
||||
|
||||
#![feature(no_core)]
|
||||
#![feature(no_core, lang_items)]
|
||||
#![no_core]
|
||||
|
||||
#[lang = "sized"]
|
||||
trait Sized {}
|
||||
|
||||
extern crate primitive_doc;
|
||||
|
||||
//@ has 'cross_crate_primitive_doc/fn.foo.html' '//a[@href="../primitive_doc/primitive.usize.html"]' 'usize'
|
||||
|
|
|
@ -6,8 +6,13 @@
|
|||
#![rustc_coherence_is_core]
|
||||
#![crate_type = "rlib"]
|
||||
|
||||
|
||||
//@ has no_doc_primitive/index.html
|
||||
//! A [`char`] and its [`char::len_utf8`].
|
||||
|
||||
#[lang = "sized"]
|
||||
trait Sized {}
|
||||
|
||||
impl char {
|
||||
pub fn len_utf8(self) -> usize {
|
||||
42
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
// Regression test for <https://github.com/rust-lang/rust/issues/111064>.
|
||||
#![feature(no_core)]
|
||||
#![feature(no_core, lang_items)]
|
||||
#![no_core]
|
||||
#![crate_name = "foo"]
|
||||
|
||||
#[lang = "sized"]
|
||||
trait Sized {}
|
||||
|
||||
//@ files "foo" "['sidebar-items.js', 'all.html', 'hidden', 'index.html', 'struct.Bar.html', \
|
||||
// 'visible']"
|
||||
//@ files "foo/hidden" "['inner']"
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
#![feature(intrinsics)]
|
||||
#![feature(no_core)]
|
||||
#![feature(no_core, lang_items)]
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
#![no_core]
|
||||
#![crate_name = "foo"]
|
||||
|
||||
#[lang = "sized"]
|
||||
trait Sized {}
|
||||
|
||||
//@ has 'foo/fn.abort.html'
|
||||
//@ has - '//pre[@class="rust item-decl"]' 'pub fn abort() -> !'
|
||||
#[rustc_intrinsic]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue