Add warn(unreachable_pub)
to rustc_macros
.
This commit is contained in:
parent
6cf068db56
commit
4b92682530
8 changed files with 17 additions and 16 deletions
|
@ -1,7 +1,7 @@
|
|||
use quote::quote;
|
||||
use syn::parse_quote;
|
||||
|
||||
pub fn lift_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::TokenStream {
|
||||
pub(super) fn lift_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::TokenStream {
|
||||
s.add_bounds(synstructure::AddBounds::Generics);
|
||||
s.bind_with(|_| synstructure::BindStyle::Move);
|
||||
s.underscore_const(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue