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)]`.
This commit is contained in:
parent
c9c8387955
commit
55505ab1d3
9 changed files with 16 additions and 14 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue