Skip to content

Commit 7590ff6

Browse files
committed
chore: Address typos
1 parent 191c772 commit 7590ff6

File tree

26 files changed

+83
-83
lines changed

26 files changed

+83
-83
lines changed

crates/cargo-test-support/src/paths.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ fn build_dir_ignored_path_patterns() -> Vec<String> {
357357
// Ignore MacOS debug symbols as there are many files/directories that would clutter up
358358
// tests few not a lot of benefit.
359359
"[..].dSYM/[..]",
360-
// Ignore Windows debub symbols files (.pdb)
360+
// Ignore Windows debug symbols files (.pdb)
361361
"[..].pdb",
362362
]
363363
.into_iter()

crates/cargo-util-schemas/src/lockfile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl TomlLockfileSourceId {
110110
.ok_or_else(|| TomlLockfileSourceIdErrorKind::InvalidSource(source.clone()))?;
111111

112112
// Sparse URLs store the kind prefix (sparse+) in the URL. Therefore, for sparse kinds, we
113-
// want to use the raw `source` instead of the splitted `url`.
113+
// want to use the raw `source` instead of the split `url`.
114114
let url = Url::parse(if kind == "sparse" { &source } else { url }).map_err(|msg| {
115115
TomlLockfileSourceIdErrorKind::InvalidUrl {
116116
url: url.to_string(),

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,16 +235,16 @@ impl<'a, 'gctx: 'a> CompilationFiles<'a, 'gctx> {
235235
/// Note that some units may share the same directory, so care should be
236236
/// taken in those cases!
237237
fn pkg_dir(&self, unit: &Unit) -> String {
238-
let seperator = match self.ws.gctx().cli_unstable().build_dir_new_layout {
238+
let separator = match self.ws.gctx().cli_unstable().build_dir_new_layout {
239239
true => "/",
240240
false => "-",
241241
};
242242
let name = unit.pkg.package_id().name();
243243
let meta = self.metas[unit];
244244
if let Some(c_extra_filename) = meta.c_extra_filename() {
245-
format!("{}{}{}", name, seperator, c_extra_filename)
245+
format!("{}{}{}", name, separator, c_extra_filename)
246246
} else {
247-
format!("{}{}{}", name, seperator, self.target_short_hash(unit))
247+
format!("{}{}{}", name, separator, self.target_short_hash(unit))
248248
}
249249
}
250250

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

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,18 +1069,18 @@ impl Fingerprint {
10691069
}
10701070
(
10711071
LocalFingerprint::CheckDepInfo {
1072-
dep_info: adep,
1072+
dep_info: a_dep,
10731073
checksum: checksum_a,
10741074
},
10751075
LocalFingerprint::CheckDepInfo {
1076-
dep_info: bdep,
1076+
dep_info: b_dep,
10771077
checksum: checksum_b,
10781078
},
10791079
) => {
1080-
if adep != bdep {
1080+
if a_dep != b_dep {
10811081
return DirtyReason::DepInfoOutputChanged {
1082-
old: bdep.clone(),
1083-
new: adep.clone(),
1082+
old: b_dep.clone(),
1083+
new: a_dep.clone(),
10841084
};
10851085
}
10861086
if checksum_a != checksum_b {
@@ -1089,48 +1089,48 @@ impl Fingerprint {
10891089
}
10901090
(
10911091
LocalFingerprint::RerunIfChanged {
1092-
output: aout,
1093-
paths: apaths,
1092+
output: a_out,
1093+
paths: a_paths,
10941094
},
10951095
LocalFingerprint::RerunIfChanged {
1096-
output: bout,
1097-
paths: bpaths,
1096+
output: b_out,
1097+
paths: b_paths,
10981098
},
10991099
) => {
1100-
if aout != bout {
1100+
if a_out != b_out {
11011101
return DirtyReason::RerunIfChangedOutputFileChanged {
1102-
old: bout.clone(),
1103-
new: aout.clone(),
1102+
old: b_out.clone(),
1103+
new: a_out.clone(),
11041104
};
11051105
}
1106-
if apaths != bpaths {
1106+
if a_paths != b_paths {
11071107
return DirtyReason::RerunIfChangedOutputPathsChanged {
1108-
old: bpaths.clone(),
1109-
new: apaths.clone(),
1108+
old: b_paths.clone(),
1109+
new: a_paths.clone(),
11101110
};
11111111
}
11121112
}
11131113
(
11141114
LocalFingerprint::RerunIfEnvChanged {
1115-
var: akey,
1116-
val: avalue,
1115+
var: a_key,
1116+
val: a_value,
11171117
},
11181118
LocalFingerprint::RerunIfEnvChanged {
1119-
var: bkey,
1120-
val: bvalue,
1119+
var: b_key,
1120+
val: b_value,
11211121
},
11221122
) => {
1123-
if *akey != *bkey {
1123+
if *a_key != *b_key {
11241124
return DirtyReason::EnvVarsChanged {
1125-
old: bkey.clone(),
1126-
new: akey.clone(),
1125+
old: b_key.clone(),
1126+
new: a_key.clone(),
11271127
};
11281128
}
1129-
if *avalue != *bvalue {
1129+
if *a_value != *b_value {
11301130
return DirtyReason::EnvVarChanged {
1131-
name: akey.clone(),
1132-
old_value: bvalue.clone(),
1133-
new_value: avalue.clone(),
1131+
name: a_key.clone(),
1132+
old_value: b_value.clone(),
1133+
new_value: a_value.clone(),
11341134
};
11351135
}
11361136
}

src/cargo/core/compiler/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ fn build_deps_args(
16561656
if build_runner.bcx.gctx.cli_unstable().build_dir_new_layout {
16571657
let mut map = BTreeMap::new();
16581658

1659-
// Recursively add all depenendency args to rustc process
1659+
// Recursively add all dependency args to rustc process
16601660
add_dep_arg(&mut map, build_runner, unit);
16611661

16621662
let paths = map.into_iter().map(|(_, path)| path).sorted_unstable();

src/cargo/core/compiler/timings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ impl<'gctx> Timings<'gctx> {
634634
AggregatedSections::Sections(mut sections) => {
635635
// We draw the sections in the pipeline graph in a way where the frontend
636636
// section has the "default" build color, and then additional sections
637-
// (codegen, link) are overlayed on top with a different color.
637+
// (codegen, link) are overlaid on top with a different color.
638638
// However, there might be some time after the final (usually link) section,
639639
// which definitely shouldn't be classified as "Frontend". We thus try to
640640
// detect this situation and add a final "Other" section.

src/cargo/core/resolver/dep_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ syntax so it does not have an implicit feature with that name{}",
573573
None => ActivateError::Fatal(anyhow::format_err!(
574574
"package `{}` does not have feature `{}`
575575
576-
help: a depednency with that name exists but it is required dependency and only optional dependencies can be used as features.",
576+
help: a dependency with that name exists but it is required dependency and only optional dependencies can be used as features.",
577577
summary.package_id(),
578578
feat,
579579
)),

src/cargo/core/shell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ impl Shell {
366366
fn file_hyperlink(&mut self, path: &std::path::Path) -> Option<url::Url> {
367367
let mut url = url::Url::from_file_path(path).ok()?;
368368
// Do a best-effort of setting the host in the URL to avoid issues with opening a link
369-
// scoped to the computer you've SSHed into
369+
// scoped to the computer you've SSH'ed into
370370
let hostname = if cfg!(windows) {
371371
// Not supported correctly on windows
372372
None

src/cargo/core/workspace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ impl<'gctx> Workspace<'gctx> {
13271327

13281328
// This is a short term hack to allow `blanket_hint_mostly_unused`
13291329
// to run without requiring `-Zcargo-lints`, which should hopefully
1330-
// improve the testing expierience while we are collecting feedback
1330+
// improve the testing experience while we are collecting feedback
13311331
if self.gctx.cli_unstable().profile_hint_mostly_unused {
13321332
blanket_hint_mostly_unused(
13331333
self.root_maybe(),

src/cargo/ops/cargo_compile/compile_filter.rs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ impl CompileFilter {
102102
lib_only: bool,
103103
bins: Vec<String>,
104104
all_bins: bool,
105-
tsts: Vec<String>,
106-
all_tsts: bool,
107-
exms: Vec<String>,
108-
all_exms: bool,
109-
bens: Vec<String>,
110-
all_bens: bool,
105+
tests: Vec<String>,
106+
all_tests: bool,
107+
examples: Vec<String>,
108+
all_examples: bool,
109+
benches: Vec<String>,
110+
all_benches: bool,
111111
all_targets: bool,
112112
) -> CompileFilter {
113113
if all_targets {
@@ -119,34 +119,34 @@ impl CompileFilter {
119119
LibRule::False
120120
};
121121
let rule_bins = FilterRule::new(bins, all_bins);
122-
let rule_tsts = FilterRule::new(tsts, all_tsts);
123-
let rule_exms = FilterRule::new(exms, all_exms);
124-
let rule_bens = FilterRule::new(bens, all_bens);
122+
let rule_tests = FilterRule::new(tests, all_tests);
123+
let rule_examples = FilterRule::new(examples, all_examples);
124+
let rule_benches = FilterRule::new(benches, all_benches);
125125

126-
CompileFilter::new(rule_lib, rule_bins, rule_tsts, rule_exms, rule_bens)
126+
CompileFilter::new(rule_lib, rule_bins, rule_tests, rule_examples, rule_benches)
127127
}
128128

129129
/// Constructs a filter from underlying primitives.
130130
pub fn new(
131131
rule_lib: LibRule,
132132
rule_bins: FilterRule,
133-
rule_tsts: FilterRule,
134-
rule_exms: FilterRule,
135-
rule_bens: FilterRule,
133+
rule_tests: FilterRule,
134+
rule_examples: FilterRule,
135+
rule_benches: FilterRule,
136136
) -> CompileFilter {
137137
if rule_lib == LibRule::True
138138
|| rule_bins.is_specific()
139-
|| rule_tsts.is_specific()
140-
|| rule_exms.is_specific()
141-
|| rule_bens.is_specific()
139+
|| rule_tests.is_specific()
140+
|| rule_examples.is_specific()
141+
|| rule_benches.is_specific()
142142
{
143143
CompileFilter::Only {
144144
all_targets: false,
145145
lib: rule_lib,
146146
bins: rule_bins,
147-
examples: rule_exms,
148-
benches: rule_bens,
149-
tests: rule_tsts,
147+
examples: rule_examples,
148+
benches: rule_benches,
149+
tests: rule_tests,
150150
}
151151
} else {
152152
CompileFilter::Default {

0 commit comments

Comments
 (0)