-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #103120 - petrochenkov:docice, r=GuillaumeGomez
rustdoc: Do not expect `doc(primitive)` modules to always exist The second commit fixes one more ICE by processing impls in crates loaded through the "load all `--extern`s" hack. Fixes #96288 Fixes #103028
- Loading branch information
Showing
3 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Crate tree without a `doc(primitive)` module for primitive type linked to by a doc link. | ||
|
||
#![deny(rustdoc::broken_intra_doc_links)] | ||
#![feature(no_core, lang_items, rustc_attrs)] | ||
#![no_core] | ||
#![rustc_coherence_is_core] | ||
#![crate_type = "rlib"] | ||
|
||
// @has no_doc_primitive/index.html | ||
//! A [`char`] and its [`char::len_utf8`]. | ||
impl char { | ||
pub fn len_utf8(self) -> usize { | ||
42 | ||
} | ||
} |