1
Fork 0

Add warn(unreachable_pub) to rustc_macros.

This commit is contained in:
Nicholas Nethercote 2024-08-29 09:01:17 +10:00
parent 6cf068db56
commit 4b92682530
8 changed files with 17 additions and 16 deletions

View file

@ -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);