let self_ty = &i.self_ty;
let ref_type: syn::Type = syn::parse_quote!(&#self_ty);
let new_var = types.write_from_c_conversion_new_var(w, &format_ident!("o"), &ref_type, Some(&gen_types));
- write!(w, "\tformat!(\"{{}}\", ").unwrap();
+ write!(w, "\talloc::format!(\"{{}}\", ").unwrap();
types.write_from_c_conversion_prefix(w, &ref_type, Some(&gen_types));
write!(w, "{}o", if new_var { "local_" } else { "" }).unwrap();
types.write_from_c_conversion_suffix(w, &ref_type, Some(&gen_types));
"std::time::Duration"|"core::time::Duration" => Some(""),
"std::time::SystemTime" => Some(""),
"std::io::Error" if !is_ref => Some("crate::c_types::IOError::from_rust("),
- "core::fmt::Arguments" => Some("format!(\"{}\", "),
+ "core::fmt::Arguments" => Some("alloc::format!(\"{}\", "),
"core::convert::Infallible" => Some("panic!(\"Cannot construct an Infallible: "),