We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e6b435 commit 87292e3Copy full SHA for 87292e3
compiler/rustc_hir_typeck/src/cast.rs
@@ -666,8 +666,8 @@ impl<'a, 'tcx> CastCheck<'tcx> {
666
// cannot distinguish. This would cause us to erroneously discard a cast which will
667
// lead to a borrowck error like #113257.
668
// We still did a coercion above to unify inference variables for `ptr as _` casts.
669
- debug!(" -> PointerCast");
670
// This does cause us to miss some trivial casts in the trival cast lint.
+ debug!(" -> PointerCast");
671
} else {
672
self.trivial_cast_lint(fcx);
673
debug!(" -> CoercionCast");
0 commit comments