Home
last modified time | relevance | path

Searched refs:unsafety (Results 1 – 25 of 34) sorted by relevance

12

/external/rust/cxx/syntax/
Dfile.rs13 pub unsafety: Option<Token![unsafe]>, field
31 pub unsafety: Option<Token![unsafe]>, field
42 let unsafety: Option<Token![unsafe]> = input.parse()?; in parse() localVariable
68 unsafety, in parse()
82 let unsafety = if ahead.parse::<Option<Token![unsafe]>>()?.is_some() in parse() localVariable
98 unsafety, in parse()
Dimpls.rs310 unsafety, in eq()
321 unsafety: unsafety2, in eq()
331 unsafety.is_some() == unsafety2.is_some() in eq()
359 unsafety, in hash()
369 unsafety.is_some().hash(state); in hash()
Dparse.rs325 if foreign_mod.unsafety.is_some() { in parse_foreign_mod()
326 let unsafety = foreign_mod.unsafety; in parse_foreign_mod() localVariable
328 let span = quote!(#unsafety #abi); in parse_foreign_mod()
335 let trusted = trusted || foreign_mod.unsafety.is_some(); in parse_foreign_mod()
378 Api::CxxFunction(efn) => efn.unsafety.is_none(), in parse_foreign_mod()
622 let unsafety = foreign_fn.sig.unsafety; in parse_extern_fn() localVariable
624 let inherited_span = unsafety.map_or(fn_token.span, |unsafety| unsafety.span); in parse_extern_fn()
641 unsafety, in parse_extern_fn()
1298 let unsafety = ty.unsafety; in parse_type_fn() localVariable
1305 unsafety, in parse_type_fn()
Dcheck.rs284 if ty.unsafety.is_none() { in check_type_fn()
392 if !efn.generics.params.is_empty() && efn.unsafety.is_none() { in check_api_fn()
446 if efn.sig.unsafety.is_none() { in check_api_fn()
510 if efn.sig.unsafety.is_some() { in check_mut_return_restriction()
641 let unsafety = efn.unsafety; in span_for_generics_error() localVariable
644 quote!(#unsafety #fn_token #generics) in span_for_generics_error()
Dtokens.rs207 self.unsafety.to_tokens(tokens); in to_tokens()
248 unsafety: _, in to_tokens()
Dmod.rs161 pub unsafety: Option<Token![unsafe]>, field
/external/rust/crates/pin-project-internal/src/
Dpinned_drop.rs67 if item.unsafety.is_some() { in validate_impl()
68 return Err(error!(item.unsafety, "implementing the trait `PinnedDrop` is not unsafe")); in validate_impl()
150 if sig.unsafety.is_some() { in validate_sig()
152 sig.unsafety, in validate_sig()
218 method.sig.unsafety = Some(<Token![unsafe]>::default()); in expand_impl()
/external/rust/crates/syn-mid/src/
Dfunc.rs35 pub unsafety: Option<Token![unsafe]>,
101 let unsafety: Option<Token![unsafe]> = input.parse()?; in parse() localVariable
118 unsafety, in parse()
225 self.unsafety.to_tokens(tokens); in to_tokens()
/external/rust/crates/syn/src/
Ditem.rs188 pub unsafety: Option<Token![unsafe]>,
286 pub unsafety: Option<Token![unsafe]>,
907 pub unsafety: Option<Token![unsafe]>,
1494 let unsafety: Option<Token![unsafe]> = input.parse()?; in parse() localVariable
1511 unsafety, in parse()
2087 let unsafety = None; in parse_trait_or_trait_alias() localVariable
2093 unsafety, in parse_trait_or_trait_alias()
2113 let unsafety: Option<Token![unsafe]> = input.parse()?; in parse() localVariable
2122 unsafety, in parse()
2135 unsafety: Option<Token![unsafe]>, in parse_rest_of_trait()
[all …]
Dty.rs116 pub unsafety: Option<Token![unsafe]>,
719 unsafety: input.parse()?, in parse_bare_fn()
1116 self.unsafety.to_tokens(tokens); in to_tokens()
/external/rust/crates/pin-project/tests/ui/pinned_drop/
Dinvalid.rs54 mod unsafety { module
/external/rust/crates/syn/tests/common/
Deq.rs290 spanless_eq_struct!(BareFnTy; unsafety ext generic_params decl);
298 spanless_eq_struct!(FnHeader; constness asyncness unsafety ext);
301 spanless_eq_struct!(ForeignMod; unsafety abi items);
305 spanless_eq_struct!(ImplKind; unsafety polarity defaultness constness generics of_trait self_ty ite…
/external/rust/crates/pin-project-internal/src/pin_project/
Dderive.rs707 let unsafety = <Token![unsafe]>::default(); in make_unpin_impl() localVariable
722 #unsafety impl #proj_impl_generics ::pin_project::UnsafeUnpin in make_unpin_impl()
837 let unsafety = <Token![unsafe]>::default(); in make_drop_impl() localVariable
843 #unsafety { in make_drop_impl()
/external/rust/cxx/macro/src/
Dexpand.rs33 let trusted = ffi.unsafety.is_some(); in bridge()
654 let unsafety = &efn.sig.unsafety; in expand_cxx_function_shim() localVariable
655 if unsafety.is_none() { in expand_cxx_function_shim()
674 #visibility #unsafety #fn_token #ident #generics #arg_list #ret #fn_body in expand_cxx_function_shim()
704 #visibility #unsafety #fn_token #ident #arg_list #ret #fn_body in expand_cxx_function_shim()
1039 let unsafety = sig.unsafety; in expand_rust_function_shim_super() localVariable
1078 #unsafety fn #local_name #generics(#(#all_args,)*) #ret { in expand_rust_function_shim_super()
/external/rust/cxx/gen/src/
Dmod.rs121 let trusted = bridge.unsafety.is_some(); in generate()
/external/rust/crates/syn/src/gen/
Dclone.rs1137 unsafety: self.unsafety.clone(), in clone()
1226 unsafety: self.unsafety.clone(), in clone()
1766 unsafety: self.unsafety.clone(), in clone()
1922 unsafety: self.unsafety.clone(), in clone()
Deq.rs1143 && self.unsafety == other.unsafety in eq()
1229 && self.unsafety == other.unsafety in eq()
1784 && self.unsafety == other.unsafety in eq()
1953 && self.unsafety == other.unsafety in eq()
Dfold.rs1971 unsafety: (node.unsafety).map(|it| Token![unsafe](tokens_helper(f, &it.span))), in fold_item_impl()
2071 unsafety: (node.unsafety).map(|it| Token![unsafe](tokens_helper(f, &it.span))), in fold_item_trait()
2709 unsafety: (node.unsafety).map(|it| Token![unsafe](tokens_helper(f, &it.span))), in fold_signature()
2886 unsafety: (node.unsafety).map(|it| Token![unsafe](tokens_helper(f, &it.span))), in fold_type_bare_fn()
Dhash.rs1498 self.unsafety.hash(state); in hash()
1584 self.unsafety.hash(state); in hash()
2248 self.unsafety.hash(state); in hash()
2490 self.unsafety.hash(state); in hash()
Ddebug.rs1615 formatter.field("unsafety", &self.unsafety); in fmt()
1704 formatter.field("unsafety", &self.unsafety); in fmt()
2401 formatter.field("unsafety", &self.unsafety); in fmt()
2658 formatter.field("unsafety", &self.unsafety); in fmt()
Dvisit_mut.rs2296 if let Some(it) = &mut node.unsafety { in visit_item_impl_mut()
2410 if let Some(it) = &mut node.unsafety { in visit_item_trait_mut()
3165 if let Some(it) = &mut node.unsafety { in visit_signature_mut()
3409 if let Some(it) = &mut node.unsafety { in visit_type_bare_fn_mut()
/external/rust/crates/pin-project/src/
Dlib.rs.orig98 /// unsafety is contained within this crate, ensuring that it's impossible for
107 /// To help highlight this unsafety, the `UnsafeUnpin` trait is provided.
/external/rust/crates/regex-syntax/
DREADME.md57 they should _never_ result in memory unsafety unless there is either a bug
/external/rust/crates/intrusive-collections/
DDESIGN.md33 …bject data. However I would expect the gains to be relatively minor compared to the added unsafety.
/external/rust/crates/syn/tests/debug/
Dgen.rs2643 if let Some(val) = &_val.unsafety { in fmt()
2839 if let Some(val) = &_val.unsafety { in fmt()
3056 if let Some(val) = &_val.unsafety { in fmt()
3266 if let Some(val) = &_val.unsafety { in fmt()
4427 if let Some(val) = &_val.unsafety { in fmt()
4859 if let Some(val) = &_val.unsafety { in fmt()
5093 if let Some(val) = &_val.unsafety { in fmt()

12