Add warn(unreachable_pub)
to rustc_span
.
This commit is contained in:
parent
b457ab3186
commit
b0f22ff98f
3 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,7 @@ mod tests;
|
||||||
///
|
///
|
||||||
/// This function will use an SSE2 enhanced implementation if hardware support
|
/// This function will use an SSE2 enhanced implementation if hardware support
|
||||||
/// is detected at runtime.
|
/// is detected at runtime.
|
||||||
pub fn analyze_source_file(src: &str) -> (Vec<RelativeBytePos>, Vec<MultiByteChar>) {
|
pub(crate) fn analyze_source_file(src: &str) -> (Vec<RelativeBytePos>, Vec<MultiByteChar>) {
|
||||||
let mut lines = vec![RelativeBytePos::from_u32(0)];
|
let mut lines = vec![RelativeBytePos::from_u32(0)];
|
||||||
let mut multi_byte_chars = vec![];
|
let mut multi_byte_chars = vec![];
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#![feature(round_char_boundary)]
|
#![feature(round_char_boundary)]
|
||||||
#![feature(rustc_attrs)]
|
#![feature(rustc_attrs)]
|
||||||
#![feature(rustdoc_internals)]
|
#![feature(rustdoc_internals)]
|
||||||
|
#![warn(unreachable_pub)]
|
||||||
// tidy-alphabetical-end
|
// tidy-alphabetical-end
|
||||||
|
|
||||||
// The code produced by the `Encodable`/`Decodable` derive macros refer to
|
// The code produced by the `Encodable`/`Decodable` derive macros refer to
|
||||||
|
|
|
@ -424,7 +424,7 @@ impl Span {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
pub struct SpanInterner {
|
pub(crate) struct SpanInterner {
|
||||||
spans: FxIndexSet<SpanData>,
|
spans: FxIndexSet<SpanData>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue