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 @@ -1224,7 +1224,7 @@ declare_lint! {
1224
1224
///
1225
1225
/// ### Explanation
1226
1226
///
1227
- /// A public `use` declaration should not be used to publicly re-export a
1227
+ /// A public `use` declaration should not be used to publically re-export a
1228
1228
/// private `extern crate`. `pub extern crate` should be used instead.
1229
1229
///
1230
1230
/// This was historically allowed, but is not the intended behavior
@@ -4394,7 +4394,7 @@ declare_lint! {
4394
4394
///
4395
4395
/// `refining_impl_trait` is a lint group composed of two lints:
4396
4396
///
4397
- /// * `refining_impl_trait_reachable`, for refinements that are publicly
4397
+ /// * `refining_impl_trait_reachable`, for refinements that are publically
4398
4398
/// reachable outside a crate, and
4399
4399
/// * `refining_impl_trait_internal`, for refinements that are only visible
4400
4400
/// within a crate.
@@ -4450,7 +4450,7 @@ declare_lint! {
4450
4450
///
4451
4451
/// `refining_impl_trait` is a lint group composed of two lints:
4452
4452
///
4453
- /// * `refining_impl_trait_reachable`, for refinements that are publicly
4453
+ /// * `refining_impl_trait_reachable`, for refinements that are publically
4454
4454
/// reachable outside a crate, and
4455
4455
/// * `refining_impl_trait_internal`, for refinements that are only visible
4456
4456
/// within a crate.
Original file line number Diff line number Diff line change @@ -1690,8 +1690,8 @@ mod prim_ref {}
1690
1690
/// let ptr: fn(usize) -> usize = add_one;
1691
1691
/// assert_eq!(ptr(5), 6);
1692
1692
///
1693
- /// let closure : fn(usize) -> usize = |x| x + 5;
1694
- /// assert_eq!(closure (5), 10);
1693
+ /// let clos : fn(usize) -> usize = |x| x + 5;
1694
+ /// assert_eq!(clos (5), 10);
1695
1695
/// ```
1696
1696
///
1697
1697
/// 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 @@ -265,8 +265,8 @@ impl Instant {
265
265
// https://www.manpagez.com/man/3/clock_gettime/
266
266
//
267
267
// CLOCK_UPTIME_RAW clock that increments monotonically, in the same man-
268
- // ner as CLOCK_MONOTONIC_RAW, but that does not increment
269
- // while the system is asleep. The returned value
268
+ // ner as CLOCK_MONOTONIC_RAW, but that does not incre-
269
+ // ment while the system is asleep. The returned value
270
270
// is identical to the result of mach_absolute_time()
271
271
// after the appropriate mach_timebase conversion is
272
272
// 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