Home
last modified time | relevance | path

Searched defs:Ref (Results 1 – 25 of 189) sorted by relevance

12345678

/third_party/rust/rust/compiler/rustc_transmute/src/layout/
Dmod.rs33 pub trait Ref: Debug + Hash + Eq + PartialEq + Copy + Clone { interface
40 impl Ref for ! { impl
56 pub struct Ref<'tcx> { struct
57 pub lifetime: ty::Region<'tcx>,
58 pub ty: Ty<'tcx>,
59 pub mutability: Mutability,
60 pub align: usize,
63 impl<'tcx> super::Ref for Ref<'tcx> { implementation
75 impl<'tcx> Ref<'tcx> {} impl
/third_party/rust/rust/tests/ui/lifetimes/lifetime-errors/
Dex3-both-anon-regions-both-are-structs-2.rs1 struct Ref<'a, 'b> { struct
6 fn foo(mut x: Ref, y: Ref) { in foo()
Dex3-both-anon-regions-both-are-structs.rs1 struct Ref<'a> { struct
5 fn foo(mut x: Vec<Ref>, y: Ref) { in foo()
Dex3-both-anon-regions-both-are-structs-3.rs1 struct Ref<'a, 'b> { struct
6 fn foo(mut x: Ref) { in foo()
Dex3-both-anon-regions-one-is-struct-3.rs1 struct Ref<'a, 'b> { a: &'a u32, b: &'b u32 } argument
3 fn foo(mut y: Ref, x: &u32) { in foo()
Dex3-both-anon-regions-one-is-struct.rs1 struct Ref<'a, 'b> { struct
6 fn foo(mut x: Ref, y: &u32) { in foo()
Dex3-both-anon-regions-one-is-struct-2.rs1 struct Ref<'a, 'b> { a: &'a u32, b: &'b u32 } argument
3 fn foo(mut x: Ref, y: &u32) { in foo()
Dex3-both-anon-regions-one-is-struct-4.rs1 struct Ref<'a, 'b> { a: &'a u32, b: &'b u32 } argument
3 fn foo(mut y: Ref, x: &u32) { in foo()
Dex2b-push-no-existing-names.rs1 struct Ref<'a, T: 'a> { struct
5 fn foo(x: &mut Vec<Ref<i32>>, y: Ref<i32>) { in foo() argument
Dex2a-push-one-existing-name-2.rs1 struct Ref<'a, T: 'a> { struct
5 fn foo<'a>(x: Ref<i32>, y: &mut Vec<Ref<'a, i32>>) { in foo() argument
Dex2a-push-one-existing-name.rs1 struct Ref<'a, T: 'a> { struct
5 fn foo<'a>(x: &mut Vec<Ref<'a, i32>>, y: Ref<i32>) { in foo() argument
Dex3-both-anon-regions-both-are-structs-latebound-regions.rs1 struct Ref<'a> { struct
5 fn foo<'a, 'b>(mut x: Vec<Ref<'a>>, y: Ref<'b>) { in foo() argument
Dex3-both-anon-regions-both-are-structs-earlybound-regions.rs1 struct Ref<'a> { struct
5 fn foo<'a, 'b>(mut x: Vec<Ref<'a>>, y: Ref<'b>) in foo() argument
Dex2c-push-inference-variable.rs1 struct Ref<'a, T: 'a> { struct
5 fn foo<'a, 'b, 'c>(x: &'a mut Vec<Ref<'b, i32>>, y: Ref<'c, i32>) { in foo() argument
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DRefCountedTests.cpp105 TEST(Ref, EndOfScopeRemovesRef) { in TEST() argument
115 TEST(Ref, Gets) { in TEST() argument
125 TEST(Ref, DefaultsToNull) { in TEST() argument
133 TEST(Ref, CopyConstructor) { in TEST() argument
158 TEST(Ref, CopyAssignment) { in TEST() argument
180 TEST(Ref, MoveConstructor) { in TEST() argument
202 TEST(Ref, MoveAssignment) { in TEST() argument
226 TEST(Ref, MoveAssignmentSameObject) { in TEST() argument
250 TEST(Ref, InitialPayloadValue) { in TEST() argument
265 TEST(Ref, PayloadUnchangedByRefCounting) { in TEST() argument
[all …]
/third_party/rust/rust/tests/ui/const-generics/issues/
Dissue-85031-2.rs9 pub struct Ref<'a>(&'a i32); struct
11 impl<'a> Ref<'a> { implementation
/third_party/rust/rust/tests/ui/wf/
Dwf-in-foreign-fn-decls-issue-80468.rs11 pub struct Ref<'a>(&'a u8); struct
13 impl Trait for Ref {} //~ ERROR: implicit elided lifetime not allowed here implementation
16 pub fn repro(_: Wrapper<Ref>); in repro()
/third_party/rust/rust/tests/ui/issues/
Dissue-37109.rs3 type Ref: 'a; typedef
7 type Ref = &'a U; typedef
10 fn example<'a, T>(value: &'a T) -> (<T as ToRef<'a>>::Ref, u32) { in example()
/third_party/rust/rust/tests/incremental/const-generics/try_unify_abstract_const_regression_tests/
Dissue-85031-1.rs5 pub struct Ref<'a, const NUM: usize>(&'a i32); struct
7 impl<'a, const NUM: usize> Ref<'a, NUM> { implementation
/third_party/rust/rust/compiler/rustc_transmute/src/maybe_transmutable/
Dmod.rs40 ) -> Result<MaybeTransmutableQuery<M, C>, Answer<<C as QueryContext>::Ref>> in map_layouts()
70 pub fn answer(self) -> Answer<<TyCtxt<'tcx> as QueryContext>::Ref> { in answer()
106 pub(crate) fn answer(self) -> Answer<<C as QueryContext>::Ref> { in answer()
156 pub(crate) fn answer(self) -> Answer<<C as QueryContext>::Ref> { in answer()
175 pub(crate) fn answer(self) -> Answer<<C as QueryContext>::Ref> { in answer()
191 pub(crate) fn answer(&mut self) -> Answer<<C as QueryContext>::Ref> { in answer()
199 cache: &mut Map<(dfa::State, dfa::State), Answer<<C as QueryContext>::Ref>>, in answer_memo()
202 ) -> Answer<<C as QueryContext>::Ref> { in answer_memo()
407 pub fn apply<R, I>(&self, iter: I) -> Answer<R> in apply()
/third_party/rust/rust/tests/ui/layout/
Dissue-60431-unsized-tail-behind-projection.rs22 pub struct Ref<A: Arena> { struct
34 assert_eq!(mem::size_of::<&Ref<Obstack>>(), mem::size_of::<&[()]>()); in main() argument
/third_party/rust/rust/tests/rustdoc/auxiliary/
Delided-lifetime.rs3 pub struct Ref<'a>(&'a u32); struct
5 pub fn test5(a: &u32) -> Ref { in test5()
/third_party/rust/crates/rustix/src/io/
Dcontext.rs12 pub struct Ref<'a, T> { struct
17 impl<'a, T> Ref<'a, T> { argument
32 impl<'a, T> Deref for Ref<'a, T> { implementation
41 impl<'a, T: fmt::Debug> fmt::Debug for Ref<'a, T> { implementation
/third_party/rust/rust/tests/rustdoc/
Delided-lifetime.rs10 pub struct Ref<'a>(&'a u32); struct
15 pub fn test1(a: &u32) -> Ref { in test1()
/third_party/rust/rust/tests/ui/generic-associated-types/
Dissue-81487.rs4 type Ref<'a>; typedef
8 type Ref<'a> = &'a i8; typedef

12345678