Skip to content

Commit 7bbbed9

Browse files
nikomatsakistmandry
andcommitted
drive-by nits and debug
Co-authored-by: Tyler Mandry <[email protected]>
1 parent c9d4f06 commit 7bbbed9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/librustc/traits/select.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1237,6 +1237,11 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
12371237
let mut candidates: Vec<EvaluatedCandidate> =
12381238
candidates?.into_iter().filter_map(|c| c).collect();
12391239

1240+
debug!("winnowed to {} candidates for {:?}: {:?}",
1241+
candidates.len(),
1242+
stack,
1243+
candidates);
1244+
12401245
// If there are STILL multiple candidate, we can further
12411246
// reduce the list by dropping duplicates -- including
12421247
// resolving specializations.

src/librustc/ty/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2862,8 +2862,8 @@ fn param_env<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
28622862
}
28632863
// Compute the bounds on Self and the type parameters.
28642864

2865-
let bounds = tcx.predicates_of(def_id).instantiate_identity(tcx);
2866-
let predicates = bounds.predicates;
2865+
let InstantiatedPredicates { predicates } =
2866+
tcx.predicates_of(def_id).instantiate_identity(tcx);
28672867

28682868
// Finally, we have to normalize the bounds in the environment, in
28692869
// case they contain any associated type projections. This process

0 commit comments

Comments
 (0)