diff --git a/stabby-macros/src/enums.rs b/stabby-macros/src/enums.rs index fa7a0f6..b6b56eb 100644 --- a/stabby-macros/src/enums.rs +++ b/stabby-macros/src/enums.rs @@ -210,10 +210,10 @@ pub fn stabby( report.tyty = quote!(#st::report::TyTy::Enum(#st::str::Str::new(#reprstr))); let report_bounds = report.bounds(); let size_bug = format!( - "{ident}'s size was mis-evaluated by stabby, this is a definitely a bug and may cause UB, please file an issue" + "{ident}'s size was mis-evaluated by stabby, this is definitely a bug and may cause UB, please file an issue" ); let align_bug = format!( - "{ident}'s align was mis-evaluated by stabby, this is a definitely a bug and may cause UB, please file an issue" + "{ident}'s align was mis-evaluated by stabby, this is definitely a bug and may cause UB, please file an issue" ); quote! { #(#new_attrs)* @@ -335,7 +335,7 @@ impl Variants { } } -pub fn repr_stabby( +pub(crate) fn repr_stabby( attrs: &Vec, vis: &Visibility, ident: &Ident, @@ -487,10 +487,10 @@ pub fn repr_stabby( }) }); let size_bug = format!( - "{ident}'s size was mis-evaluated by stabby, this is a definitely a bug and may cause UB, please fill an issue" + "{ident}'s size was mis-evaluated by stabby, this is definitely a bug and may cause UB, please fill an issue" ); let align_bug = format!( - "{ident}'s align was mis-evaluated by stabby, this is a definitely a bug and may cause UB, please fill an issue" + "{ident}'s align was mis-evaluated by stabby, this is definitely a bug and may cause UB, please fill an issue" ); quote! { const _: () = { diff --git a/stabby-macros/src/structs.rs b/stabby-macros/src/structs.rs index dcf00d6..db5cade 100644 --- a/stabby-macros/src/structs.rs +++ b/stabby-macros/src/structs.rs @@ -85,10 +85,10 @@ pub fn stabby( let layout = layout.map_or_else(|| quote!(()), |layout| quote!(#st::Struct<#layout>)); let opt_id = quote::format_ident!("OptimizedLayoutFor{ident}"); let size_bug = format!( - "{ident}'s size was mis-evaluated by stabby, this is a definitely a bug and may cause UB, please file an issue" + "{ident}'s size was mis-evaluated by stabby, this is definitely a bug and may cause UB, please file an issue" ); let align_bug = format!( - "{ident}'s align was mis-evaluated by stabby, this is a definitely a bug and may cause UB, please file an issue" + "{ident}'s align was mis-evaluated by stabby, this is definitely a bug and may cause UB, please file an issue" ); let assertion = opt.then(|| { let sub_optimal_message = format!(