1
Fork 0

fix rustdoc wrt builtin impls switch

This commit is contained in:
lcnr 2022-03-18 17:02:32 +01:00
parent a6153e8218
commit ee62514b16
8 changed files with 35 additions and 23 deletions

View file

@ -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) {}
}
}