Skip to content

Commit d810647

Browse files
committed
Auto merge of #7696 - matthiaskrgr:typ0s, r=ehuss
fix a couple of typos
2 parents 5a139f7 + 34f2d47 commit d810647

File tree

17 files changed

+21
-21
lines changed

17 files changed

+21
-21
lines changed

src/bin/cargo/commands/vendor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ to use the vendored sources, which you will need to add to `.cargo/config`.
6868
}
6969

7070
pub fn exec(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
71-
// We're doing the vendoring operation outselves, so we don't actually want
71+
// We're doing the vendoring operation ourselves, so we don't actually want
7272
// to respect any of the `source` configuration in Cargo itself. That's
7373
// intended for other consumers of Cargo, but we want to go straight to the
7474
// source, e.g. crates.io, to fetch crates.
@@ -77,7 +77,7 @@ pub fn exec(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
7777
}
7878

7979
// When we moved `cargo vendor` into Cargo itself we didn't stabilize a few
80-
// flags, so try to provide a helpful error message in that case to enusre
80+
// flags, so try to provide a helpful error message in that case to ensure
8181
// that users currently using the flag aren't tripped up.
8282
let crates_io_cargo_vendor_flag = if args.is_present("no-merge-sources") {
8383
Some("--no-merge-sources")

src/cargo/core/compiler/fingerprint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
//! if we tracked the actual values of modification times would cause
124124
//! unnecessary recompiles. To fix this we instead only track paths which are
125125
//! relevant. These paths are checked dynamically to see if they're up to
126-
//! date, and the modifiation time doesn't make its way into the fingerprint
126+
//! date, and the modification time doesn't make its way into the fingerprint
127127
//! hash.
128128
//!
129129
//! * Absolute path names. We strive to maintain a property where if you rename

src/cargo/core/compiler/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ fn build_base_args<'a, 'cfg>(
727727
if unit.mode.is_check() {
728728
cmd.arg("--emit=dep-info,metadata");
729729
} else if !unit.requires_upstream_objects() {
730-
// Always produce metdata files for rlib outputs. Metadata may be used
730+
// Always produce metadata files for rlib outputs. Metadata may be used
731731
// in this session for a pipelined compilation, or it may be used in a
732732
// future Cargo session as part of a pipelined compile.
733733
cmd.arg("--emit=dep-info,metadata,link");

src/cargo/core/resolver/conflict_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl ConflictStoreTrie {
6161
if max_age > age {
6262
// we found one that can jump-back further so replace the out.
6363
out = Some((o, age));
64-
// and dont look at anything older
64+
// and don't look at anything older
6565
max_age = age
6666
}
6767
}

src/cargo/core/resolver/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ impl PublicDependency {
398398
// for each (transitive) parent that can newly see `t`
399399
let mut stack = vec![(parent, is_public)];
400400
while let Some((p, public)) = stack.pop() {
401-
// TODO: dont look at the same thing more then once
401+
// TODO: don't look at the same thing more then once
402402
if let Some(o) = self.inner.get(&p).and_then(|x| x.get(&t.name())) {
403403
if o.0 != t {
404404
// the (transitive) parent can already see a different version by `t`s name.

src/cargo/core/resolver/dep_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ impl<'a> RegistryQueryer<'a> {
234234
let out = Rc::new((used_features, Rc::new(deps)));
235235

236236
// If we succeed we add the result to the cache so we can use it again next time.
237-
// We dont cache the failure cases as they dont impl Clone.
237+
// We don't cache the failure cases as they don't impl Clone.
238238
self.summary_cache
239239
.insert((parent, candidate.clone(), opts.clone()), out.clone());
240240

src/cargo/core/resolver/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ pub(super) fn activation_error(
271271
);
272272
if !candidates.is_empty() {
273273
// If dependency package name is equal to the name of the candidate here
274-
// it may be a prerelease package which hasn't been speficied correctly
274+
// it may be a prerelease package which hasn't been specified correctly
275275
if dep.package_name() == candidates[0].1.name()
276276
&& candidates[0].1.package_id().version().is_prerelease()
277277
{

src/cargo/core/resolver/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ fn generalize_conflicting(
868868
let mut con = conflicting_activations.clone();
869869
// It is always valid to combine previously inserted conflicts.
870870
// A, B are both known bad states each that can never be activated.
871-
// A + B is redundant but cant be activated, as if
871+
// A + B is redundant but can't be activated, as if
872872
// A + B is active then A is active and we know that is not ok.
873873
for (_, other) in &others {
874874
con.extend(other.iter().map(|(&id, re)| (id, re.clone())));
@@ -928,7 +928,7 @@ fn find_candidate(
928928
// If we backtracked we do not know how our `conflicting_activations` related to
929929
// the cause of that backtrack, so we do not update it.
930930
let age = if !backtracked {
931-
// we dont have abnormal situations. So we can ask `cx` for how far back we need to go.
931+
// we don't have abnormal situations. So we can ask `cx` for how far back we need to go.
932932
let a = cx.is_conflicting(Some(parent.package_id()), conflicting_activations);
933933
// If the `conflicting_activations` does not apply to `cx`, then something went very wrong
934934
// in building it. But we will just fall back to laboriously trying all possibilities witch

src/cargo/ops/cargo_package.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ fn check_repo_state(
324324
failure::bail!(
325325
"{} files in the working directory contain changes that were \
326326
not yet committed into git:\n\n{}\n\n\
327-
to proceed despite this and include the uncommited changes, pass the `--allow-dirty` flag",
327+
to proceed despite this and include the uncommitted changes, pass the `--allow-dirty` flag",
328328
dirty.len(),
329329
dirty.join("\n")
330330
)

src/cargo/sources/registry/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
//!
4848
//! Additionally, each modification to the index is just appending a line at
4949
//! the end of a file (the exact format is described later). This means that
50-
//! the commits for an index are quite small and easily applied/compressable.
50+
//! the commits for an index are quite small and easily applied/compressible.
5151
//!
5252
//! ## The format of the Index
5353
//!

0 commit comments

Comments
 (0)