Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/tests/traits.rs')
-rw-r--r--crates/hir-ty/src/tests/traits.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/crates/hir-ty/src/tests/traits.rs b/crates/hir-ty/src/tests/traits.rs
index ea978cde58..85c93abcf9 100644
--- a/crates/hir-ty/src/tests/traits.rs
+++ b/crates/hir-ty/src/tests/traits.rs
@@ -1490,7 +1490,7 @@ fn test(x: Box<dyn Trait<u64>>, y: &dyn Trait<u64>) {
expect![[r#"
29..33 'self': &'? Self
54..58 'self': &'? Self
- 206..208 '{}': Box<dyn Trait<u64> + 'static>
+ 206..208 '{}': Box<dyn Trait<u64> + '?>
218..219 'x': Box<dyn Trait<u64> + 'static>
242..243 'y': &'? (dyn Trait<u64> + 'static)
262..379 '{ ...2(); }': ()
@@ -1571,7 +1571,7 @@ fn test(x: Trait, y: &Trait) -> u64 {
}"#,
expect![[r#"
26..30 'self': &'? Self
- 60..62 '{}': dyn Trait + 'static
+ 60..62 '{}': dyn Trait + '?
72..73 'x': dyn Trait + 'static
82..83 'y': &'? (dyn Trait + 'static)
100..175 '{ ...o(); }': u64
@@ -1712,7 +1712,7 @@ fn test<T: Trait<Type = u32>>(x: T, y: impl Trait<Type = i64>) {
}"#,
expect![[r#"
81..82 't': T
- 109..111 '{}': <T as Trait>::Type
+ 109..111 '{}': ()
143..144 't': T
154..156 '{}': U
186..187 't': T
@@ -3027,13 +3027,13 @@ fn test() {
140..146 'IsCopy': IsCopy
140..153 'IsCopy.test()': bool
159..166 'NotCopy': NotCopy
- 159..173 'NotCopy.test()': bool
+ 159..173 'NotCopy.test()': {unknown}
179..195 '(IsCop...sCopy)': (IsCopy, IsCopy)
179..202 '(IsCop...test()': bool
180..186 'IsCopy': IsCopy
188..194 'IsCopy': IsCopy
208..225 '(IsCop...tCopy)': (IsCopy, NotCopy)
- 208..232 '(IsCop...test()': bool
+ 208..232 '(IsCop...test()': {unknown}
209..215 'IsCopy': IsCopy
217..224 'NotCopy': NotCopy
"#]],
@@ -3126,7 +3126,7 @@ fn test() {
79..194 '{ ...ized }': ()
85..88 '1u8': u8
85..95 '1u8.test()': bool
- 101..116 '(*"foo").test()': bool
+ 101..116 '(*"foo").test()': {unknown}
102..108 '*"foo"': str
103..108 '"foo"': &'static str
135..145 '(1u8, 1u8)': (u8, u8)
@@ -3134,7 +3134,7 @@ fn test() {
136..139 '1u8': u8
141..144 '1u8': u8
158..171 '(1u8, *"foo")': (u8, str)
- 158..178 '(1u8, ...test()': bool
+ 158..178 '(1u8, ...test()': {unknown}
159..162 '1u8': u8
164..170 '*"foo"': str
165..170 '"foo"': &'static str
@@ -4069,7 +4069,7 @@ fn f<F: Foo>() {
212..295 '{ ...ZED; }': ()
218..239 'F::Exp..._SIZED': Yes
245..266 'F::Imp..._SIZED': Yes
- 272..292 'F::Rel..._SIZED': Yes
+ 272..292 'F::Rel..._SIZED': {unknown}
"#]],
);
}
@@ -5018,7 +5018,7 @@ where
"#,
expect![[r#"
84..86 'de': D
- 135..138 '{ }': <D as Deserializer<'de>>::Error
+ 135..138 '{ }': ()
"#]],
);
}
@@ -5083,7 +5083,7 @@ fn main() {
let _ = iter.into_iter();
}"#,
expect![[r#"
- 10..313 '{ ...r(); }': ()
+ 10..313 '{ ...r(); }': !
223..227 'iter': Box<dyn Iterator<Item = &'? [u8]> + 'static>
273..280 'loop {}': !
278..280 '{}': ()