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
//!

src/cargo/util/lockserver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! This module implements a locking server/client where the main `cargo fix`
44
//! process will start up a server and then all the client processes will
5-
//! connect to it. The main purpose of this file is to enusre that each crate
5+
//! connect to it. The main purpose of this file is to ensure that each crate
66
//! (aka file entry point) is only fixed by one process at a time, currently
77
//! concurrent fixes can't happen.
88
//!

src/doc/src/reference/build-scripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ scripts.
4242
Just before a package is built, Cargo will compile a build script into an
4343
executable (if it has not already been built). It will then run the script,
4444
which may perform any number of tasks. The script may communicate with Cargo
45-
by printing specially formated commands prefixed with `cargo:` to stdout.
45+
by printing specially formatted commands prefixed with `cargo:` to stdout.
4646

4747
The build script will be rebuilt if any of its source files or dependencies
4848
change.

src/doc/src/reference/environment-variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ let out_dir = env::var("OUT_DIR").unwrap();
236236
* `CARGO_CFG_TARGET_VENDOR=apple` — The [target vendor].
237237
* `CARGO_CFG_TARGET_ENV=gnu` — The [target environment] ABI.
238238
* `CARGO_CFG_TARGET_POINTER_WIDTH=64` — The CPU [pointer width].
239-
* `CARGO_CFG_TARGET_ENDIAN=little` — The CPU [target endianess].
239+
* `CARGO_CFG_TARGET_ENDIAN=little` — The CPU [target endianness].
240240
* `CARGO_CFG_TARGET_FEATURE=mmx,sse` — List of CPU [target features] enabled.
241241
* `OUT_DIR` - the folder in which all output should be placed. This folder is
242242
inside the build directory for the package being built, and it is
@@ -276,7 +276,7 @@ let out_dir = env::var("OUT_DIR").unwrap();
276276
[target vendor]: ../../reference/conditional-compilation.html#target_vendor
277277
[target environment]: ../../reference/conditional-compilation.html#target_env
278278
[pointer width]: ../../reference/conditional-compilation.html#target_pointer_width
279-
[target endianess]: ../../reference/conditional-compilation.html#target_endian
279+
[target endianness]: ../../reference/conditional-compilation.html#target_endian
280280
[target features]: ../../reference/conditional-compilation.html#target_feature
281281
[links]: build-scripts.md#the-links-manifest-key
282282
[configuration]: ../../reference/conditional-compilation.html

src/doc/src/reference/profiles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ case `rustc` uses an internal heuristic to split the crate.
187187

188188
#### rpath
189189

190-
The `rpath` setting controlls the [`-C rpath` flag] which controls
190+
The `rpath` setting controls the [`-C rpath` flag] which controls
191191
whether or not [`rpath`] is enabled.
192192

193193
[`-C rpath` flag]: ../../rustc/codegen-options/index.html#rpath

tests/testsuite/package.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ Caused by:
758758
}
759759

760760
#[cargo_test]
761-
/// Tests if a symlink to a directory is proberly included.
761+
/// Tests if a symlink to a directory is properly included.
762762
///
763763
/// This test requires you to be able to make symlinks.
764764
/// For windows, this may require you to enable developer mode.
@@ -824,7 +824,7 @@ committed into git:
824824
825825
Cargo.toml
826826
827-
to proceed despite this and include the uncommited changes, pass the `--allow-dirty` flag
827+
to proceed despite this and include the uncommitted changes, pass the `--allow-dirty` flag
828828
",
829829
)
830830
.run();

tests/testsuite/publish.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ committed into git:
399399
400400
bar
401401
402-
to proceed despite this and include the uncommited changes, pass the `--allow-dirty` flag
402+
to proceed despite this and include the uncommitted changes, pass the `--allow-dirty` flag
403403
",
404404
)
405405
.run();

tests/testsuite/tool_paths.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ fn custom_runner_cfg() {
204204
.run();
205205
}
206206

207-
// custom runner set via `target.$triple.runner` have precende over `target.'cfg(..)'.runner`
207+
// custom runner set via `target.$triple.runner` have precedence over `target.'cfg(..)'.runner`
208208
#[cargo_test]
209209
fn custom_runner_cfg_precedence() {
210210
let target = rustc_host();

0 commit comments

Comments
 (0)