Allow using core:: in intra-doc links within core itself

I came up with this idea ages ago, but rustdoc used to ICE on it. Now it
doesn't.
This commit is contained in:
Joshua Nelson
2021-04-30 14:54:18 +00:00
parent 814a560072
commit 4a63e1e991
2 changed files with 14 additions and 10 deletions

View File

@@ -169,6 +169,10 @@
#![feature(int_error_matching)]
#![deny(unsafe_op_in_unsafe_fn)]
// allow using `core::` in intra-doc links
#[allow(unused_extern_crates)]
extern crate self as core;
#[prelude_import]
#[allow(unused)]
use prelude::v1::*;