fix rustdoc wrt builtin impls switch
This commit is contained in:
parent
a6153e8218
commit
ee62514b16
8 changed files with 35 additions and 23 deletions
|
@ -1,13 +1,13 @@
|
|||
#![feature(lang_items)]
|
||||
#![feature(rustc_attrs)]
|
||||
#![feature(rustdoc_internals)]
|
||||
#![no_std]
|
||||
|
||||
pub mod str {
|
||||
#![doc(primitive = "str")]
|
||||
|
||||
#[lang = "str_alloc"]
|
||||
impl str {
|
||||
// @has search-index.js foo
|
||||
#[rustc_allow_incoherent_impl]
|
||||
pub fn foo(&self) {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue