From 1c18224d1dd08736fb889222248b96d568c81e9e Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 30 Dec 2020 15:14:42 -0500 Subject: [PATCH] [bindings] Drop useless `#[no_mangle]` from `pub type` definitions Newer rustc complains that "attribute should be applied to a function or static" --- c-bindings-gen/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c-bindings-gen/src/types.rs b/c-bindings-gen/src/types.rs index b1318e72f..273899fa4 100644 --- a/c-bindings-gen/src/types.rs +++ b/c-bindings-gen/src/types.rs @@ -1847,7 +1847,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> { self.crate_types.templates_defined.insert(mangled_container.clone(), true); let mut created_container: Vec = Vec::new(); - write!(&mut created_container, "#[no_mangle]\npub type {} = ", mangled_container).unwrap(); + write!(&mut created_container, "pub type {} = ", mangled_container).unwrap(); write!(&mut created_container, "{}::C{}Templ<", Self::container_templ_path(), container_type).unwrap(); self.write_template_generics(&mut created_container, &mut args.iter().map(|t| *t), generics, is_ref, true); writeln!(&mut created_container, ">;").unwrap(); -- 2.39.5