Skip to content

Commit c4b3769

Browse files
committed
run spellcheck as a tidy extra check in ci
1 parent ca77504 commit c4b3769

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

compiler/rustc_next_trait_solver/src/canonicalizer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ enum CanonicalizeInputKind {
2727
ParamEnv,
2828
/// When canonicalizing predicates, we don't keep `'static`. If we're
2929
/// currently outside of the trait solver and canonicalize the root goal
30-
/// during HIR typeck, we replace each occurance of a region with a
30+
/// during HIR typeck, we replace each occurrence of a region with a
3131
/// unique region variable. See the comment on `InferCtxt::in_hir_typeck`
3232
/// for more details.
3333
Predicate { is_hir_typeck_root_goal: bool },

compiler/rustc_resolve/src/late.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4276,7 +4276,7 @@ impl<'a, 'ast, 'ra, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
42764276
if path.len() == 2
42774277
&& let [segment] = prefix_path
42784278
{
4279-
// Delay to check whether methond name is an associated function or not
4279+
// Delay to check whether method name is an associated function or not
42804280
// ```
42814281
// let foo = Foo {};
42824282
// foo::bar(); // possibly suggest to foo.bar();

library/std/src/sync/nonpoison/mutex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub struct MutexGuard<'a, T: ?Sized + 'a> {
100100
lock: &'a Mutex<T>,
101101
}
102102

103-
/// A [`MutexGuard`] is not `Send` to maximize platform portablity.
103+
/// A [`MutexGuard`] is not `Send` to maximize platform portability.
104104
///
105105
/// On platforms that use POSIX threads (commonly referred to as pthreads) there is a requirement to
106106
/// release mutex locks on the same thread they were acquired.

library/std/src/sync/poison/mutex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ pub struct MutexGuard<'a, T: ?Sized + 'a> {
279279
poison: poison::Guard,
280280
}
281281

282-
/// A [`MutexGuard`] is not `Send` to maximize platform portablity.
282+
/// A [`MutexGuard`] is not `Send` to maximize platform portability.
283283
///
284284
/// On platforms that use POSIX threads (commonly referred to as pthreads) there is a requirement to
285285
/// release mutex locks on the same thread they were acquired.

src/ci/docker/host-x86_64/tidy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ RUN bash -c 'npm install -g eslint@$(cat /tmp/eslint.version)'
4545
# NOTE: intentionally uses python2 for x.py so we can test it still works.
4646
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
4747
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 \
48-
src/tools/tidy tidyselftest --extra-checks=py,cpp,js
48+
src/tools/tidy tidyselftest --extra-checks=py,cpp,js,spellcheck

src/librustdoc/html/static/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,7 @@ function preLoadCss(cssUrl) {
15291529
["&#9166;", "Go to active search result"],
15301530
["+", "Expand all sections"],
15311531
["-", "Collapse all sections"],
1532-
// for the sake of brevity, we don't say "inherint impl blocks",
1532+
// for the sake of brevity, we don't say "inherit impl blocks",
15331533
// although that would be more correct,
15341534
// since trait impl blocks are collapsed by -
15351535
["_", "Collapse all sections, including impl blocks"],

0 commit comments

Comments
 (0)