Skip to content

Commit 8ec1c38

Browse files
committed
Remove unnecessary condition
1 parent e918879 commit 8ec1c38

File tree

1 file changed

+1
-4
lines changed
  • compiler/rustc_trait_selection/src/traits/error_reporting

1 file changed

+1
-4
lines changed

compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
369369
.into_iter()
370370
.chain(obligations),
371371
) {
372-
debug!("get_turbofish_suggestions result {:?}", eval_result);
373-
if eval_result.must_apply_modulo_regions()
374-
&& !matches!(trait_ref.self_ty().kind(), ty::Infer(_))
375-
{
372+
if eval_result.must_apply_modulo_regions() {
376373
turbofish_suggestions.insert(trait_ref.self_ty());
377374
}
378375
};

0 commit comments

Comments
 (0)