diff --git a/crates/resolver-tests/src/lib.rs b/crates/resolver-tests/src/lib.rs index 359090540bd..3b0d2e8bacd 100644 --- a/crates/resolver-tests/src/lib.rs +++ b/crates/resolver-tests/src/lib.rs @@ -173,7 +173,7 @@ pub fn resolve_with_global_context_raw( // we found a case that causes a panic and did not use all of the input. // lets print the part of the input that was used for minimization. eprintln!( - "Part used befor drop: {:?}", + "Part used before drop: {:?}", PrettyPrintRegistry( self.list .iter() diff --git a/src/cargo/core/compiler/future_incompat.rs b/src/cargo/core/compiler/future_incompat.rs index 22c6ad4e913..f184b472c3a 100644 --- a/src/cargo/core/compiler/future_incompat.rs +++ b/src/cargo/core/compiler/future_incompat.rs @@ -8,7 +8,7 @@ //! a [`FutureIncompatReport`], Cargo gathers and forwards it as a //! `Message::FutureIncompatReport` to the main thread. //! -//! To have the correct layout of strucutures for deserializing a report +//! To have the correct layout of structures for deserializing a report //! emitted by the compiler, most of structure definitions, for example //! [`FutureIncompatReport`], are copied either partially or entirely from //! [compiler/rustc_errors/src/json.rs][2] in rust-lang/rust repository. diff --git a/src/cargo/core/manifest.rs b/src/cargo/core/manifest.rs index 0273d8fa4d3..2a7cac65ba5 100644 --- a/src/cargo/core/manifest.rs +++ b/src/cargo/core/manifest.rs @@ -197,7 +197,7 @@ macro_rules! metadata_envs { } } -// Metadata enviromental variables that are emitted to rustc. Usable by `env!()` +// Metadata environmental variables that are emitted to rustc. Usable by `env!()` // If these change we need to trigger a rebuild. // NOTE: The env var name will be prefixed with `CARGO_PKG_` metadata_envs! {