Skip to content

Commit 18ae293

Browse files
committed
use Display impl query config
1 parent 2ee933d commit 18ae293

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/librustc/ty/maps/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl<'tcx> QueryDescription<'tcx> for queries::normalize_ty_after_erasing_region
7575

7676
impl<'tcx> QueryDescription<'tcx> for queries::evaluate_obligation<'tcx> {
7777
fn describe(_tcx: TyCtxt, goal: CanonicalPredicateGoal<'tcx>) -> String {
78-
format!("evaluating trait selection obligation `{:?}`", goal)
78+
format!("evaluating trait selection obligation `{}`", goal.value.value)
7979
}
8080
}
8181

src/test/ui/impl-trait/auto-trait-leak.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ note: the cycle begins when processing `cycle1`...
3939
|
4040
LL | fn cycle1() -> impl Clone {
4141
| ^^^^^^^^^^^^^^^^^^^^^^^^^
42+
note: ...which then requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
4243
note: ...which then requires processing `cycle2::{{impl-Trait}}`...
4344
--> $DIR/auto-trait-leak.rs:52:16
4445
|
@@ -49,6 +50,7 @@ note: ...which then requires processing `cycle2`...
4950
|
5051
LL | fn cycle2() -> impl Clone {
5152
| ^^^^^^^^^^^^^^^^^^^^^^^^^
53+
note: ...which then requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
5254
note: ...which then requires processing `cycle1::{{impl-Trait}}`...
5355
--> $DIR/auto-trait-leak.rs:44:16
5456
|

0 commit comments

Comments
 (0)