about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-11-18 14:13:39 +0100
committerGitHub <noreply@github.com>2022-11-18 14:13:39 +0100
commit7e5e520c7daf193bc33f8dd12dfd9ec4ed1f261a (patch)
tree7746586e13e676944e13802b60178161c17db877
parent5977fbbc1c16aeecc511ef548833e7f00c90f266 (diff)
parentff38c2891dd9ce782a91fa0f45d105309380e4c2 (diff)
downloadrust-7e5e520c7daf193bc33f8dd12dfd9ec4ed1f261a.tar.gz
rust-7e5e520c7daf193bc33f8dd12dfd9ec4ed1f261a.zip
Rollup merge of #104550 - RalfJung:typo, r=compiler-errors
fix a typo

r? `@lcnr`
-rw-r--r--compiler/rustc_middle/src/mir/interpret/error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/mir/interpret/error.rs b/compiler/rustc_middle/src/mir/interpret/error.rs
index ae0dbad8b08..bd9cd53e115 100644
--- a/compiler/rustc_middle/src/mir/interpret/error.rs
+++ b/compiler/rustc_middle/src/mir/interpret/error.rs
@@ -144,7 +144,7 @@ impl fmt::Display for InvalidProgramInfo<'_> {
             AlreadyReported(ErrorGuaranteed { .. }) => {
                 write!(
                     f,
-                    "an error has already been reported elsewhere (this sould not usually be printed)"
+                    "an error has already been reported elsewhere (this should not usually be printed)"
                 )
             }
             Layout(ref err) => write!(f, "{err}"),