removing error for needless @as temporarly

Signed-off-by: Jakub Doka <jakub.doka2@gmail.com>
This commit is contained in:
Jakub Doka 2024-12-17 22:29:16 +01:00
parent b3f858f64b
commit e769fa8dba
No known key found for this signature in database
GPG key ID: C6E9A89936B8C143

View file

@ -1477,7 +1477,8 @@ impl<'a> Codegen<'a> {
&& ity.try_upcast(ty) == Some(ty) && ity.try_upcast(ty) == Some(ty)
&& val.ty == ity && val.ty == ity
{ {
self.error(pos, "the type is known at this point, remove the hint"); _ = pos;
//self.error(pos, "the type is known at this point, remove the hint");
} }
self.assert_ty(expr.pos(), &mut val, ty, "hinted expr"); self.assert_ty(expr.pos(), &mut val, ty, "hinted expr");
Some(val) Some(val)