diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-11 11:51:07 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-11 13:14:21 +1100 |
| commit | 55505ab1d3da2ad201303674cb6d3ebeb53e395d (patch) | |
| tree | 2be50d4dca384042dcc183304359dee402d653e1 /compiler/rustc_index_macros | |
| parent | c9c838795554901fa22ad14c2d34f270567aaa27 (diff) | |
| download | rust-55505ab1d3da2ad201303674cb6d3ebeb53e395d.tar.gz rust-55505ab1d3da2ad201303674cb6d3ebeb53e395d.zip | |
Add `unreachable_pub` to `RUSTC_LINT_FLAGS` for `compiler/` crates.
And fix the new errors in the handful of crates that didn't have a `#![warn(unreachable_pub)]`.
Diffstat (limited to 'compiler/rustc_index_macros')
| -rw-r--r-- | compiler/rustc_index_macros/src/newtype.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_index_macros/src/newtype.rs b/compiler/rustc_index_macros/src/newtype.rs index 67ec7761133..f0b58eabbff 100644 --- a/compiler/rustc_index_macros/src/newtype.rs +++ b/compiler/rustc_index_macros/src/newtype.rs @@ -305,7 +305,7 @@ impl Parse for Newtype { } } -pub fn newtype(input: proc_macro::TokenStream) -> proc_macro::TokenStream { +pub(crate) fn newtype(input: proc_macro::TokenStream) -> proc_macro::TokenStream { let input = parse_macro_input!(input as Newtype); input.0.into() } |
