remove outdated comment

This commit is contained in:
Niko Matsakis 2021-07-04 12:50:35 -04:00
parent 63fbefd359
commit 1c1573d2a3

View File

@ -440,8 +440,6 @@ impl<'a, 'tcx> CastCheck<'tcx> {
let expr_ty = fcx.resolve_vars_if_possible(self.expr_ty);
let expr_ty = fcx.tcx.erase_regions(expr_ty);
let ty_params = fcx.tcx.mk_substs_trait(expr_ty, &[]);
// Check for infer types because cases like `Option<{integer}>` would
// panic otherwise.
if fcx
.tcx
.type_implements_trait((from_trait, ty, ty_params, fcx.param_env))