Skip to content

Update Clippy #108474

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

Merged
merged 139 commits into from
Feb 26, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
c6692a8
Add configuration to lint missing docs of `pub(crate)` items
pvdrz Feb 6, 2023
8eac9e3
bless tests
pvdrz Feb 6, 2023
374c393
Introduce `-Zterminal-urls` to use OSC8 for error codes
estebank Feb 9, 2023
e2e23c0
Add docs and update tests
pvdrz Feb 9, 2023
cc19fbe
update metadata
pvdrz Feb 9, 2023
179c037
improve almost swap to look for let statement
DevAccentor Jun 4, 2022
e7fe1f9
Merge commit '0f7558148c22e53cd4608773b56cdfa50dcdeac3' into clippyup
flip1995 Feb 10, 2023
cd3bcbb
add `AliasEq` to `PredicateKind`
BoxyUwU Feb 10, 2023
145e6a9
Add suspicious_command_arg_space lint.
m-ou-se Feb 10, 2023
5fefe8b
Add test.
m-ou-se Feb 10, 2023
984c47b
Clarify description of suspicious_command_arg_space.
m-ou-se Feb 10, 2023
8f56767
Update lints.
m-ou-se Feb 10, 2023
078f149
[significant_drop_tightening] Add MVP
c410-f3r Feb 10, 2023
805a0ae
Add more test cases for suspicious_command_arg_space.
m-ou-se Feb 10, 2023
863e96d
Auto merge of #107507 - BoxyUwU:deferred_projection_equality, r=lcnr
bors Feb 11, 2023
8789b37
Fix false positives for `extra_unused_type_parameters`
mkrasnitski Feb 11, 2023
d9dc167
cast_possible_truncation: issue proper help message
samueltardieu Feb 12, 2023
aeaa1cc
lintcheck: fix clap panic
samueltardieu Feb 12, 2023
d880cae
Auto merge of #10330 - samueltardieu:10325, r=xFrednet
bors Feb 12, 2023
21433ab
book: move warning to the right place
samueltardieu Feb 12, 2023
ad2135e
Auto merge of #10333 - samueltardieu:lintcheck-clap-panic, r=flip1995
bors Feb 12, 2023
09d3097
manual_let_else: do not suggest semantically different replacements
samueltardieu Feb 12, 2023
1b286b1
Address comments
c410-f3r Feb 12, 2023
e70a7a6
[arithmetic_side_effects] Evaluate integers originated from constant …
c410-f3r Feb 9, 2023
1ed8ed3
Address comment
c410-f3r Feb 12, 2023
6f353fd
Auto merge of #10310 - c410-f3r:arith-2, r=Alexendoo
bors Feb 12, 2023
1f77866
Add SUSPICIOUS_COMMAND_ARG_SPACE to lint pass.
m-ou-se Feb 12, 2023
298f139
Auto merge of #10317 - m-ou-se:suspicious-command-arg-space, r=Manish…
bors Feb 12, 2023
ebca1b5
Refactor `almost_swapped` to lint with `let` statement correctly
chansuke Jan 8, 2023
e8e9c32
Alias folding/visiting traits instead of re-export
eggyal Feb 9, 2023
340d9e8
Make visiting traits generic over the Interner
eggyal Feb 9, 2023
b3077fb
Rollup merge of #107838 - estebank:terminal_hyperlinks, r=nagisa
matthiaskrgr Feb 13, 2023
ac60dca
Auto merge of #10177 - chansuke:almost_swapped, r=Alexendoo
bors Feb 13, 2023
42d4bd7
Auto merge of #107924 - eggyal:move_fold_visit_traits_to_type_lib_wit…
bors Feb 13, 2023
63562a6
Auto merge of #10334 - samueltardieu:book-warning-text, r=Manishearth
bors Feb 13, 2023
4b8f112
Use is_str instead of string kind comparison
compiler-errors Feb 13, 2023
89314a0
Add question-mark-used lint
mitsuhiko Feb 13, 2023
c231b41
Remove useless call to combine_seq
samueltardieu Feb 9, 2023
1fec292
Replace combine_both by combine_seq
samueltardieu Feb 13, 2023
8e96ade
fix [`needless_return`] incorrect suggestion when returning if sequence
J-ZhengLi Feb 14, 2023
e9dffa3
Fix a bug in never_loop when anonymous blocks are nested in named blocks
samueltardieu Feb 14, 2023
e3a739a
s/eval_usize/eval_target_usize/ for clarity
oli-obk Feb 14, 2023
657ee48
Ignore instructions following a break from block in never_loop lint
samueltardieu Feb 13, 2023
e4e5924
Do not base map_entry lint suggestion on expanded code
samueltardieu Feb 14, 2023
b8c3642
Rollup merge of #108007 - compiler-errors:str-less-kind, r=Nilstrieb
matthiaskrgr Feb 14, 2023
a182a67
Auto merge of #10311 - samueltardieu:issue-10304, r=Jarcho
bors Feb 14, 2023
e41c373
Add `of_trait` to DefKind::Impl.
cjgillot Feb 12, 2023
5a8b288
Auto merge of #108056 - matthiaskrgr:rollup-oa6bxvh, r=matthiaskrgr
bors Feb 14, 2023
0e40f94
Auto merge of #10346 - samueltardieu:issue-10331, r=Manishearth
bors Feb 14, 2023
17cb2e4
Liberate late-bound regions rather than erasing them in needless_pass…
compiler-errors Feb 12, 2023
7f15a11
manual_let_else: let/else is not divergent by default
samueltardieu Feb 12, 2023
4c28fdd
Auto merge of #10332 - samueltardieu:issue-10296, r=Alexendoo
bors Feb 14, 2023
8b93eb8
add some adjustment regarding review suggestion
J-ZhengLi Feb 15, 2023
e018a2c
Auto merge of #10328 - compiler-errors:fix-re-erased-in-needless_pass…
bors Feb 15, 2023
75aa2b9
uninlined_format_args: do not inline argument with generic parameters
samueltardieu Feb 13, 2023
cecc45c
Use target instead of machine for mir interpreter integer handling.
oli-obk Feb 14, 2023
d3d235d
Auto merge of #10345 - J-ZhengLi:issue_10049, r=xFrednet
bors Feb 15, 2023
8754d5a
Auto merge of #10343 - samueltardieu:issue-10339, r=Alexendoo
bors Feb 15, 2023
595f783
Auto merge of #10321 - mkrasnitski:false-positives, r=flip1995
bors Feb 15, 2023
1ee4651
Ignore synthetic type parameters for `extra_unused_type_parameters`
mkrasnitski Feb 12, 2023
5b6795f
Auto merge of #10338 - mkrasnitski:synthetic-params, r=flip1995
bors Feb 15, 2023
30f38d6
Auto merge of #108006 - cjgillot:def-impl, r=oli-obk
bors Feb 15, 2023
8ec9543
Add `impl_trait_param` lint
blyxyas Jan 9, 2023
dd6534a
Rollup merge of #108047 - oli-obk:machine->🞋, r=RalfJung
matthiaskrgr Feb 15, 2023
ade4c9b
Rename lint to better fit lint naming conventions
blyxyas Jan 13, 2023
6c9983b
Exec `cargo dev update_lints`
blyxyas Jan 13, 2023
bdf4fd3
Tests pass
blyxyas Jan 13, 2023
8a2245d
Change lint's from `style` to `restriction`
blyxyas Jan 13, 2023
6aa06b7
Remove `#[allow]`s. Apply conversations from @Jarcho
blyxyas Jan 19, 2023
4166b7d
Fix lint message
blyxyas Jan 25, 2023
6ef34bf
Remove commented code
blyxyas Feb 3, 2023
27a4768
Rename some region-specific stuff
compiler-errors Feb 6, 2023
f12b492
Change unusual_byte_groupings to require byte groupings of equal size
nindalf Feb 16, 2023
86fb33a
Auto merge of #10353 - nindalf:master, r=llogiq
bors Feb 16, 2023
2d4d39d
Add the `let_underscore_untyped` lint
JirkaVebr Feb 16, 2023
0933798
Added check for local spans
mitsuhiko Feb 16, 2023
0b1ae20
Fix dogfood tests by adding type annotations
JirkaVebr Feb 16, 2023
4369a67
Auto merge of #10163 - c410-f3r:lock-1, r=llogiq
bors Feb 16, 2023
99d4ea4
Auto merge of #10356 - JirkaVebr:let_underscore_untyped, r=llogiq
bors Feb 16, 2023
52c8b53
Auto merge of #10342 - mitsuhiko:feature/question-mark-used, r=Alexendoo
bors Feb 16, 2023
9c9dbc2
Fix DOC_MARKDOWN requiring backticks on links to external websites
nindalf Feb 16, 2023
6d0df84
Add the `transmute_int_to_non_zero` lint
JirkaVebr Feb 16, 2023
dfe23dc
Auto merge of #10360 - JirkaVebr:transmute_integer_to_non_zero_wrappe…
bors Feb 16, 2023
64b8aaf
remove empty file
pvdrz Feb 16, 2023
7e53e27
Stop bytes_nth from suggesting code that does not compile
nindalf Feb 16, 2023
be74773
Auto merge of #10357 - nindalf:doc_markdown_relax, r=llogiq
bors Feb 16, 2023
eac0bd9
Auto merge of #10361 - nindalf:nth_bytes_copy, r=llogiq
bors Feb 16, 2023
6444621
Auto merge of #10336 - samueltardieu:issue-10241, r=llogiq
bors Feb 16, 2023
747f81e
[significant_drop_tightening] Ignore inexpensive statements
c410-f3r Feb 16, 2023
cc60e21
Rollup merge of #107489 - compiler-errors:non_lifetime_binders, r=cjg…
matthiaskrgr Feb 16, 2023
f0565c9
change usages of type_of to bound_type_of
kylematsuda Feb 7, 2023
98c4a49
remove bound_type_of query; make type_of return EarlyBinder; change t…
kylematsuda Feb 7, 2023
9554045
Auto merge of #107753 - kylematsuda:type-of, r=BoxyUwU
bors Feb 17, 2023
8a66a68
Add `Clause::ConstArgHasType` variant
BoxyUwU Feb 16, 2023
ae12b72
Replace `mk_foo` calls with `infer_foo` where possible.
nnethercote Feb 16, 2023
a3837c6
Replace more `mk_foo` calls with `infer_foo`.
nnethercote Feb 16, 2023
c29e767
Address review comments
pvdrz Feb 17, 2023
c0373f5
Auto merge of #108112 - nnethercote:clarify-iterator-interners, r=oli…
bors Feb 18, 2023
e1da002
Auto merge of #10363 - c410-f3r:lock-1, r=xFrednet
bors Feb 18, 2023
7518969
Evaluate the return expression of a block
c410-f3r Feb 18, 2023
85d4b5a
Auto merge of #10368 - c410-f3r:lock-1, r=xFrednet
bors Feb 18, 2023
89fde4a
Add placeholders, remove name suggesting
blyxyas Feb 18, 2023
0905838
Ignore lifetimes from differing contexts in `needless_lifetimes`
Alexendoo Feb 20, 2023
92c403c
Box::default(): do not omit the type of the removed trait object
samueltardieu Feb 19, 2023
574c8ae
Auto merge of #10382 - samueltardieu:issue-10381, r=llogiq
bors Feb 20, 2023
790f28b
Update documentation
pvdrz Feb 20, 2023
b1cf1e7
Auto merge of #10303 - pvdrz:pub_crate_missing_docs, r=giraffate
bors Feb 20, 2023
71b8646
Use `ThinVec` in various AST types.
nnethercote Nov 23, 2022
5ef3cc8
Auto merge of #10197 - blyxyas:impl_trait_param, r=Jarcho
bors Feb 21, 2023
803ce88
Auto merge of #10380 - Alexendoo:needless-lifetime-macro-expansion, r…
bors Feb 21, 2023
0aad34e
Normalize projections types when checking `explicit_auto_deref`
Jarcho Feb 21, 2023
5166882
Auto merge of #10386 - Jarcho:issue_10384, r=Manishearth
bors Feb 21, 2023
bf7c209
Update readme description of `restriction` lints to dissuade casual use.
Jarcho Feb 21, 2023
aa0e543
errors: generate typed identifiers in each crate
davidtwco Oct 13, 2022
ab69a2a
various: translation resources from cg backend
davidtwco Oct 17, 2022
8d08917
Auto merge of #10385 - Jarcho:readme_restriction, r=xFrednet
bors Feb 22, 2023
72e773f
Fix test function checker in [unwrap_used], [expect_used]
ldm0 Feb 22, 2023
b9c617a
correct comments
ldm0 Feb 22, 2023
1a474d9
Recover tests
ldm0 Feb 22, 2023
a5acb92
fix fmt
ldm0 Feb 22, 2023
79a9024
bless
ldm0 Feb 22, 2023
d254516
clippy: update clippy to use new `TyCtxt::def_descr`
notriddle Feb 21, 2023
430c4ab
Remove type-traversal trait aliases
eggyal Feb 22, 2023
95cd528
Auto merge of #108340 - eggyal:remove_traversal_trait_aliases, r=oli-obk
bors Feb 22, 2023
daa94d2
Auto merge of #108324 - notriddle:notriddle/assoc-fn-method, r=compil…
bors Feb 23, 2023
528bb63
Fix more false positives for `extra_unused_type_parameters`
mkrasnitski Feb 22, 2023
f9adb83
Auto merge of #10392 - mkrasnitski:false-positives, r=Jarcho
bors Feb 23, 2023
00c294a
Add new lint no_mangle_with_rust_abi
nindalf Feb 18, 2023
659112c
Auto merge of #10369 - nindalf:no_mangle_lint, r=llogiq
bors Feb 23, 2023
84ceca8
run cargo collect-metadata
ldm0 Feb 23, 2023
b528cc9
Auto merge of #10391 - ldm0:ldm0_fix_unwrap_in_tests, r=xFrednet
bors Feb 24, 2023
bc184e9
Merge branch 'master' into rustup
Jarcho Feb 25, 2023
5552f4a
Bump nightly version -> 2023-02-25
Jarcho Feb 25, 2023
64775f3
Do not panic when analyzing the malformed origin of a format string
samueltardieu Feb 25, 2023
5155119
Auto merge of #10401 - samueltardieu:issue-10148, r=Alexendoo
bors Feb 25, 2023
e825adf
Fix normalization of `custom_ice_message` test.
Jarcho Feb 25, 2023
69c4ff6
Emit `unnecessary_def_path` in source order.
Jarcho Feb 25, 2023
149392b
Auto merge of #10402 - Jarcho:rustup, r=Jarcho
bors Feb 25, 2023
4a2de63
Merge commit '149392b0baa4730c68f3c3eadf5c6ed7b16b85a4' into clippyup
Jarcho Feb 26, 2023
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
Prev Previous commit
Next Next commit
Fix normalization of custom_ice_message test.
  • Loading branch information
