File tree Expand file tree Collapse file tree 4 files changed +13
-17
lines changed
compiler/rustc_lint_defs/src Expand file tree Collapse file tree 4 files changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -1226,7 +1226,7 @@ declare_lint! {
1226
1226
///
1227
1227
/// ### Explanation
1228
1228
///
1229
- /// A public `use` declaration should not be used to publicly re-export a
1229
+ /// A public `use` declaration should not be used to publically re-export a
1230
1230
/// private `extern crate`. `pub extern crate` should be used instead.
1231
1231
///
1232
1232
/// This was historically allowed, but is not the intended behavior
@@ -4440,7 +4440,7 @@ declare_lint! {
4440
4440
///
4441
4441
/// `refining_impl_trait` is a lint group composed of two lints:
4442
4442
///
4443
- /// * `refining_impl_trait_reachable`, for refinements that are publicly
4443
+ /// * `refining_impl_trait_reachable`, for refinements that are publically
4444
4444
/// reachable outside a crate, and
4445
4445
/// * `refining_impl_trait_internal`, for refinements that are only visible
4446
4446
/// within a crate.
@@ -4496,7 +4496,7 @@ declare_lint! {
4496
4496
///
4497
4497
/// `refining_impl_trait` is a lint group composed of two lints:
4498
4498
///
4499
- /// * `refining_impl_trait_reachable`, for refinements that are publicly
4499
+ /// * `refining_impl_trait_reachable`, for refinements that are publically
4500
4500
/// reachable outside a crate, and
4501
4501
/// * `refining_impl_trait_internal`, for refinements that are only visible
4502
4502
/// within a crate.
Original file line number Diff line number Diff line change @@ -1626,8 +1626,8 @@ mod prim_ref {}
1626
1626
/// let ptr: fn(usize) -> usize = add_one;
1627
1627
/// assert_eq!(ptr(5), 6);
1628
1628
///
1629
- /// let closure : fn(usize) -> usize = |x| x + 5;
1630
- /// assert_eq!(closure (5), 10);
1629
+ /// let clos : fn(usize) -> usize = |x| x + 5;
1630
+ /// assert_eq!(clos (5), 10);
1631
1631
/// ```
1632
1632
///
1633
1633
/// In addition to varying based on their signature, function pointers come in two flavors: safe
Original file line number Diff line number Diff line change @@ -271,8 +271,8 @@ impl Instant {
271
271
// https://www.manpagez.com/man/3/clock_gettime/
272
272
//
273
273
// CLOCK_UPTIME_RAW clock that increments monotonically, in the same man-
274
- // ner as CLOCK_MONOTONIC_RAW, but that does not increment
275
- // while the system is asleep. The returned value
274
+ // ner as CLOCK_MONOTONIC_RAW, but that does not incre-
275
+ // ment while the system is asleep. The returned value
276
276
// is identical to the result of mach_absolute_time()
277
277
// after the appropriate mach_timebase conversion is
278
278
// applied.
Original file line number Diff line number Diff line change @@ -15,31 +15,28 @@ extend-exclude = [
15
15
# Add exclusions here, lines should be like `x = "x"`, where `x` is excluded word.
16
16
#
17
17
# Also see docs: https://github.com/crate-ci/typos/blob/v1.28.2/docs/reference.md
18
- thir = " thir"
19
- padd = " padd"
20
18
rplace = " rplace"
21
19
arange = " arange"
22
- rela = " rela"
23
20
unstalled = " unstalled"
24
21
taits = " taits"
25
22
Datas = " Datas"
26
23
splitted = " splitted"
27
24
leafs = " leafs"
28
- Lits = " Lits"
29
25
makro = " makro"
30
26
optin = " optin"
31
- parm = " parm"
32
27
unparseable = " unparseable"
33
- matcheable = " matcheable"
34
28
smove = " smove"
35
29
childs = " childs"
36
30
filetimes = " filetimes"
37
31
misformed = " misformed"
38
32
targetting = " targetting"
39
33
publically = " publically"
40
34
35
+ # this can be valid word, depends on dictionary edition
36
+ # matcheable = "matcheable"
37
+
41
38
[default .extend-identifiers ]
42
- # Entries goes here if typo is part of some existing ident
39
+ # An entry goes here if the typo is part of some existing ident
43
40
# where you want to keep it, but don't want to allow
44
41
# such typos everywhere.
45
42
#
@@ -53,13 +50,12 @@ ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC = "ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC"
53
50
ERROR_MCA_OCCURED = " ERROR_MCA_OCCURED"
54
51
ERRNO_ACCES = " ERRNO_ACCES"
55
52
tolen = " tolen"
56
- pard = " pard"
57
53
numer = " numer"
58
54
59
55
[default ]
60
56
extend-ignore-words-re = [
61
- # words with length <= 3 chars is likely noise
62
- " ^[a-zA-Z]{1,3 }$" ,
57
+ # words with length <= 4 chars is likely noise
58
+ " ^[a-zA-Z]{1,4 }$" ,
63
59
]
64
60
65
61
extend-ignore-re = [
You can’t perform that action at this time.
0 commit comments