File tree 4 files changed +13
-17
lines changed
compiler/rustc_lint_defs/src
4 files changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -1227,7 +1227,7 @@ declare_lint! {
1227
1227
///
1228
1228
/// ### Explanation
1229
1229
///
1230
- /// A public `use` declaration should not be used to publicly re-export a
1230
+ /// A public `use` declaration should not be used to publically re-export a
1231
1231
/// private `extern crate`. `pub extern crate` should be used instead.
1232
1232
///
1233
1233
/// This was historically allowed, but is not the intended behavior
@@ -4484,7 +4484,7 @@ declare_lint! {
4484
4484
///
4485
4485
/// `refining_impl_trait` is a lint group composed of two lints:
4486
4486
///
4487
- /// * `refining_impl_trait_reachable`, for refinements that are publicly
4487
+ /// * `refining_impl_trait_reachable`, for refinements that are publically
4488
4488
/// reachable outside a crate, and
4489
4489
/// * `refining_impl_trait_internal`, for refinements that are only visible
4490
4490
/// within a crate.
@@ -4540,7 +4540,7 @@ declare_lint! {
4540
4540
///
4541
4541
/// `refining_impl_trait` is a lint group composed of two lints:
4542
4542
///
4543
- /// * `refining_impl_trait_reachable`, for refinements that are publicly
4543
+ /// * `refining_impl_trait_reachable`, for refinements that are publically
4544
4544
/// reachable outside a crate, and
4545
4545
/// * `refining_impl_trait_internal`, for refinements that are only visible
4546
4546
/// 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 @@ -261,8 +261,8 @@ impl Instant {
261
261
// https://www.manpagez.com/man/3/clock_gettime/
262
262
//
263
263
// CLOCK_UPTIME_RAW clock that increments monotonically, in the same man-
264
- // ner as CLOCK_MONOTONIC_RAW, but that does not increment
265
- // while the system is asleep. The returned value
264
+ // ner as CLOCK_MONOTONIC_RAW, but that does not incre-
265
+ // ment while the system is asleep. The returned value
266
266
// is identical to the result of mach_absolute_time()
267
267
// after the appropriate mach_timebase conversion is
268
268
// 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