chore: Fix typos in 'compiler' (batch 2)

This commit is contained in:
Alexander Cyon
2024-09-02 07:50:22 +02:00
parent 78d5c04d9c
commit 00de006f22
34 changed files with 54 additions and 54 deletions

View File

@@ -914,7 +914,7 @@ impl<'tcx> Visitor<'tcx> for CanConstProp {
fn visit_place(&mut self, place: &Place<'tcx>, mut context: PlaceContext, loc: Location) {
use rustc_middle::mir::visit::PlaceContext::*;
// Dereferencing just read the addess of `place.local`.
// Dereferencing just read the address of `place.local`.
if place.projection.first() == Some(&PlaceElem::Deref) {
context = NonMutatingUse(NonMutatingUseContext::Copy);
}