Skip to content

Commit 5a84ad2

Browse files
committed
Fixed Typo
revert merge request: Auto merge of rust-lang#9817 - mgrachev:patch-1, r=Manishearth 43a6d0b This revert merge request !2
1 parent 4b52514 commit 5a84ad2

File tree

963 files changed

+20115
-10953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

963 files changed

+20115
-10953
lines changed

CHANGELOG.md

Lines changed: 3 additions & 157 deletions
Original file line numberDiff line numberDiff line change
@@ -4,157 +4,13 @@ All notable changes to this project will be documented in this file.
44
See [Changelog Update](book/src/development/infrastructure/changelog_update.md) if you want to update this
55
document.
66

7-
## Unreleased / Beta / In Rust Nightly
7+
## Unreleased / In Rust Nightly
88

9-
[b52fb523...master](https://github.com/rust-lang/rust-clippy/compare/b52fb523...master)
10-
11-
## Rust 1.65
12-
13-
Current stable, released 2022-11-03
14-
15-
[3c7e7dbc...b52fb523](https://github.com/rust-lang/rust-clippy/compare/3c7e7dbc...b52fb523)
16-
17-
### Important Changes
18-
19-
* Clippy now has an `--explain <LINT>` command to show the lint description in the console
20-
[#8952](https://github.com/rust-lang/rust-clippy/pull/8952)
21-
22-
### New Lints
23-
24-
* [`unused_peekable`]
25-
[#9258](https://github.com/rust-lang/rust-clippy/pull/9258)
26-
* [`collapsible_str_replace`]
27-
[#9269](https://github.com/rust-lang/rust-clippy/pull/9269)
28-
* [`manual_string_new`]
29-
[#9295](https://github.com/rust-lang/rust-clippy/pull/9295)
30-
* [`iter_on_empty_collections`]
31-
[#9187](https://github.com/rust-lang/rust-clippy/pull/9187)
32-
* [`iter_on_single_items`]
33-
[#9187](https://github.com/rust-lang/rust-clippy/pull/9187)
34-
* [`bool_to_int_with_if`]
35-
[#9412](https://github.com/rust-lang/rust-clippy/pull/9412)
36-
* [`multi_assignments`]
37-
[#9379](https://github.com/rust-lang/rust-clippy/pull/9379)
38-
* [`result_large_err`]
39-
[#9373](https://github.com/rust-lang/rust-clippy/pull/9373)
40-
* [`partialeq_to_none`]
41-
[#9288](https://github.com/rust-lang/rust-clippy/pull/9288)
42-
* [`suspicious_to_owned`]
43-
[#8984](https://github.com/rust-lang/rust-clippy/pull/8984)
44-
* [`cast_slice_from_raw_parts`]
45-
[#9247](https://github.com/rust-lang/rust-clippy/pull/9247)
46-
* [`manual_instant_elapsed`]
47-
[#9264](https://github.com/rust-lang/rust-clippy/pull/9264)
48-
49-
### Moves and Deprecations
50-
51-
* Moved [`significant_drop_in_scrutinee`] to `nursery` (now allow-by-default)
52-
[#9302](https://github.com/rust-lang/rust-clippy/pull/9302)
53-
* Rename `logic_bug` to [`overly_complex_bool_expr`]
54-
[#9306](https://github.com/rust-lang/rust-clippy/pull/9306)
55-
* Rename `arithmetic` to [`arithmetic_side_effects`]
56-
[#9443](https://github.com/rust-lang/rust-clippy/pull/9443)
57-
* Moved [`only_used_in_recursion`] to complexity (now warn-by-default)
58-
[#8804](https://github.com/rust-lang/rust-clippy/pull/8804)
59-
* Moved [`assertions_on_result_states`] to restriction (now allow-by-default)
60-
[#9273](https://github.com/rust-lang/rust-clippy/pull/9273)
61-
* Renamed `blacklisted_name` to [`disallowed_names`]
62-
[#8974](https://github.com/rust-lang/rust-clippy/pull/8974)
63-
64-
### Enhancements
65-
66-
* [`option_if_let_else`]: Now also checks for match expressions
67-
[#8696](https://github.com/rust-lang/rust-clippy/pull/8696)
68-
* [`explicit_auto_deref`]: Now lints on implicit returns in closures
69-
[#9126](https://github.com/rust-lang/rust-clippy/pull/9126)
70-
* [`needless_borrow`]: Now considers trait implementations
71-
[#9136](https://github.com/rust-lang/rust-clippy/pull/9136)
72-
* [`suboptimal_flops`], [`imprecise_flops`]: Now lint on constant expressions
73-
[#9404](https://github.com/rust-lang/rust-clippy/pull/9404)
74-
* [`if_let_mutex`]: Now detects mutex behind references and warns about deadlocks
75-
[#9318](https://github.com/rust-lang/rust-clippy/pull/9318)
76-
77-
### False Positive Fixes
78-
79-
* [`unit_arg`] [`default_trait_access`] [`missing_docs_in_private_items`]: No longer
80-
trigger in code generated from proc-macros
81-
[#8694](https://github.com/rust-lang/rust-clippy/pull/8694)
82-
* [`unwrap_used`]: Now lints uses of `unwrap_err`
83-
[#9338](https://github.com/rust-lang/rust-clippy/pull/9338)
84-
* [`expect_used`]: Now lints uses of `expect_err`
85-
[#9338](https://github.com/rust-lang/rust-clippy/pull/9338)
86-
* [`transmute_undefined_repr`]: Now longer lints if the first field is compatible
87-
with the other type
88-
[#9287](https://github.com/rust-lang/rust-clippy/pull/9287)
89-
* [`unnecessary_to_owned`]: No longer lints, if type change cased errors in
90-
the caller function
91-
[#9424](https://github.com/rust-lang/rust-clippy/pull/9424)
92-
* [`match_like_matches_macro`]: No longer lints, if there are comments inside the
93-
match expression
94-
[#9276](https://github.com/rust-lang/rust-clippy/pull/9276)
95-
* [`partialeq_to_none`]: No longer trigger in code generated from macros
96-
[#9389](https://github.com/rust-lang/rust-clippy/pull/9389)
97-
* [`arithmetic_side_effects`]: No longer lints expressions that only use literals
98-
[#9365](https://github.com/rust-lang/rust-clippy/pull/9365)
99-
* [`explicit_auto_deref`]: Now ignores references on block expressions when the type
100-
is `Sized`, on `dyn Trait` returns and when the suggestion is non-trivial
101-
[#9126](https://github.com/rust-lang/rust-clippy/pull/9126)
102-
* [`trait_duplication_in_bounds`]: Now better tracks bounds to avoid false positives
103-
[#9167](https://github.com/rust-lang/rust-clippy/pull/9167)
104-
* [`format_in_format_args`]: Now suggests cases where the result is formatted again
105-
[#9349](https://github.com/rust-lang/rust-clippy/pull/9349)
106-
* [`only_used_in_recursion`]: No longer lints on function without recursions and
107-
takes external functions into account
108-
[#8804](https://github.com/rust-lang/rust-clippy/pull/8804)
109-
* [`missing_const_for_fn`]: No longer lints in proc-macros
110-
[#9308](https://github.com/rust-lang/rust-clippy/pull/9308)
111-
* [`non_ascii_literal`]: Allow non-ascii comments in tests and make sure `#[allow]`
112-
attributes work in tests
113-
[#9327](https://github.com/rust-lang/rust-clippy/pull/9327)
114-
* [`question_mark`]: No longer lint `if let`s with subpatterns
115-
[#9348](https://github.com/rust-lang/rust-clippy/pull/9348)
116-
* [`needless_collect`]: No longer lints in loops
117-
[#8992](https://github.com/rust-lang/rust-clippy/pull/8992)
118-
* [`mut_mutex_lock`]: No longer lints if the mutex is behind an immutable reference
119-
[#9418](https://github.com/rust-lang/rust-clippy/pull/9418)
120-
* [`needless_return`]: Now ignores returns with arguments
121-
[#9381](https://github.com/rust-lang/rust-clippy/pull/9381)
122-
* [`range_plus_one`], [`range_minus_one`]: Now ignores code with macros
123-
[#9446](https://github.com/rust-lang/rust-clippy/pull/9446)
124-
* [`assertions_on_result_states`]: No longer lints on the unit type
125-
[#9273](https://github.com/rust-lang/rust-clippy/pull/9273)
126-
127-
### Suggestion Fixes/Improvements
128-
129-
* [`unwrap_or_else_default`]: Now suggests `unwrap_or_default()` for empty strings
130-
[#9421](https://github.com/rust-lang/rust-clippy/pull/9421)
131-
* [`if_then_some_else_none`]: Now also suggests `bool::then_some`
132-
[#9289](https://github.com/rust-lang/rust-clippy/pull/9289)
133-
* [`redundant_closure_call`]: The suggestion now works for async closures
134-
[#9053](https://github.com/rust-lang/rust-clippy/pull/9053)
135-
* [`suboptimal_flops`]: Now suggests parenthesis when they are required
136-
[#9394](https://github.com/rust-lang/rust-clippy/pull/9394)
137-
* [`case_sensitive_file_extension_comparisons`]: Now suggests `map_or(..)` instead of `map(..).unwrap_or`
138-
[#9341](https://github.com/rust-lang/rust-clippy/pull/9341)
139-
* Deprecated configuration values can now be updated automatically
140-
[#9252](https://github.com/rust-lang/rust-clippy/pull/9252)
141-
* [`or_fun_call`]: Now suggest `Entry::or_default` for `Entry::or_insert(Default::default())`
142-
[#9342](https://github.com/rust-lang/rust-clippy/pull/9342)
143-
* [`unwrap_used`]: Only suggests `expect` if [`expect_used`] is allowed
144-
[#9223](https://github.com/rust-lang/rust-clippy/pull/9223)
145-
146-
### ICE Fixes
147-
148-
* Fix ICE in [`useless_format`] for literals
149-
[#9406](https://github.com/rust-lang/rust-clippy/pull/9406)
150-
* Fix infinite loop in [`vec_init_then_push`]
151-
[#9441](https://github.com/rust-lang/rust-clippy/pull/9441)
152-
* Fix ICE when reading literals with weird proc-macro spans
153-
[#9303](https://github.com/rust-lang/rust-clippy/pull/9303)
9+
[3c7e7dbc...master](https://github.com/rust-lang/rust-clippy/compare/3c7e7dbc...master)
15410

15511
## Rust 1.64
15612

157-
Released 2022-09-22
13+
Current stable, released 2022-09-22
15814

15915
[d7b5cbf0...3c7e7dbc](https://github.com/rust-lang/rust-clippy/compare/d7b5cbf0...3c7e7dbc)
16016

@@ -4047,7 +3903,6 @@ Released 2018-09-13
40473903
[`format_push_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#format_push_string
40483904
[`from_iter_instead_of_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_iter_instead_of_collect
40493905
[`from_over_into`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
4050-
[`from_raw_with_void_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_raw_with_void_ptr
40513906
[`from_str_radix_10`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10
40523907
[`future_not_send`]: https://rust-lang.github.io/rust-clippy/master/index.html#future_not_send
40533908
[`get_first`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_first
@@ -4123,7 +3978,6 @@ Released 2018-09-13
41233978
[`len_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
41243979
[`let_and_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
41253980
[`let_underscore_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_drop
4126-
[`let_underscore_future`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_future
41273981
[`let_underscore_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_lock
41283982
[`let_underscore_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_must_use
41293983
[`let_unit_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
@@ -4142,8 +3996,6 @@ Released 2018-09-13
41423996
[`manual_find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_find_map
41433997
[`manual_flatten`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten
41443998
[`manual_instant_elapsed`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_instant_elapsed
4145-
[`manual_is_ascii_check`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check
4146-
[`manual_let_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_let_else
41473999
[`manual_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
41484000
[`manual_memcpy`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy
41494001
[`manual_non_exhaustive`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
@@ -4197,7 +4049,6 @@ Released 2018-09-13
41974049
[`missing_panics_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
41984050
[`missing_safety_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
41994051
[`missing_spin_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_spin_loop
4200-
[`missing_trait_methods`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_trait_methods
42014052
[`mistyped_literal_suffixes`]: https://rust-lang.github.io/rust-clippy/master/index.html#mistyped_literal_suffixes
42024053
[`mixed_case_hex_literals`]: https://rust-lang.github.io/rust-clippy/master/index.html#mixed_case_hex_literals
42034054
[`mixed_read_write_in_expression`]: https://rust-lang.github.io/rust-clippy/master/index.html#mixed_read_write_in_expression
@@ -4283,7 +4134,6 @@ Released 2018-09-13
42834134
[`panic_in_result_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic_in_result_fn
42844135
[`panic_params`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic_params
42854136
[`panicking_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#panicking_unwrap
4286-
[`partial_pub_fields`]: https://rust-lang.github.io/rust-clippy/master/index.html#partial_pub_fields
42874137
[`partialeq_ne_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl
42884138
[`partialeq_to_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none
42894139
[`path_buf_push_overwrite`]: https://rust-lang.github.io/rust-clippy/master/index.html#path_buf_push_overwrite
@@ -4346,8 +4196,6 @@ Released 2018-09-13
43464196
[`same_item_push`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_item_push
43474197
[`same_name_method`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_name_method
43484198
[`search_is_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some
4349-
[`seek_from_current`]: https://rust-lang.github.io/rust-clippy/master/index.html#seek_from_current
4350-
[`seek_to_start_instead_of_rewind`]: https://rust-lang.github.io/rust-clippy/master/index.html#seek_to_start_instead_of_rewind
43514199
[`self_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_assignment
43524200
[`self_named_constructors`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_named_constructors
43534201
[`self_named_module_files`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_named_module_files
@@ -4397,7 +4245,6 @@ Released 2018-09-13
43974245
[`suspicious_splitn`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_splitn
43984246
[`suspicious_to_owned`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_to_owned
43994247
[`suspicious_unary_op_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_unary_op_formatting
4400-
[`suspicious_xor_used_as_pow`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_xor_used_as_pow
44014248
[`swap_ptr_to_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#swap_ptr_to_ref
44024249
[`tabs_in_doc_comments`]: https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
44034250
[`temporary_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_assignment
@@ -4468,7 +4315,6 @@ Released 2018-09-13
44684315
[`unstable_as_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_slice
44694316
[`unused_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_async
44704317
[`unused_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_collect
4471-
[`unused_format_specs`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_format_specs
44724318
[`unused_io_amount`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
44734319
[`unused_label`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_label
44744320
[`unused_peekable`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_peekable

CODE_OF_CONDUCT.md

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,70 @@
11
# The Rust Code of Conduct
22

3-
The Code of Conduct for this repository [can be found online](https://www.rust-lang.org/conduct.html).
3+
A version of this document [can be found online](https://www.rust-lang.org/conduct.html).
4+
5+
## Conduct
6+
7+
**Contact**: [[email protected]](mailto:[email protected])
8+
9+
* We are committed to providing a friendly, safe and welcoming environment for all, regardless of level of experience,
10+
gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age,
11+
religion, nationality, or other similar characteristic.
12+
* On IRC, please avoid using overtly sexual nicknames or other nicknames that might detract from a friendly, safe and
13+
welcoming environment for all.
14+
* Please be kind and courteous. There's no need to be mean or rude.
15+
* Respect that people have differences of opinion and that every design or implementation choice carries a trade-off and
16+
numerous costs. There is seldom a right answer.
17+
* Please keep unstructured critique to a minimum. If you have solid ideas you want to experiment with, make a fork and
18+
see how it works.
19+
* We will exclude you from interaction if you insult, demean or harass anyone. That is not welcome behavior. We
20+
interpret the term "harassment" as including the definition in the <a href="http://citizencodeofconduct.org/">Citizen
21+
Code of Conduct</a>; if you have any lack of clarity about what might be included in that concept, please read their
22+
definition. In particular, we don't tolerate behavior that excludes people in socially marginalized groups.
23+
* Private harassment is also unacceptable. No matter who you are, if you feel you have been or are being harassed or
24+
made uncomfortable by a community member, please contact one of the channel ops or any of the [Rust moderation
25+
team][mod_team] immediately. Whether you're a regular contributor or a newcomer, we care about making this community a
26+
safe place for you and we've got your back.
27+
* Likewise any spamming, trolling, flaming, baiting or other attention-stealing behavior is not welcome.
28+
29+
## Moderation
30+
31+
32+
These are the policies for upholding our community's standards of conduct. If you feel that a thread needs moderation,
33+
please contact the [Rust moderation team][mod_team].
34+
35+
1. Remarks that violate the Rust standards of conduct, including hateful, hurtful, oppressive, or exclusionary remarks,
36+
are not allowed. (Cursing is allowed, but never targeting another user, and never in a hateful manner.)
37+
2. Remarks that moderators find inappropriate, whether listed in the code of conduct or not, are also not allowed.
38+
3. Moderators will first respond to such remarks with a warning.
39+
4. If the warning is unheeded, the user will be "kicked," i.e., kicked out of the communication channel to cool off.
40+
5. If the user comes back and continues to make trouble, they will be banned, i.e., indefinitely excluded.
41+
6. Moderators may choose at their discretion to un-ban the user if it was a first offense and they offer the offended
42+
party a genuine apology.
43+
7. If a moderator bans someone and you think it was unjustified, please take it up with that moderator, or with a
44+
different moderator, **in private**. Complaints about bans in-channel are not allowed.
45+
8. Moderators are held to a higher standard than other community members. If a moderator creates an inappropriate
46+
situation, they should expect less leeway than others.
47+
48+
In the Rust community we strive to go the extra step to look out for each other. Don't just aim to be technically
49+
unimpeachable, try to be your best self. In particular, avoid flirting with offensive or sensitive issues, particularly
50+
if they're off-topic; this all too often leads to unnecessary fights, hurt feelings, and damaged trust; worse, it can
51+
drive people away from the community entirely.
52+
53+
And if someone takes issue with something you said or did, resist the urge to be defensive. Just stop doing what it was
54+
they complained about and apologize. Even if you feel you were misinterpreted or unfairly accused, chances are good
55+
there was something you could've communicated better — remember that it's your responsibility to make your fellow
56+
Rustaceans comfortable. Everyone wants to get along and we are all here first and foremost because we want to talk about
57+
cool technology. You will find that people will be eager to assume good intent and forgive as long as you earn their
58+
trust.
59+
60+
The enforcement policies listed above apply to all official Rust venues; including official IRC channels (#rust,
61+
#rust-internals, #rust-tools, #rust-libs, #rustc, #rust-beginners, #rust-docs, #rust-community, #rust-lang, and #cargo);
62+
GitHub repositories under rust-lang, rust-lang-nursery, and rust-lang-deprecated; and all forums under rust-lang.org
63+
(users.rust-lang.org, internals.rust-lang.org). For other projects adopting the Rust Code of Conduct, please contact the
64+
maintainers of those projects for enforcement. If you wish to use this code of conduct for your own project, consider
65+
explicitly mentioning your moderation policy or making a copy with your own moderation policy so as to avoid confusion.
66+
67+
*Adapted from the [Node.js Policy on Trolling](http://blog.izs.me/post/30036893703/policy-on-trolling) as well as the
68+
[Contributor Covenant v1.3.0](https://www.contributor-covenant.org/version/1/3/0/).*
69+
70+
[mod_team]: https://www.rust-lang.org/team.html#Moderation-team

0 commit comments

Comments
 (0)