Skip to content

Commit df089f4

Browse files
committed
Auto merge of #5008 - matthiaskrgr:codespell, r=alexcrichton
fix a bunch of typos found by codespell https://github.com/lucasdemarchi/codespell/
2 parents b3d7b50 + 670a3df commit df089f4

File tree

11 files changed

+20
-20
lines changed

11 files changed

+20
-20
lines changed

src/bin/search.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::cmp;
66
#[derive(Deserialize)]
77
pub struct Options {
88
flag_index: Option<String>,
9-
flag_host: Option<String>, // TODO: Depricated, remove
9+
flag_host: Option<String>, // TODO: Deprecated, remove
1010
flag_verbose: u32,
1111
flag_quiet: Option<bool>,
1212
flag_color: Option<String>,
@@ -49,7 +49,7 @@ pub fn execute(options: Options, config: &mut Config) -> CliResult {
4949
&options.flag_z)?;
5050
let Options {
5151
flag_index: index,
52-
flag_host: host, // TODO: Depricated, remove
52+
flag_host: host, // TODO: Deprecated, remove
5353
flag_limit: limit,
5454
arg_query: query,
5555
flag_registry: registry,
@@ -61,7 +61,7 @@ pub fn execute(options: Options, config: &mut Config) -> CliResult {
6161
requires -Zunstable-options to use.").into())
6262
}
6363

64-
// TODO: Depricated
64+
// TODO: Deprecated
6565
// remove once it has been decided --host can be safely removed
6666
// We may instead want to repurpose the host flag, as
6767
// mentioned in this issue
@@ -70,7 +70,7 @@ pub fn execute(options: Options, config: &mut Config) -> CliResult {
7070
let msg = "The flag '--host' is no longer valid.
7171
7272
Previous versions of Cargo accepted this flag, but it is being
73-
depricated. The flag is being renamed to 'index', as the flag
73+
deprecated. The flag is being renamed to 'index', as the flag
7474
wants the location of the index in which to search. Please
7575
use '--index' instead.
7676

src/cargo/core/package.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl Package {
9595
pub fn manifest_path(&self) -> &Path { &self.manifest_path }
9696
/// Get the name of the package
9797
pub fn name(&self) -> &str { self.package_id().name() }
98-
/// Get the PackageId object for the package (fully defines a packge)
98+
/// Get the PackageId object for the package (fully defines a package)
9999
pub fn package_id(&self) -> &PackageId { self.manifest.package_id() }
100100
/// Get the root folder of the package
101101
pub fn root(&self) -> &Path { self.manifest_path.parent().unwrap() }

src/cargo/core/resolver/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ fn activate_deps_loop<'a>(mut cx: Context<'a>,
620620
// You'll note that a few stacks are maintained on the side, which might
621621
// seem odd when this algorithm looks like it could be implemented
622622
// recursively. While correct, this is implemented iteratively to avoid
623-
// blowing the stack (the recusion depth is proportional to the size of the
623+
// blowing the stack (the recursion depth is proportional to the size of the
624624
// input).
625625
//
626626
// The general sketch of this loop is to run until there are no dependencies
@@ -1073,7 +1073,7 @@ impl<'a> Context<'a> {
10731073
registry: &mut Registry,
10741074
candidate: &Summary,
10751075
method: &Method) -> CargoResult<Vec<DepInfo>> {
1076-
// First, figure out our set of dependencies based on the requsted set
1076+
// First, figure out our set of dependencies based on the requested set
10771077
// of features. This also calculates what features we're going to enable
10781078
// for our own dependencies.
10791079
let deps = self.resolve_features(candidate, method)?;

src/cargo/core/summary.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use core::{Dependency, PackageId, SourceId};
77

88
use util::CargoResult;
99

10-
/// Subset of a `Manifest`. Contains only the most important informations about
10+
/// Subset of a `Manifest`. Contains only the most important information about
1111
/// a package.
1212
///
1313
/// Summaries are cloned, and should not be mutated after creation

src/cargo/ops/cargo_rustc/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ use super::{Kind, Compilation, BuildConfig};
4141
/// all that out.
4242
#[derive(Clone, Copy, Eq, PartialEq, Hash)]
4343
pub struct Unit<'a> {
44-
/// Information about avaiable targets, which files to include/exclude, etc. Basically stuff in
44+
/// Information about available targets, which files to include/exclude, etc. Basically stuff in
4545
/// `Cargo.toml`.
4646
pub pkg: &'a Package,
4747
/// Information about the specific target to build, out of the possible targets in `pkg`. Not

src/cargo/sources/path.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ impl<'cfg> PathSource<'cfg> {
9797
/// 1) Only warn users about the future change iff their matching rules are
9898
/// affected. (CURRENT STAGE)
9999
///
100-
/// 2) Switch to the new strategy and upate documents. Still keep warning
100+
/// 2) Switch to the new strategy and update documents. Still keep warning
101101
/// affected users.
102102
///
103-
/// 3) Drop the old strategy and no mor warnings.
103+
/// 3) Drop the old strategy and no more warnings.
104104
///
105105
/// See <https://github.com/rust-lang/cargo/issues/4268> for more info.
106106
pub fn list_files(&self, pkg: &Package) -> CargoResult<Vec<PathBuf>> {

src/cargo/sources/registry/index.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ impl<'cfg> RegistryIndex<'cfg> {
177177
// Handle `cargo update --precise` here. If specified, our own source
178178
// will have a precise version listed of the form `<pkg>=<req>` where
179179
// `<pkg>` is the name of a crate on this source and `<req>` is the
180-
// version requested (agument to `--precise`).
180+
// version requested (argument to `--precise`).
181181
let summaries = summaries.filter(|s| {
182182
match source_id.precise() {
183183
Some(p) if p.starts_with(dep.name()) &&

tests/cargotest/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ fn _process(t: &OsStr) -> cargo::util::ProcessBuilder {
4646
.env("__CARGO_TEST_ROOT", support::paths::root())
4747

4848
// Force cargo to think it's on the stable channel for all tests, this
49-
// should hopefully not suprise us as we add cargo features over time and
50-
// cargo rides the trains
49+
// should hopefully not surprise us as we add cargo features over time and
50+
// cargo rides the trains.
5151
.env("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS", "stable")
5252

5353
// For now disable incremental by default as support hasn't ridden to the

tests/cargotest/support/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ impl Execs {
563563
} {}
564564

565565
ham::expect(matches == number,
566-
format!("expected to find {} occurences:\n\
566+
format!("expected to find {} occurrences:\n\
567567
{}\n\n\
568568
did not find in output:\n\
569569
{}", number, out,

tests/death.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fn enabled() -> bool {
1717
true
1818
}
1919

20-
// On Windows suport for these tests is only enabled through the usage of job
20+
// On Windows support for these tests is only enabled through the usage of job
2121
// objects. Support for nested job objects, however, was added in recent-ish
2222
// versions of Windows, so this test may not always be able to succeed.
2323
//

tests/search.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fn simple() {
8888
hoare = \"0.1.1\" # Design by contract style assertions for Rust"));
8989
}
9090

91-
// TODO: Depricated
91+
// TODO: Deprecated
9292
// remove once it has been decided '--host' can be safely removed
9393
#[test]
9494
fn simple_with_host() {
@@ -140,7 +140,7 @@ fn simple_with_host() {
140140
[WARNING] The flag '--host' is no longer valid.
141141
142142
Previous versions of Cargo accepted this flag, but it is being
143-
depricated. The flag is being renamed to 'index', as the flag
143+
deprecated. The flag is being renamed to 'index', as the flag
144144
wants the location of the index in which to search. Please
145145
use '--index' instead.
146146
@@ -154,7 +154,7 @@ about this warning.
154154
hoare = \"0.1.1\" # Design by contract style assertions for Rust"));
155155
}
156156

157-
// TODO: Depricated
157+
// TODO: Deprecated
158158
// remove once it has been decided '--host' can be safely removed
159159
#[test]
160160
fn simple_with_index_and_host() {
@@ -207,7 +207,7 @@ fn simple_with_index_and_host() {
207207
[WARNING] The flag '--host' is no longer valid.
208208
209209
Previous versions of Cargo accepted this flag, but it is being
210-
depricated. The flag is being renamed to 'index', as the flag
210+
deprecated. The flag is being renamed to 'index', as the flag
211211
wants the location of the index in which to search. Please
212212
use '--index' instead.
213213

0 commit comments

Comments
 (0)