diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-27 12:03:37 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-27 12:03:37 +1000 |
| commit | 5fd503ab445b2a70897026e495dd4df4343333eb (patch) | |
| tree | 3a11f2af6663ebc61d2b0d883a72e114cc76a799 /compiler/rustc_errors/src/markdown/parse.rs | |
| parent | 2b5621280c118ca72eb84470129c72b069e22907 (diff) | |
| download | rust-5fd503ab445b2a70897026e495dd4df4343333eb.tar.gz rust-5fd503ab445b2a70897026e495dd4df4343333eb.zip | |
Add `warn(unreachable_pub)` to `rustc_errors`.
Diffstat (limited to 'compiler/rustc_errors/src/markdown/parse.rs')
| -rw-r--r-- | compiler/rustc_errors/src/markdown/parse.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/markdown/parse.rs b/compiler/rustc_errors/src/markdown/parse.rs index 46f8959b6f2..b1db44dd215 100644 --- a/compiler/rustc_errors/src/markdown/parse.rs +++ b/compiler/rustc_errors/src/markdown/parse.rs @@ -74,7 +74,7 @@ enum ParseOpt { } /// Parse a buffer -pub fn entrypoint(txt: &str) -> MdStream<'_> { +pub(crate) fn entrypoint(txt: &str) -> MdStream<'_> { let ctx = Context { top_block: true, prev: Prev::Newline }; normalize(parse_recursive(txt.trim().as_bytes(), ctx), &mut Vec::new()) } |
