Skip to content

Commit 1c1573d

Browse files
committed
remove outdated comment
1 parent 63fbefd commit 1c1573d

File tree

1 file changed

+0
-2
lines changed
  • compiler/rustc_typeck/src/check

1 file changed

+0
-2
lines changed

compiler/rustc_typeck/src/check/cast.rs

-2
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,6 @@ impl<'a, 'tcx> CastCheck<'tcx> {
440440
let expr_ty = fcx.resolve_vars_if_possible(self.expr_ty);
441441
let expr_ty = fcx.tcx.erase_regions(expr_ty);
442442
let ty_params = fcx.tcx.mk_substs_trait(expr_ty, &[]);
443-
// Check for infer types because cases like `Option<{integer}>` would
444-
// panic otherwise.
445443
if fcx
446444
.tcx
447445
.type_implements_trait((from_trait, ty, ty_params, fcx.param_env))

0 commit comments

Comments
 (0)