We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9b9f4e commit de4b0e9Copy full SHA for de4b0e9
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