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
@@ -4476,7 +4476,7 @@ declare_lint! {
4476
4476
///
4477
4477
/// `refining_impl_trait` is a lint group composed of two lints:
4478
4478
///
4479
- /// * `refining_impl_trait_reachable`, for refinements that are publicly
4479
+ /// * `refining_impl_trait_reachable`, for refinements that are publically
4480
4480
/// reachable outside a crate, and
4481
4481
/// * `refining_impl_trait_internal`, for refinements that are only visible
4482
4482
/// within a crate.
@@ -4532,7 +4532,7 @@ declare_lint! {
4532
4532
///
4533
4533
/// `refining_impl_trait` is a lint group composed of two lints:
4534
4534
///
4535
- /// * `refining_impl_trait_reachable`, for refinements that are publicly
4535
+ /// * `refining_impl_trait_reachable`, for refinements that are publically
4536
4536
/// reachable outside a crate, and
4537
4537
/// * `refining_impl_trait_internal`, for refinements that are only visible
4538
4538
/// within a crate.
Original file line number Diff line number Diff line change @@ -1628,8 +1628,8 @@ mod prim_ref {}
1628
1628
/// let ptr: fn(usize) -> usize = add_one;
1629
1629
/// assert_eq!(ptr(5), 6);
1630
1630
///
1631
- /// let closure : fn(usize) -> usize = |x| x + 5;
1632
- /// assert_eq!(closure (5), 10);
1631
+ /// let clos : fn(usize) -> usize = |x| x + 5;
1632
+ /// assert_eq!(clos (5), 10);
1633
1633
/// ```
1634
1634
///
1635
1635
/// 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 @@ -260,8 +260,8 @@ impl Instant {
260
260
// https://www.manpagez.com/man/3/clock_gettime/
261
261
//
262
262
// CLOCK_UPTIME_RAW clock that increments monotonically, in the same man-
263
- // ner as CLOCK_MONOTONIC_RAW, but that does not increment
264
- // while the system is asleep. The returned value
263
+ // ner as CLOCK_MONOTONIC_RAW, but that does not incre-
264
+ // ment while the system is asleep. The returned value
265
265
// is identical to the result of mach_absolute_time()
266
266
// after the appropriate mach_timebase conversion is
267
267
// 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