Home
last modified time | relevance | path

Searched defs:Local (Results 1 – 25 of 229) sorted by relevance

12345678910

/third_party/rust/rust/tests/ui/extern/
Dextern-types-inherent-impl.rs12 type Local; typedef
15 impl Local { impl
19 fn use_foo(x: &Local, y: &CrossCrate) { in use_foo()
/third_party/rust/rust/tests/ui/const-generics/defaults/
Dexternal.rs6 struct Local<const N: usize=4>; struct
7 impl Local { impl
12 impl<const N: usize>Local<N> { implementation
/third_party/rust/rust/src/tools/clippy/clippy_utils/src/mir/
Dtransitive_relation.rs11 pub fn add(&mut self, a: mir::Local, b: mir::Local) { in add()
15 pub fn reachable_from(&self, a: mir::Local, domain_size: usize) -> HybridBitSet<mir::Local> { in reachable_from()
Dpossible_borrower.rs27 possible_origin: FxHashMap<mir::Local, HybridBitSet<mir::Local>>, in new()
147 fn rvalue_locals(rvalue: &mir::Rvalue<'_>, mut visit: impl FnMut(mir::Local)) { in rvalue_locals()
194 …pub fn only_borrowers(&mut self, borrowers: &[mir::Local], borrowed: mir::Local, at: mir::Location… in only_borrowers()
202 below: &[mir::Local], in bounded_borrowers()
203 above: &[mir::Local], in bounded_borrowers()
204 borrowed: mir::Local, in bounded_borrowers()
235 pub fn local_is_alive_at(&mut self, local: mir::Local, at: mir::Location) -> bool { in local_is_alive_at()
/third_party/rust/rust/tests/ui/coherence/
Dimpl[t]-foreign[fundamental[t]]-for-local.rs9 struct Local; struct
11 impl<T> Remote1<Box<T>> for Local {} implementation
13 impl<'a, T> Remote1<&'a T> for Local {} implementation
Dimpl[t]-foreign[local]-for-local.rs9 struct Local; struct
11 impl Remote1<Local> for Local {} implementation
Dimpl-foreign[foreign]-for-local.rs9 struct Local; struct
11 impl Remote1<u32> for Local { implementation
Dimpl-foreign-for-local.rs9 struct Local; struct
11 impl Remote for Local {} implementation
Dimpl-foreign-for-locally-defined-fundamental.rs11 struct Local<T>(T); struct
13 impl Remote for Local<()> {} implementation
Dimpl[t]-foreign[t]-for-local.rs9 struct Local; struct
11 impl<T> Remote1<T> for Local {} implementation
Dcoherence-blanket.rs10 pub trait Local { interface
/third_party/rust/rust/tests/ui/associated-inherent-types/
Dissue-109768.rs5 struct Local<T, U>(T, U); struct
7 impl<T> Local { //~ ERROR missing generics for struct `Local` impl
/third_party/rust/rust/compiler/rustc_mir_transform/src/
Ddest_prop.rs297 merges: &FxHashMap<Local, Local>, in apply_merges() argument
298 merged_locals: &BitSet<Local>, in apply_merges()
315 fn visit_local(&mut self, local: &mut Local, _: PlaceContext, _location: Location) { in visit_local()
373 src: Local, in vec_filter_candidates()
374 v: &mut Vec<Local>, in vec_filter_candidates()
389 mut entry: OccupiedEntry<'_, Local, Vec<Local>>, in entry_filter_candidates() argument
390 p: Local, in entry_filter_candidates()
404 p: Local, in filter_candidates_by()
705 ) -> Option<(Local, Local)> { in places_to_candidate_pair() argument
732 borrowed: &BitSet<Local>, in find_candidates()
[all …]
Dnrvo.rs87 fn local_eligible_for_nrvo(body: &mut mir::Body<'_>) -> Option<Local> { in local_eligible_for_nrvo()
124 ) -> Option<Local> { in find_local_assigned_to_return_place()
148 fn as_local_assigned_to_return_place(stmt: &mir::Statement<'_>) -> Option<Local> { in as_local_assigned_to_return_place()
203 fn visit_local(&mut self, l: &mut Local, ctxt: PlaceContext, _: Location) { in visit_local()
223 fn visit_local(&mut self, l: Local, ctxt: PlaceContext, _: Location) { in visit_local()
/third_party/rust/rust/tests/rustdoc/
Dissue-82465-asref-for-and-of-local.rs2 pub struct Local; struct
5 impl AsRef<str> for Local { implementation
13 fn as_ref(&self) -> &Local { in as_ref()
/third_party/rust/rust/src/tools/clippy/clippy_lints/src/
Dredundant_clone.rs264 ) -> Option<(def_id::DefId, mir::Local, Ty<'tcx>, mir::Local)> { in is_call_with_ref_arg()
287 to_local: mir::Local, in find_stmt_assigns_to()
290 ) -> Option<(mir::Local, CannotMoveOut)> { in find_stmt_assigns_to()
322 ) -> (mir::Local, CannotMoveOut) { in base_local_and_movability()
351 fn visit_clone_usage(cloned: mir::Local, clone: mir::Local, mir: &mir::Body<'_>, bb: mir::BasicBloc… in visit_clone_usage()
/third_party/rust/rust/tests/rustdoc-json/reexport/
Dsynthesize_trait_with_docs.rs6 pub struct Local; struct
8 impl trait_with_docs::HasDocs for Local {} implementation
/third_party/rust/rust/tests/rustdoc-json/intra-doc-links/
Dforeign_variant.rs6 pub struct Local; struct
9 impl enum_variant_in_trait_method::Trait for Local {} implementation
/third_party/rust/rust/tests/rustdoc-json/impls/
Dlocal_for_primitive.rs2 pub trait Local {} trait
Dlocal_for_local_primitive.rs6 pub trait Local {} trait
/third_party/rust/rust/tests/ui/generic-associated-types/
Dmissing-item-sugg.rs5 struct Local; struct
6 impl missing_item_sugg::Foo for Local { implementation
/third_party/rust/rust/compiler/rustc_borrowck/src/type_check/liveness/
Dtrace.rs45 relevant_live_locals: Vec<Local>, in trace()
46 boring_locals: Vec<Local>, in trace()
47 polonius_drop_used: Option<Vec<(Local, Location)>>, in trace()
140 fn compute_for_all_locals(&mut self, relevant_live_locals: Vec<Local>) { in compute_for_all_locals()
166 fn dropck_boring_locals(&mut self, boring_locals: Vec<Local>) { in dropck_boring_locals()
188 drop_used: Vec<(Local, Location)>, in add_extra_drop_facts()
189 relevant_live_locals: FxIndexSet<Local>, in add_extra_drop_facts()
213 fn add_defs_for(&mut self, local: Local) { in add_defs_for()
226 fn compute_use_live_points_for(&mut self, local: Local) { in compute_use_live_points_for()
280 fn compute_drop_live_points_for(&mut self, local: Local) { in compute_drop_live_points_for()
[all …]
Dpolonius.rs28 fn insert_def(&mut self, local: Local, location: Location) { in insert_def()
33 fn insert_use(&mut self, local: Local, location: Location) { in insert_use()
38 fn insert_drop_use(&mut self, local: Local, location: Location) { in insert_drop_use()
57 fn visit_local(&mut self, local: Local, context: PlaceContext, location: Location) { in visit_local()
90 dropped_at: &mut Vec<(Local, Location)>, in populate_access_facts()
128 local: Local, in add_drop_of_var_derefs_origin()
/third_party/rust/rust/tests/ui/impl-trait/in-trait/
Dforeign.rs12 struct Local; struct
13 impl Foo for Local { implementation
/third_party/rust/rust/tests/ui/rust-2018/uniform-paths/
Dissue-55779.rs7 struct Local; struct
10 impl Trait for Local { implementation

12345678910