We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b981741 commit 74e2bc5Copy full SHA for 74e2bc5
src/librustc_typeck/check/cast.rs
@@ -338,9 +338,8 @@ impl<'tcx> CastCheck<'tcx> {
338
// To allow unsafe pointers to work correctly, we
339
// need to special-case obtaining an unsafe pointer
340
// from a region pointer to a vector.
341
- // TODO: explain comment.
342
343
- // this will report a type mismatch if needed
+ // this will report a type mismatch if needed
344
demand::eqtype(fcx, self.span, ety, m_1.ty);
345
return Ok(CastKind::ArrayPtrCast);
346
}
0 commit comments