@@ -14,7 +14,7 @@ fn dyn_Clone_is_Clone() {
1414 dyn Clone + ' s: Clone
1515 }
1616 } yields {
17- expect![ [ "Unique; substitution [] " ] ]
17+ expect![ [ "Unique" ] ]
1818 }
1919 }
2020}
@@ -50,7 +50,7 @@ fn dyn_Clone_Send_is_Send() {
5050 ( dyn Clone + Send + ' s) : Send
5151 }
5252 } yields {
53- expect![ [ "Unique; substitution [] " ] ]
53+ expect![ [ "Unique" ] ]
5454 }
5555 }
5656}
@@ -80,7 +80,7 @@ fn dyn_Foo_Bar() {
8080 }
8181 }
8282 } yields {
83- expect![ [ "Unique; substitution [?0 := Bar], lifetime constraints [] " ] ]
83+ expect![ [ "Unique; substitution [?0 := Bar]" ] ]
8484 }
8585 }
8686}
@@ -127,7 +127,7 @@ fn dyn_super_trait_simple() {
127127 }
128128 }
129129 } yields {
130- expect![ [ "Unique; substitution [?0 := B], lifetime constraints [] " ] ]
130+ expect![ [ "Unique; substitution [?0 := B]" ] ]
131131 }
132132 }
133133}
@@ -279,23 +279,23 @@ fn dyn_higher_ranked_type_arguments() {
279279 dyn forall<' a> Foo <Ref <' a>> + ' s: Foo <Ref <' s>>
280280 }
281281 } yields {
282- expect![ [ "Unique; substitution [], lifetime constraints [] " ] ]
282+ expect![ [ "Unique" ] ]
283283 }
284284
285285 goal {
286286 forall<' s> {
287287 dyn forall<' a> Foo <Ref <' a>> + Bar + ' s: Foo <Ref <' s>>
288288 }
289289 } yields {
290- expect![ [ "Unique; substitution [], lifetime constraints [] " ] ]
290+ expect![ [ "Unique" ] ]
291291 }
292292
293293 goal {
294294 forall<' s> {
295295 dyn forall<' a> Foo <Ref <' a>> + Bar + ' s: Bar
296296 }
297297 } yields {
298- expect![ [ "Unique; substitution [], lifetime constraints [] " ] ]
298+ expect![ [ "Unique" ] ]
299299 }
300300
301301 goal {
@@ -306,10 +306,7 @@ fn dyn_higher_ranked_type_arguments() {
306306 }
307307 } yields {
308308 // Note that this requires 'a == 's, so it would be resolveable later on.
309- expect![ [ "Unique; substitution [], lifetime constraints [\
310- InEnvironment { environment: Env([]), goal: '!1_0: '!2_0 }, \
311- InEnvironment { environment: Env([]), goal: '!2_0: '!1_0 }\
312- ]"] ]
309+ expect![ [ "Unique; lifetime constraints [InEnvironment { environment: Env([]), goal: '!1_0: '!2_0 }, InEnvironment { environment: Env([]), goal: '!2_0: '!1_0 }]" ] ]
313310 }
314311 }
315312}
@@ -336,10 +333,7 @@ fn dyn_binders_reverse() {
336333 >
337334 }
338335 } yields {
339- expect![ [ "Unique; substitution [], lifetime constraints [\
340- InEnvironment { environment: Env([]), goal: '!5_0: '!5_1 }, \
341- InEnvironment { environment: Env([]), goal: '!5_1: '!5_0 }\
342- ]"] ]
336+ expect![ [ "Unique; lifetime constraints [InEnvironment { environment: Env([]), goal: '!5_0: '!5_1 }, InEnvironment { environment: Env([]), goal: '!5_1: '!5_0 }]" ] ]
343337 }
344338
345339 // Note: these constraints are ultimately unresolveable (we
@@ -351,10 +345,7 @@ fn dyn_binders_reverse() {
351345 >
352346 }
353347 } yields {
354- expect![ [ "Unique; substitution [], lifetime constraints [\
355- InEnvironment { environment: Env([]), goal: '!3_0: '!3_1 }, \
356- InEnvironment { environment: Env([]), goal: '!3_1: '!3_0 }\
357- ]"] ]
348+ expect![ [ "Unique; lifetime constraints [InEnvironment { environment: Env([]), goal: '!3_0: '!3_1 }, InEnvironment { environment: Env([]), goal: '!3_1: '!3_0 }]" ] ]
358349 }
359350
360351 // Note: ordering of parameters is reversed here, but that's no problem
@@ -365,7 +356,7 @@ fn dyn_binders_reverse() {
365356 >
366357 }
367358 } yields {
368- expect![ [ "Unique; substitution [], lifetime constraints [] " ] ]
359+ expect![ [ "Unique" ] ]
369360 }
370361 }
371362}
@@ -388,10 +379,7 @@ fn dyn_lifetime_bound() {
388379 }
389380 }
390381 } yields {
391- expect![ [ "Unique; substitution [], lifetime constraints [\
392- InEnvironment { environment: Env([]), goal: '!1_0: '!2_0 }, \
393- InEnvironment { environment: Env([]), goal: '!2_0: '!1_0 }\
394- ]"] ]
382+ expect![ [ "Unique; lifetime constraints [InEnvironment { environment: Env([]), goal: '!1_0: '!2_0 }, InEnvironment { environment: Env([]), goal: '!2_0: '!1_0 }]" ] ]
395383 }
396384 }
397385}
@@ -410,10 +398,10 @@ fn dyn_associated_type_binding() {
410398 }
411399 }
412400 } yields[ SolverChoice :: recursive_default( ) ] {
413- expect![ [ "Unique; substitution [?0 := Int(I32)], lifetime constraints [] " ] ]
401+ expect![ [ "Unique; substitution [?0 := Int(I32)]" ] ]
414402 } yields[ SolverChoice :: slg_default( ) ] {
415403 // #234
416- expect![ [ "Ambiguous" ] ]
404+ expect![ [ "Ambiguous; no inference guidance " ] ]
417405 }
418406 }
419407}
@@ -430,7 +418,7 @@ fn dyn_well_formed() {
430418 WellFormed ( dyn MyTrait + ' s)
431419 }
432420 } yields {
433- expect![ [ "Unique" ] ]
421+ expect![ [ "Unique; for<?U0> { substitution [?0 := '^0.0] } " ] ]
434422 }
435423 }
436424}
0 commit comments