Skip to content

Commit f9335ba

Browse files
committed
Auto merge of #12707 - epage:spell, r=ehuss
chore: Fix typos This is a repeat of #11561
2 parents 808ffa9 + e4e10f2 commit f9335ba

File tree

43 files changed

+49
-49
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+49
-49
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@
429429
[#10877](https://github.com/rust-lang/cargo/pull/10877)
430430
- SemVer: It is not a breaking change to make an unsafe function safe.
431431
[#12116](https://github.com/rust-lang/cargo/pull/12116)
432-
- SemVer: changeing MSRV is generally a minor change.
432+
- SemVer: changing MSRV is generally a minor change.
433433
[#12122](https://github.com/rust-lang/cargo/pull/12122)
434434
- Clarify when and how to `cargo yank`.
435435
[#11862](https://github.com/rust-lang/cargo/pull/11862)
@@ -728,9 +728,9 @@
728728

729729
- Clarified the difference between `CARGO_CRATE_NAME` and `CARGO_PKG_NAME`.
730730
[#11576](https://github.com/rust-lang/cargo/pull/11576)
731-
- Added links to the Target section of the glossary for occurences of target triple.
731+
- Added links to the Target section of the glossary for occurrences of target triple.
732732
[#11603](https://github.com/rust-lang/cargo/pull/11603)
733-
- Described how the current resolver sometimes duplicates depenencies.
733+
- Described how the current resolver sometimes duplicates dependencies.
734734
[#11604](https://github.com/rust-lang/cargo/pull/11604)
735735
- Added a note about verifying your email address on crates.io.
736736
[#11620](https://github.com/rust-lang/cargo/pull/11620)
@@ -889,7 +889,7 @@
889889

890890
### Nightly only
891891

892-
- Implemented a inital support of asymmetric token authentication for registries.
892+
- Implemented a initial support of asymmetric token authentication for registries.
893893
([RFC 3231](https://github.com/rust-lang/rfcs/blob/master/text/3231-cargo-asymmetric-tokens.md))
894894
([docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#registry-auth))
895895
[#10771](https://github.com/rust-lang/cargo/pull/10771)

crates/crates-io/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub enum Error {
142142
#[error(transparent)]
143143
Curl(#[from] curl::Error),
144144

145-
/// Error from seriailzing the request payload and deserialzing the
145+
/// Error from seriailzing the request payload and deserializing the
146146
/// response body (like response body didn't match expected structure).
147147
#[error(transparent)]
148148
Json(#[from] serde_json::Error),

crates/xtask-bump-check/src/xtask.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ fn bump_check(args: &clap::ArgMatches, config: &cargo::util::Config) -> CargoRes
161161
];
162162

163163
// Even when we test against baseline-rev, we still need to make sure a
164-
// change doesn't violate SemVer rules aginst crates.io releases. The
164+
// change doesn't violate SemVer rules against crates.io releases. The
165165
// possibility of this happening is nearly zero but no harm to check twice.
166166
let mut cmd = ProcessBuilder::new("cargo");
167167
cmd.arg("semver-checks")
@@ -397,7 +397,7 @@ fn check_crates_io<'a>(
397397
Ok(())
398398
}
399399

400-
/// Checkouts a temporary workspace to do further version comparsions.
400+
/// Checkouts a temporary workspace to do further version comparisons.
401401
fn checkout_ws<'cfg, 'a>(
402402
ws: &Workspace<'cfg>,
403403
repo: &'a git2::Repository,

src/bin/cargo/cli.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ For more information, see issue #10049 <https://github.com/rust-lang/cargo/issue
314314
} else {
315315
config.shell().warn(format_args!(
316316
"\
317-
user-defined alias `{cmd}` has the appearance of a manfiest-command
317+
user-defined alias `{cmd}` has the appearance of a manifest-command
318318
This was previously accepted but will be phased out when `-Zscript` is stabilized.
319319
For more information, see issue #12207 <https://github.com/rust-lang/cargo/issues/12207>."
320320
))?;
@@ -449,7 +449,7 @@ impl Exec {
449449
if !config.cli_unstable().script && ext_path.is_some() {
450450
config.shell().warn(format_args!(
451451
"\
452-
external subcommand `{cmd}` has the appearance of a manfiest-command
452+
external subcommand `{cmd}` has the appearance of a manifest-command
453453
This was previously accepted but will be phased out when `-Zscript` is stabilized.
454454
For more information, see issue #12207 <https://github.com/rust-lang/cargo/issues/12207>.",
455455
))?;

src/cargo/core/compiler/context/compilation_files.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ impl<'a, 'cfg: 'a> CompilationFiles<'a, 'cfg> {
547547

548548
/// Gets the metadata hash for the given [`Unit`].
549549
///
550-
/// Whne a metadata hash doesn't exist for the given unit,
550+
/// When a metadata hash doesn't exist for the given unit,
551551
/// this calls itself recursively to compute metadata hashes of all its dependencies.
552552
/// See [`compute_metadata`] for how a single metadata hash is computed.
553553
fn metadata_of<'a>(

src/cargo/core/compiler/custom_build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ fn emit_build_output(
240240
///
241241
/// The construction includes:
242242
///
243-
/// * Set environment varibles for the build script run.
243+
/// * Set environment variables for the build script run.
244244
/// * Create the output dir (`OUT_DIR`) for the build script output.
245245
/// * Determine if the build script needs a re-run.
246246
/// * Run the build script and store its output.
@@ -827,7 +827,7 @@ impl BuildOutput {
827827
None => return false,
828828
Some(n) => n,
829829
};
830-
// ALLOWED: the process of rustc boostrapping reads this through
830+
// ALLOWED: the process of rustc bootstrapping reads this through
831831
// `std::env`. We should make the behavior consistent. Also, we
832832
// don't advertise this for bypassing nightly.
833833
#[allow(clippy::disallowed_methods)]

src/cargo/core/compiler/fingerprint/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,7 @@ fn compare_old_fingerprint(
17641764

17651765
/// Logs the result of fingerprint comparison.
17661766
///
1767-
/// TODO: Obsolete and mostly superceded by [`DirtyReason`]. Could be removed.
1767+
/// TODO: Obsolete and mostly superseded by [`DirtyReason`]. Could be removed.
17681768
fn log_compare(unit: &Unit, compare: &CargoResult<Option<DirtyReason>>) {
17691769
match compare {
17701770
Ok(None) => {}
@@ -1820,7 +1820,7 @@ pub fn parse_dep_info(
18201820
Ok(Some(ret))
18211821
}
18221822

1823-
/// Calcuates the fingerprint of a unit thats contains no dep-info files.
1823+
/// Calculates the fingerprint of a unit thats contains no dep-info files.
18241824
fn pkg_fingerprint(bcx: &BuildContext<'_, '_>, pkg: &Package) -> CargoResult<String> {
18251825
let source_id = pkg.package_id().source_id();
18261826
let sources = bcx.packages.sources();

src/cargo/core/compiler/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
//! like what rustc has done[^1]. Also, no one knows if Cargo really needs that.
1212
//! To be pragmatic, here we list a handful of items you may want to learn:
1313
//!
14-
//! * [`BuildContext`] is a static context containg all information you need
14+
//! * [`BuildContext`] is a static context containing all information you need
1515
//! before a build gets started.
1616
//! * [`Context`] is the center of the world, coordinating a running build and
1717
//! collecting information from it.
1818
//! * [`custom_build`] is the home of build script executions and output parsing.
1919
//! * [`fingerprint`] not only defines but also executes a set of rules to
2020
//! determine if a re-compile is needed.
2121
//! * [`job_queue`] is where the parallelism, job scheduling, and communication
22-
//! machinary happen between Cargo and the compiler.
22+
//! machinery happen between Cargo and the compiler.
2323
//! * [`layout`] defines and manages output artifacts of a build in the filesystem.
2424
//! * [`unit_dependencies`] is for building a dependency graph for compilation
2525
//! from a result of dependency resolution.

src/cargo/core/features.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ pub fn channel() -> String {
12091209
if let Ok(override_channel) = env::var("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS") {
12101210
return override_channel;
12111211
}
1212-
// ALLOWED: the process of rustc boostrapping reads this through
1212+
// ALLOWED: the process of rustc bootstrapping reads this through
12131213
// `std::env`. We should make the behavior consistent. Also, we
12141214
// don't advertise this for bypassing nightly.
12151215
#[allow(clippy::disallowed_methods)]

src/cargo/core/registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ impl<'cfg> PackageRegistry<'cfg> {
399399
// Note that this is somewhat subtle where the list of `ids` for a
400400
// canonical URL is extend with possibly two ids per summary. This is done
401401
// to handle the transition from the v2->v3 lock file format where in
402-
// v2 DefeaultBranch was either DefaultBranch or Branch("master") for
402+
// v2 DefaultBranch was either DefaultBranch or Branch("master") for
403403
// git dependencies. In this case if `summary.package_id()` is
404404
// Branch("master") then alt_package_id will be DefaultBranch. This
405405
// signifies that there's a patch available for either of those

0 commit comments

Comments
 (0)