Home
last modified time | relevance | path

Searched refs:RustBox (Results 1 – 13 of 13) sorted by relevance

/external/rust/cxx/syntax/
Dinstantiate.rs8 RustBox(NamedImplKey<'a>), enumerator
27 if let Type::RustBox(ty) = self { in impl_key()
29 return Some(ImplKey::RustBox(NamedImplKey::new(ty, ident))); in impl_key()
Dimpls.rs45 Type::RustBox(t) => t.hash(state), in hash()
68 (Type::RustBox(lhs), Type::RustBox(rhs)) => lhs == rhs, in eq()
Dimproper.rs25 Type::RustBox(_) in determine_improper_ctype()
Dpod.rs25 Type::RustBox(_) in is_guaranteed_pod()
Dvisit.rs15 Type::RustBox(ty) in visit_type()
Dtypes.rs178 ImplKey::RustBox(ident) in collect()
245 Type::RustBox(_) | Type::UniquePtr(_) => false, in needs_indirect_abi()
Dcheck.rs48 Type::RustBox(ptr) => check_type_box(cx, ptr), in do_typecheck()
518 Type::RustBox(ty) in check_api_impl()
646 Type::RustBox(_) in is_unsized()
720 Type::RustBox(_) => "Box".to_owned(), in describe()
Dmod.rs210 RustBox(Box<Ty1>), enumerator
Dtrivial.rs97 Type::RustBox(ty) => { in required_trivial_reasons()
Dtokens.rs23 Type::RustBox(ty) in to_tokens()
Dparse.rs973 Type::RustBox(ty) in parse_impl()
1173 return Ok(Type::RustBox(Box::new(Ty1 { in parse_type_path()
/external/rust/cxx/gen/src/
Dwrite.rs216 Type::RustBox(_) => out.builtin.rust_box = true, in pick_includes_and_builtins()
793 if let Type::RustBox(_) = &arg.ty { in write_cxx_function_shim()
819 Some(Type::RustBox(_)) => write!(out, ".into_raw()"), in write_cxx_function_shim()
1027 Type::RustBox(_) => { in write_rust_function_shim_impl()
1068 Type::RustBox(_) => write!(out, ".into_raw()"), in write_rust_function_shim_impl()
1091 if let Type::RustBox(_) | Type::UniquePtr(_) | Type::Str(_) | Type::SliceRef(_) = ret { in write_rust_function_shim_impl()
1132 Type::RustBox(ty) | Type::UniquePtr(ty) => { in write_indirect_return_type()
1150 Type::RustBox(_) | Type::UniquePtr(_) | Type::Ref(_) => {} in write_indirect_return_type_space()
1158 Some(Type::RustBox(ty)) | Some(Type::UniquePtr(ty)) => { in write_extern_return_type_space()
1180 Type::RustBox(ty) | Type::UniquePtr(ty) | Type::CxxVector(ty) => { in write_extern_arg()
[all …]
/external/rust/cxx/macro/src/
Dexpand.rs93 ImplKey::RustBox(ident) => { in expand()
501 Type::RustBox(ty) => { in expand_cxx_function_shim()
622 Type::RustBox(ty) => { in expand_cxx_function_shim()
953 Type::RustBox(_) => quote_spanned!(span=> ::std::boxed::Box::from_raw(#var)), in expand_rust_function_shim_impl()
1012 Type::RustBox(_) => Some(quote_spanned!(span=> ::std::boxed::Box::into_raw)), in expand_rust_function_shim_impl()
1715 Type::RustBox(ty) | Type::UniquePtr(ty) => { in expand_extern_type()