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
@@ -4488,7 +4488,7 @@ declare_lint! {
44884488 ///
44894489 /// `refining_impl_trait` is a lint group composed of two lints:
44904490 ///
4491- /// * `refining_impl_trait_reachable`, for refinements that are publicly
4491+ /// * `refining_impl_trait_reachable`, for refinements that are publically
44924492 /// reachable outside a crate, and
44934493 /// * `refining_impl_trait_internal`, for refinements that are only visible
44944494 /// within a crate.
@@ -4544,7 +4544,7 @@ declare_lint! {
45444544 ///
45454545 /// `refining_impl_trait` is a lint group composed of two lints:
45464546 ///
4547- /// * `refining_impl_trait_reachable`, for refinements that are publicly
4547+ /// * `refining_impl_trait_reachable`, for refinements that are publically
45484548 /// reachable outside a crate, and
45494549 /// * `refining_impl_trait_internal`, for refinements that are only visible
45504550 /// 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 @@ -260,8 +260,8 @@ impl Instant {
260260 // https://www.manpagez.com/man/3/clock_gettime/
261261 //
262262 // 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
265265 // is identical to the result of mach_absolute_time()
266266 // after the appropriate mach_timebase conversion is
267267 // 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