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 @@ -1227,7 +1227,7 @@ declare_lint! {
12271227 ///
12281228 /// ### Explanation
12291229 ///
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
12311231 /// private `extern crate`. `pub extern crate` should be used instead.
12321232 ///
12331233 /// This was historically allowed, but is not the intended behavior
@@ -4484,7 +4484,7 @@ declare_lint! {
44844484 ///
44854485 /// `refining_impl_trait` is a lint group composed of two lints:
44864486 ///
4487- /// * `refining_impl_trait_reachable`, for refinements that are publicly
4487+ /// * `refining_impl_trait_reachable`, for refinements that are publically
44884488 /// reachable outside a crate, and
44894489 /// * `refining_impl_trait_internal`, for refinements that are only visible
44904490 /// within a crate.
@@ -4540,7 +4540,7 @@ declare_lint! {
45404540 ///
45414541 /// `refining_impl_trait` is a lint group composed of two lints:
45424542 ///
4543- /// * `refining_impl_trait_reachable`, for refinements that are publicly
4543+ /// * `refining_impl_trait_reachable`, for refinements that are publically
45444544 /// reachable outside a crate, and
45454545 /// * `refining_impl_trait_internal`, for refinements that are only visible
45464546 /// within a crate.
Original file line number Diff line number Diff line change @@ -1628,8 +1628,8 @@ mod prim_ref {}
16281628/// let ptr: fn(usize) -> usize = add_one;
16291629/// assert_eq!(ptr(5), 6);
16301630///
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);
16331633/// ```
16341634///
16351635/// 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 {
261261 // https://www.manpagez.com/man/3/clock_gettime/
262262 //
263263 // 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
266266 // is identical to the result of mach_absolute_time()
267267 // after the appropriate mach_timebase conversion is
268268 // applied.
Original file line number Diff line number Diff line change @@ -15,31 +15,28 @@ extend-exclude = [
1515# Add exclusions here, lines should be like `x = "x"`, where `x` is excluded word.
1616#
1717# Also see docs: https://github.com/crate-ci/typos/blob/v1.28.2/docs/reference.md
18- thir = " thir"
19- padd = " padd"
2018rplace = " rplace"
2119arange = " arange"
22- rela = " rela"
2320unstalled = " unstalled"
2421taits = " taits"
2522Datas = " Datas"
2623splitted = " splitted"
2724leafs = " leafs"
28- Lits = " Lits"
2925makro = " makro"
3026optin = " optin"
31- parm = " parm"
3227unparseable = " unparseable"
33- matcheable = " matcheable"
3428smove = " smove"
3529childs = " childs"
3630filetimes = " filetimes"
3731misformed = " misformed"
3832targetting = " targetting"
3933publically = " publically"
4034
35+ # this can be valid word, depends on dictionary edition
36+ # matcheable = "matcheable"
37+
4138[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
4340# where you want to keep it, but don't want to allow
4441# such typos everywhere.
4542#
@@ -53,13 +50,12 @@ ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC = "ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC"
5350ERROR_MCA_OCCURED = " ERROR_MCA_OCCURED"
5451ERRNO_ACCES = " ERRNO_ACCES"
5552tolen = " tolen"
56- pard = " pard"
5753numer = " numer"
5854
5955[default ]
6056extend-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 }$" ,
6359]
6460
6561extend-ignore-re = [
You can’t perform that action at this time.
0 commit comments