Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Clippy #95772

Merged
merged 123 commits into from
Apr 8, 2022
Merged
Changes from 1 commit
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
35b1453
`map_identity` checks for unneeded `.map_err`
dswij Mar 1, 2022
3d1f83e
`map_identity` Add tests for needless `.map_err`
dswij Mar 1, 2022
a944ccb
Check if lhs < rhs in modulos and emit
tysg Mar 11, 2022
65f96e2
Rework `undocumented_unsafe_blocks`
Jarcho Feb 19, 2022
30b3336
Don't lint `undocumented_unsafe_blocks` on bad proc-macro spans.
Jarcho Mar 15, 2022
2909b33
quick fix of issue#8542 for lint `[needless_match]`
J-ZhengLi Mar 16, 2022
4b12862
fix #8551, add test cases, and some code improvement
J-ZhengLi Mar 17, 2022
94c727e
Take &mut Diagnostic in emit_diagnostic.
cjgillot Mar 20, 2022
65a2669
Add `crate_in_macro_def` lint
smoelius Mar 24, 2022
6fc3850
update clippy stderr file
oli-obk Mar 24, 2022
8687205
Typo
smoelius Mar 24, 2022
1fa3d66
Merge commit 'd0cf3481a84e3aa68c2f185c460e282af36ebc42' into clippyup
flip1995 Mar 24, 2022
b7b0dad
Auto merge of #95273 - flip1995:clippyup, r=manishearth
bors Mar 24, 2022
854c3de
Update clippy helper function types
GrishaVar Mar 25, 2022
55feb4c
Changelog for Rust 1.60.0 :crab:
xFrednet Mar 24, 2022
8ebe766
Auto merge of #8582 - xFrednet:0000-changelog-1-60, r=Manishearth
bors Mar 25, 2022
610db04
Provide suggestion context in map_unit_fn
Alexendoo Mar 25, 2022
bca047d
specify serde version compatible with codebase
pitaj Mar 25, 2022
2d85270
Auto merge of #95149 - cjgillot:once-diag, r=estebank
bors Mar 26, 2022
21eae8c
fix `indexing_slicing` with const
pitaj Mar 26, 2022
96f4e1c
add #[must_use] to functions of slice and its iterators.
jendrikw Mar 26, 2022
41f1413
add #[must_use] to functions of slice and its iterators.
jendrikw Mar 26, 2022
c687f65
Do not fire `panic` in a constant environment
c410-f3r Mar 26, 2022
af8ed04
Rustfmt
c410-f3r Mar 26, 2022
a7da8a6
Auto merge of #95274 - jendrikw:slice-must-use, r=Dylan-DPC
bors Mar 26, 2022
52b563b
Emit lint when rhs is negative
tysg Mar 27, 2022
59c0f29
Auto merge of #8519 - tysg:redundant-modulo, r=giraffate
bors Mar 28, 2022
6206086
Auto merge of #8487 - dswij:8478, r=giraffate
bors Mar 28, 2022
ec851b8
First submit
Jaic1 Mar 28, 2022
cb307bb
Address review comments
smoelius Mar 28, 2022
e5fa22e
Fix version in changelog
giraffate Mar 28, 2022
46e832e
Revert "Auto merge of #93893 - oli-obk:sad_revert, r=oli-obk"
oli-obk Feb 14, 2022
b3535a1
Remove opaque type obligation and just register opaque types as they …
oli-obk Feb 17, 2022
448a26d
improve parent expr check
J-ZhengLi Mar 29, 2022
c22b7b8
Fix ICE for `iter_overeager_cloned`
giraffate Mar 29, 2022
e01897e
Remember mutability in `DefKind::Static`.
cjgillot Mar 29, 2022
9a02386
Allow running `cargo dev lint` on a package directory
Alexendoo Mar 29, 2022
148b593
get clippy to compile again
lcnr Mar 18, 2022
104ba47
clippy: nameres for primitive type impls
lcnr Mar 30, 2022
d9819c3
Auto merge of #8584 - Alexendoo:map-unit-fn-context, r=Manishearth
bors Mar 30, 2022
e1ddf29
Auto merge of #8586 - pitaj:fix-8378, r=flip1995
bors Mar 30, 2022
0031f69
Auto merge of #8592 - c410-f3r:stuff, r=flip1995
bors Mar 30, 2022
df7c253
Auto merge of #8597 - giraffate:fix_changelog, r=xFrednet
bors Mar 30, 2022
9b30453
Update clippy_lints/src/crate_in_macro_def.rs
smoelius Mar 30, 2022
abc221e
Update clippy_lints/src/crate_in_macro_def.rs
smoelius Mar 30, 2022
75dc406
Update clippy_lints/src/crate_in_macro_def.rs
smoelius Mar 30, 2022
d6eb82c
Move `crate_in_macro_def` to suspicious
smoelius Mar 30, 2022
aaf04dc
Fix error message in crate_in_macro_def.stderr
smoelius Mar 30, 2022
fe7254f
Auto merge of #8576 - smoelius:crate_in_macro_def, r=llogiq
bors Mar 30, 2022
c0a5693
Auto merge of #8602 - giraffate:fix_ice_for_iter_overeager_cloned, r=…
bors Mar 30, 2022
10a6d87
Handle relative paths in module_files lints
Alexendoo Mar 30, 2022
d6f05c6
Don't warn int-to-char transmutes in const contexts
SabrinaJewson Mar 30, 2022
528ada9
add unit_like_struct_brackets
FoseFx Mar 27, 2022
9be3945
fix existing clippy tests
FoseFx Mar 27, 2022
315521a
fix uitests
FoseFx Mar 27, 2022
1a5ff38
fix godfood test
FoseFx Mar 27, 2022
7192297
additional checks for conditionally compiled code
FoseFx Mar 27, 2022
33383a4
use span_suggestion_hidden
FoseFx Mar 27, 2022
37d5a62
changes after review
FoseFx Mar 28, 2022
2953cba
unit_like_struct_brackets -> empty_structs_with_brackets
FoseFx Mar 28, 2022
e552267
style -> pedantic
FoseFx Mar 28, 2022
49a9740
update description
FoseFx Mar 30, 2022
0434b85
pedantic -> restriction
FoseFx Mar 30, 2022
db5739a
Auto merge of #8610 - SabrinaJewson:transmute-int-to-char-const, r=xF…
bors Mar 30, 2022
7a80c23
Suggest from_utf8_unchecked in const contexts
SabrinaJewson Mar 30, 2022
71c1e87
Auto merge of #95436 - cjgillot:static-mut, r=oli-obk
bors Mar 30, 2022
7af3565
Rollup merge of #95251 - GrishaVar:hashes-u16-to-u8, r=dtolnay
Dylan-DPC Mar 30, 2022
bb5b250
Auto merge of #95501 - Dylan-DPC:rollup-arx6sdc, r=Dylan-DPC
bors Mar 31, 2022
11045f9
Don't unnecessarily suggest unsafe block
SabrinaJewson Apr 1, 2022
3bbb3e3
single_element_loop: handle arrays for Edition2021
pitaj Apr 1, 2022
f6b2992
Auto merge of #8616 - pitaj:single_element_loop_arrays, r=llogiq
bors Apr 1, 2022
b3f8415
Remove regex dependency from clippy_dev
Jarcho Mar 29, 2022
7025283
Remove cargo_metadata dependency from clippy_dev
Jarcho Mar 29, 2022
ae5af0c
Remove cargo_metadata dependency from clippy
Jarcho Mar 29, 2022
17c8bee
Add a couple of examples to `undocumented_unsafe_blocks`
Jarcho Apr 2, 2022
baaddf2
Auto merge of #8611 - Alexendoo:module-files-relative-paths, r=llogiq
bors Apr 2, 2022
85b88be
Auto merge of #8605 - Jarcho:remove-deps, r=xFrednet
bors Apr 2, 2022
515b4ec
Run fmt test before compile-test/dogfood
Alexendoo Apr 2, 2022
58833e5
is_unit_like_struct -> has_brackets
FoseFx Apr 4, 2022
1cec8b3
Auto merge of #8594 - FoseFx:unit_like_struct_brackets, r=giraffate
bors Apr 4, 2022
190f0de
Auto merge of #8450 - Jarcho:unsafe_blocks_8449, r=giraffate
bors Apr 4, 2022
5cd711b
Add lints `drop_non_drop` and `forget_non_drop`
Jarcho Apr 4, 2022
e4fc15e
Don't lint `cast_ptr_alignment` when used for unaligned reads and writes
Jarcho Apr 4, 2022
9fd1cde
Auto merge of #8632 - Jarcho:cast_ptr_alignment, r=llogiq
bors Apr 4, 2022
764dd13
Escape `mod.rs` file mentions to avoid links in our documentation
xFrednet Apr 4, 2022
8ec7ba4
Auto merge of #8633 - xFrednet:8627-escape-mod-rs, r=Manishearth
bors Apr 4, 2022
c8b9e85
span: move `MultiSpan`
davidtwco Mar 24, 2022
41d1340
errors: implement fallback diagnostic translation
davidtwco Mar 26, 2022
865386e
errors: implement sysroot/testing bundle loading
davidtwco Mar 28, 2022
ba718bb
session: opt for enabling directionality markers
davidtwco Apr 3, 2022
f8c2e6d
Add documentation on how to do a minimal changelog update
flip1995 Apr 5, 2022
01ea624
Auto merge of #8607 - Alexendoo:cargo-dev-lint-dir, r=flip1995,giraffate
bors Apr 5, 2022
511752f
Auto merge of #8620 - Alexendoo:test-fmt-first, r=flip1995
bors Apr 5, 2022
1582e7b
fix mispelling in diagnostic message of bytes_nth
oppiliappan Feb 8, 2022
938b9fd
Auto merge of #8403 - nerdypepper:fix/diagnostic-message-mispelling, …
bors Apr 5, 2022
9a09506
Auto merge of #8636 - flip1995:release_changelog_quick_update, r=xFre…
bors Apr 5, 2022
41f2ecc
Auto merge of #8588 - pitaj:fix-8348, r=flip1995
bors Apr 6, 2022
880ff24
Auto merge of #8596 - Jaic1:unnecessary_cast, r=flip1995
bors Apr 6, 2022
41ef4f7
Report `from_utf8` suggestion as maybe incorrect
SabrinaJewson Apr 6, 2022
cf1e2e9
Auto merge of #8612 - SabrinaJewson:suggest-from-utf8-unchecked-in-co…
bors Apr 6, 2022
85b081b
code refractor for `[needless_match]`
J-ZhengLi Apr 6, 2022
1ad6442
update unnecessary_join documentation
yoav-lavi Apr 6, 2022
30019d1
Auto merge of #8644 - yoav-lavi:squashed-master, r=flip1995
bors Apr 6, 2022
81e004a
Auto merge of #8549 - J-ZhengLi:issue8542, r=llogiq
bors Apr 6, 2022
cebe575
Add .err().expect() lint
b-NC Mar 29, 2022
a7125b0
Fix mistakes in documentation :
b-NC Apr 6, 2022
409a936
Auto merge of #8606 - InfRandomness:err()-expect()-lint, r=xFrednet
bors Apr 6, 2022
0d66404
Auto merge of #8630 - Jarcho:forget_non_drop, r=Manishearth
bors Apr 6, 2022
b0edbca
new lint cast_abs_to_unsigned
pbor Apr 4, 2022
f2bbb5f
conf: fix lint name in comment
pbor Apr 7, 2022
182b7c3
Fix `as_deref_mut` false positives in `needless_option_as_deref`
Alexendoo Apr 6, 2022
650a0e5
Auto merge of #8646 - Alexendoo:option-as-deref-mut, r=giraffate
bors Apr 7, 2022
574bf88
Auto merge of #8635 - pbor:unsigned-abs, r=giraffate
bors Apr 7, 2022
669fdda
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 Apr 7, 2022
db1d5dc
Fix internal::INVALID_PATHS lint
flip1995 Apr 7, 2022
f23a9fb
Bump Clippy Version -> 0.1.62
flip1995 Apr 7, 2022
f5e32dc
Bump nightly version -> 2022-04-07
flip1995 Apr 7, 2022
a2fdbb5
Bump changelog stable version -> 1.60
flip1995 Apr 7, 2022
abc59bb
Auto merge of #8656 - flip1995:rustup, r=flip1995
bors Apr 7, 2022
6ab4508
Allow raw lint descriptions
flip1995 Apr 7, 2022
984330a
Auto merge of #8657 - flip1995:raw_lint_desc, r=flip1995
bors Apr 7, 2022
515e2a2
Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup
flip1995 Apr 7, 2022
b590d5c
Update Cargo.lock
flip1995 Apr 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/ui/crashes/ice-5497.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
error: this operation will panic at runtime
--> $DIR/ice-5497.rs:9:22
|
LL | const OOB: i32 = [1][1] + T::OOB;
| ^^^^^^ index out of bounds: the length is 1 but the index is 1
|
= note: `#[deny(unconditional_panic)]` on by default

error: aborting due to previous error