Skip to content

Commit

Permalink
Auto merge of rust-lang#7696 - matthiaskrgr:typ0s, r=ehuss
Browse files Browse the repository at this point in the history
fix a couple of typos
  • Loading branch information
bors committed Dec 11, 2019
2 parents 5a139f7 + 34f2d47 commit d810647
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions src/bin/cargo/commands/vendor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ to use the vendored sources, which you will need to add to `.cargo/config`.
}

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

// When we moved `cargo vendor` into Cargo itself we didn't stabilize a few
// flags, so try to provide a helpful error message in that case to enusre
// flags, so try to provide a helpful error message in that case to ensure
// that users currently using the flag aren't tripped up.
let crates_io_cargo_vendor_flag = if args.is_present("no-merge-sources") {
Some("--no-merge-sources")
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/fingerprint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
//! if we tracked the actual values of modification times would cause
//! unnecessary recompiles. To fix this we instead only track paths which are
//! relevant. These paths are checked dynamically to see if they're up to
//! date, and the modifiation time doesn't make its way into the fingerprint
//! date, and the modification time doesn't make its way into the fingerprint
//! hash.
//!
//! * Absolute path names. We strive to maintain a property where if you rename
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ fn build_base_args<'a, 'cfg>(
if unit.mode.is_check() {
cmd.arg("--emit=dep-info,metadata");
} else if !unit.requires_upstream_objects() {
// Always produce metdata files for rlib outputs. Metadata may be used
// Always produce metadata files for rlib outputs. Metadata may be used
// in this session for a pipelined compilation, or it may be used in a
// future Cargo session as part of a pipelined compile.
cmd.arg("--emit=dep-info,metadata,link");
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/core/resolver/conflict_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl ConflictStoreTrie {
if max_age > age {
// we found one that can jump-back further so replace the out.
out = Some((o, age));
// and dont look at anything older
// and don't look at anything older
max_age = age
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/core/resolver/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ impl PublicDependency {
// for each (transitive) parent that can newly see `t`
let mut stack = vec![(parent, is_public)];
while let Some((p, public)) = stack.pop() {
// TODO: dont look at the same thing more then once
// TODO: don't look at the same thing more then once
if let Some(o) = self.inner.get(&p).and_then(|x| x.get(&t.name())) {
if o.0 != t {
// the (transitive) parent can already see a different version by `t`s name.
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/core/resolver/dep_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ impl<'a> RegistryQueryer<'a> {
let out = Rc::new((used_features, Rc::new(deps)));

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

Expand Down
2 changes: 1 addition & 1 deletion src/cargo/core/resolver/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ pub(super) fn activation_error(
);
if !candidates.is_empty() {
// If dependency package name is equal to the name of the candidate here
// it may be a prerelease package which hasn't been speficied correctly
// it may be a prerelease package which hasn't been specified correctly
if dep.package_name() == candidates[0].1.name()
&& candidates[0].1.package_id().version().is_prerelease()
{
Expand Down
4 changes: 2 additions & 2 deletions src/cargo/core/resolver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ fn generalize_conflicting(
let mut con = conflicting_activations.clone();
// It is always valid to combine previously inserted conflicts.
// A, B are both known bad states each that can never be activated.
// A + B is redundant but cant be activated, as if
// A + B is redundant but can't be activated, as if
// A + B is active then A is active and we know that is not ok.
for (_, other) in &others {
con.extend(other.iter().map(|(&id, re)| (id, re.clone())));
Expand Down Expand Up @@ -928,7 +928,7 @@ fn find_candidate(
// If we backtracked we do not know how our `conflicting_activations` related to
// the cause of that backtrack, so we do not update it.
let age = if !backtracked {
// we dont have abnormal situations. So we can ask `cx` for how far back we need to go.
// we don't have abnormal situations. So we can ask `cx` for how far back we need to go.
let a = cx.is_conflicting(Some(parent.package_id()), conflicting_activations);
// If the `conflicting_activations` does not apply to `cx`, then something went very wrong
// in building it. But we will just fall back to laboriously trying all possibilities witch
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/ops/cargo_package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ fn check_repo_state(
failure::bail!(
"{} files in the working directory contain changes that were \
not yet committed into git:\n\n{}\n\n\
to proceed despite this and include the uncommited changes, pass the `--allow-dirty` flag",
to proceed despite this and include the uncommitted changes, pass the `--allow-dirty` flag",
dirty.len(),
dirty.join("\n")
)
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/sources/registry/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
//!
//! Additionally, each modification to the index is just appending a line at
//! the end of a file (the exact format is described later). This means that
//! the commits for an index are quite small and easily applied/compressable.
//! the commits for an index are quite small and easily applied/compressible.
//!
//! ## The format of the Index
//!
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/util/lockserver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! This module implements a locking server/client where the main `cargo fix`
//! process will start up a server and then all the client processes will
//! connect to it. The main purpose of this file is to enusre that each crate
//! connect to it. The main purpose of this file is to ensure that each crate
//! (aka file entry point) is only fixed by one process at a time, currently
//! concurrent fixes can't happen.
//!
Expand Down
2 changes: 1 addition & 1 deletion src/doc/src/reference/build-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ scripts.
Just before a package is built, Cargo will compile a build script into an
executable (if it has not already been built). It will then run the script,
which may perform any number of tasks. The script may communicate with Cargo
by printing specially formated commands prefixed with `cargo:` to stdout.
by printing specially formatted commands prefixed with `cargo:` to stdout.

The build script will be rebuilt if any of its source files or dependencies
change.
Expand Down
4 changes: 2 additions & 2 deletions src/doc/src/reference/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ let out_dir = env::var("OUT_DIR").unwrap();
* `CARGO_CFG_TARGET_VENDOR=apple` — The [target vendor].
* `CARGO_CFG_TARGET_ENV=gnu` — The [target environment] ABI.
* `CARGO_CFG_TARGET_POINTER_WIDTH=64` — The CPU [pointer width].
* `CARGO_CFG_TARGET_ENDIAN=little` — The CPU [target endianess].
* `CARGO_CFG_TARGET_ENDIAN=little` — The CPU [target endianness].
* `CARGO_CFG_TARGET_FEATURE=mmx,sse` — List of CPU [target features] enabled.
* `OUT_DIR` - the folder in which all output should be placed. This folder is
inside the build directory for the package being built, and it is
Expand Down Expand Up @@ -276,7 +276,7 @@ let out_dir = env::var("OUT_DIR").unwrap();
[target vendor]: ../../reference/conditional-compilation.html#target_vendor
[target environment]: ../../reference/conditional-compilation.html#target_env
[pointer width]: ../../reference/conditional-compilation.html#target_pointer_width
[target endianess]: ../../reference/conditional-compilation.html#target_endian
[target endianness]: ../../reference/conditional-compilation.html#target_endian
[target features]: ../../reference/conditional-compilation.html#target_feature
[links]: build-scripts.md#the-links-manifest-key
[configuration]: ../../reference/conditional-compilation.html
Expand Down
2 changes: 1 addition & 1 deletion src/doc/src/reference/profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ case `rustc` uses an internal heuristic to split the crate.

#### rpath

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

[`-C rpath` flag]: ../../rustc/codegen-options/index.html#rpath
Expand Down
4 changes: 2 additions & 2 deletions tests/testsuite/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ Caused by:
}

#[cargo_test]
/// Tests if a symlink to a directory is proberly included.
/// Tests if a symlink to a directory is properly included.
///
/// This test requires you to be able to make symlinks.
/// For windows, this may require you to enable developer mode.
Expand Down Expand Up @@ -824,7 +824,7 @@ committed into git:
Cargo.toml
to proceed despite this and include the uncommited changes, pass the `--allow-dirty` flag
to proceed despite this and include the uncommitted changes, pass the `--allow-dirty` flag
",
)
.run();
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ committed into git:
bar
to proceed despite this and include the uncommited changes, pass the `--allow-dirty` flag
to proceed despite this and include the uncommitted changes, pass the `--allow-dirty` flag
",
)
.run();
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/tool_paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ fn custom_runner_cfg() {
.run();
}

// custom runner set via `target.$triple.runner` have precende over `target.'cfg(..)'.runner`
// custom runner set via `target.$triple.runner` have precedence over `target.'cfg(..)'.runner`
#[cargo_test]
fn custom_runner_cfg_precedence() {
let target = rustc_host();
Expand Down

0 comments on commit d810647

Please sign in to comment.