Rename Annotation trait to Annotate

This commit is contained in:
2025-06-30 15:20:40 +10:00
parent 5c257b0f74
commit 99aa11e903
6 changed files with 71 additions and 71 deletions

View File

@@ -70,7 +70,7 @@ fn generate_type(ty: &Ident) -> Result<TokenStream> {
}
}
impl #ffi::Annotation for #ty {
impl #ffi::Annotate for #ty {
fn annotation() -> impl ::std::fmt::Display { #name }
}

View File

@@ -682,7 +682,7 @@ fn stub_lua_function(func: &mut ImplItemFn) -> Result<()> {
func.attrs.push(parse_quote!(#[allow(unused)]));
func.block.stmts.clear();
func.block.stmts.push(parse_quote!(
const fn has_annotation<T: #ffi::Annotation>() {}
const fn has_annotation<T: #ffi::Annotate>() {}
));
// convert `...` variadic to a `rest: luaffi::marker::Many` parameter