/external/rust/cxx/syntax/ |
D | file.rs | 13 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()
|
D | impls.rs | 310 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()
|
D | parse.rs | 325 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()
|
D | check.rs | 284 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()
|
D | tokens.rs | 207 self.unsafety.to_tokens(tokens); in to_tokens() 248 unsafety: _, in to_tokens()
|
D | mod.rs | 161 pub unsafety: Option<Token![unsafe]>, field
|
/external/rust/crates/pin-project-internal/src/ |
D | pinned_drop.rs | 67 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/ |
D | func.rs | 35 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/ |
D | item.rs | 188 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 …]
|
D | ty.rs | 116 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/ |
D | invalid.rs | 54 mod unsafety { module
|
/external/rust/crates/syn/tests/common/ |
D | eq.rs | 290 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/ |
D | derive.rs | 707 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/ |
D | expand.rs | 33 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/ |
D | mod.rs | 121 let trusted = bridge.unsafety.is_some(); in generate()
|
/external/rust/crates/syn/src/gen/ |
D | clone.rs | 1137 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()
|
D | eq.rs | 1143 && 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()
|
D | fold.rs | 1971 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()
|
D | hash.rs | 1498 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()
|
D | debug.rs | 1615 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()
|
D | visit_mut.rs | 2296 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/ |
D | lib.rs.orig | 98 /// 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/ |
D | README.md | 57 they should _never_ result in memory unsafety unless there is either a bug
|
/external/rust/crates/intrusive-collections/ |
D | DESIGN.md | 33 …bject data. However I would expect the gains to be relatively minor compared to the added unsafety.
|
/external/rust/crates/syn/tests/debug/ |
D | gen.rs | 2643 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()
|