Jarcho committed Feb 25, 2023
commit e825adf637db15bc264117825b3262f8f9ad27b7
3 changes: 2 additions & 1 deletion tests/ui-internal/custom_ice_message.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// rustc-env:RUST_BACKTRACE=0
// normalize-stderr-test: "Clippy version: .*" -> "Clippy version: foo"
// normalize-stderr-test: "internal_lints.rs:\d*:\d*" -> "internal_lints.rs"
// normalize-stderr-test: "produce_ice.rs:\d*:\d*" -> "produce_ice.rs"
// normalize-stderr-test: "', .*clippy_lints" -> "', clippy_lints"
// normalize-stderr-test: "'rustc'" -> "'<unnamed>'"
// normalize-stderr-test: "(?ms)query stack during panic:\n.*end of query stack\n" -> ""

#![deny(clippy::internal)]
#![allow(clippy::missing_clippy_version_attribute)]
Expand Down
4 changes: 1 addition & 3 deletions tests/ui-internal/custom_ice_message.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
thread '<unnamed>' panicked at 'Would you like some help with that?', clippy_lints/src/utils/internal_lints/produce_ice.rs:28:9
thread '<unnamed>' panicked at 'Would you like some help with that?', clippy_lints/src/utils/internal_lints/produce_ice.rs
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic
Expand All @@ -9,5 +9,3 @@ note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy

note: Clippy version: foo

query stack during panic:
end of query stack