Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/mir/lower.rs')
| -rw-r--r-- | crates/hir-ty/src/mir/lower.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-ty/src/mir/lower.rs b/crates/hir-ty/src/mir/lower.rs index 1f88cc57d0..128bc4d043 100644 --- a/crates/hir-ty/src/mir/lower.rs +++ b/crates/hir-ty/src/mir/lower.rs @@ -1205,7 +1205,7 @@ impl<'ctx> MirLowerCtx<'ctx> { ); let prev_label = if let Some(label) = label { // We should generate the end now, to make sure that it wouldn't change later. It is - // bad as we may emit end (unneccessary unreachable block) for unterminating loop, but + // bad as we may emit end (unnecessary unreachable block) for unterminating loop, but // it should not affect correctness. self.current_loop_end()?; self.labeled_loop_blocks @@ -1277,7 +1277,7 @@ impl<'ctx> MirLowerCtx<'ctx> { /// the appropriated places. fn push_storage_live(&mut self, b: BindingId, current: BasicBlockId) -> Result<()> { // Current implementation is wrong. It adds no `StorageDead` at the end of scope, and before each break - // and continue. It just add a `StorageDead` before the `StorageLive`, which is not wrong, but unneeeded in + // and continue. It just add a `StorageDead` before the `StorageLive`, which is not wrong, but unneeded in // the proper implementation. Due this limitation, implementing a borrow checker on top of this mir will falsely // allow this: // |