-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Rollup of 16 pull requests #82517
Rollup of 16 pull requests #82517
Commits on Jan 2, 2021
-
Fix default initialized fields in suggestion
The default value for a field type does not necessarily match the default value for that field in the struct Default.
Configuration menu - View commit details
-
Copy full SHA for 173e1ba - Browse repository at this point
Copy the full SHA 173e1baView commit details -
There is already an assertion that consecutive lines assign to a struct field.
Configuration menu - View commit details
-
Copy full SHA for f74e200 - Browse repository at this point
Copy the full SHA f74e200View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa75f63 - Browse repository at this point
Copy the full SHA fa75f63View commit details
Commits on Jan 3, 2021
-
Auto merge of rust-lang#6537 - flip1995:beta, r=ebroto
[beta] Backport of rust-lang#6375 - field_reassign_with_default fix With the pinned nightly we can test backports to our beta branch now 🎉 cc rust-lang#6515 changelog: beta 1.50: Backport of private fields fix in [`field_reassign_with_default`] lints
Configuration menu - View commit details
-
Copy full SHA for 4bd77a1 - Browse repository at this point
Copy the full SHA 4bd77a1View commit details
Commits on Feb 2, 2021
-
Configuration menu - View commit details
-
Copy full SHA for bfbc083 - Browse repository at this point
Copy the full SHA bfbc083View commit details
Commits on Feb 3, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e0e51e4 - Browse repository at this point
Copy the full SHA e0e51e4View commit details
Commits on Feb 4, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e32e4de - Browse repository at this point
Copy the full SHA e32e4deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b8b0a9 - Browse repository at this point
Copy the full SHA 8b8b0a9View commit details
Commits on Feb 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 22d4483 - Browse repository at this point
Copy the full SHA 22d4483View commit details
Commits on Feb 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c44eafd - Browse repository at this point
Copy the full SHA c44eafdView commit details -
Configuration menu - View commit details
-
Copy full SHA for a42be85 - Browse repository at this point
Copy the full SHA a42be85View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c73f98 - Browse repository at this point
Copy the full SHA 6c73f98View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1021327 - Browse repository at this point
Copy the full SHA 1021327View commit details -
Configuration menu - View commit details
-
Copy full SHA for 39ba449 - Browse repository at this point
Copy the full SHA 39ba449View commit details
Commits on Feb 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 347b01e - Browse repository at this point
Copy the full SHA 347b01eView commit details -
Configuration menu - View commit details
-
Copy full SHA for fc334fb - Browse repository at this point
Copy the full SHA fc334fbView commit details -
Rewrite use_self lint one more time
This rewrite gets rid of complicated visitors, by using the lint infrastructure as much as possible
Configuration menu - View commit details
-
Copy full SHA for ae2dd67 - Browse repository at this point
Copy the full SHA ae2dd67View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb40db7 - Browse repository at this point
Copy the full SHA bb40db7View commit details -
Configuration menu - View commit details
-
Copy full SHA for da65d81 - Browse repository at this point
Copy the full SHA da65d81View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e1c1c1 - Browse repository at this point
Copy the full SHA 7e1c1c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f61ddd - Browse repository at this point
Copy the full SHA 7f61dddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 52f98d8 - Browse repository at this point
Copy the full SHA 52f98d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37f9782 - Browse repository at this point
Copy the full SHA 37f9782View commit details
Commits on Feb 11, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 8b9f4a0 - Browse repository at this point
Copy the full SHA 8b9f4a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for feeed17 - Browse repository at this point
Copy the full SHA feeed17View commit details -
Auto merge of rust-lang#6720 - flip1995:backport_remerge, r=flip1995
Backport remerge changelog: none r? `@ghost`
Configuration menu - View commit details
-
Copy full SHA for 8117573 - Browse repository at this point
Copy the full SHA 8117573View commit details -
Configuration menu - View commit details
-
Copy full SHA for cc82e55 - Browse repository at this point
Copy the full SHA cc82e55View commit details -
Auto merge of rust-lang#6719 - flip1995:changelog, r=xFrednet,flip1995
Update changelog for 1.51 ~~Don't merge yet. This is the last step of the release process.~~ Release process for 1.50 is done, this can now be merged. [Rendered](https://github.com/flip1995/rust-clippy/blob/changelog/CHANGELOG.md) changelog: none
Configuration menu - View commit details
-
Copy full SHA for fa2c1d6 - Browse repository at this point
Copy the full SHA fa2c1d6View commit details
Commits on Feb 12, 2021
-
Auto merge of rust-lang#6179 - flip1995:rewrite_use_self, r=phansch
Rework use_self impl based on ty::Ty comparison rust-lang#3410 | Take 2 This builds on top of rust-lang#5531 I already reviewed and approved the commits by `@montrivo.` So only the review of my commits should be necessary. I would also appreciate your review `@montrivo,` since you are familiar with the challenges here. Fixes rust-lang#3410 and Fixes rust-lang#4143 (same problem) Fixes rust-lang#2843 Fixes rust-lang#3859 Fixes rust-lang#4734 and fixes rust-lang#6221 Fixes rust-lang#4305 Fixes rust-lang#5078 (even at expression level now 🎉) Fixes rust-lang#3881 and Fixes rust-lang#4887 (same problem) Fixes rust-lang#3909 Not yet: rust-lang#4140 (test added) All the credit for the fixes goes to `@montrivo.` I only refactored and copy and pasted his code. changelog: rewrite [`use_self`] lint and fix multiple (8) FPs. One to go.
Configuration menu - View commit details
-
Copy full SHA for 605e9ba - Browse repository at this point
Copy the full SHA 605e9baView commit details -
Configuration menu - View commit details
-
Copy full SHA for b80ac2a - Browse repository at this point
Copy the full SHA b80ac2aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6472939 - Browse repository at this point
Copy the full SHA 6472939View commit details -
Configuration menu - View commit details
-
Copy full SHA for a389c02 - Browse repository at this point
Copy the full SHA a389c02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b31b47 - Browse repository at this point
Copy the full SHA 0b31b47View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1a627a - Browse repository at this point
Copy the full SHA d1a627aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9194c11 - Browse repository at this point
Copy the full SHA 9194c11View commit details -
Configuration menu - View commit details
-
Copy full SHA for 642efab - Browse repository at this point
Copy the full SHA 642efabView commit details -
Auto merge of rust-lang#6700 - daxpedda:panics-doc-unreachable, r=llogiq
Fix missing_panics_doc warning on `unreachable!`. Fixes rust-lang#6699. Are there any other test-cases I should cover? changelog: [`missing_panics_doc`](https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc): No longer lints on [`unreachable!`](https://doc.rust-lang.org/std/macro.unreachable.html)
Configuration menu - View commit details
-
Copy full SHA for 047f3e1 - Browse repository at this point
Copy the full SHA 047f3e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d36fe85 - Browse repository at this point
Copy the full SHA d36fe85View commit details -
lintcheck: env var LINTCHECK_TOML can be used to override toml file l…
…ocation (has precedence over --crates-toml flag)
Configuration menu - View commit details
-
Copy full SHA for 5bbb1bc - Browse repository at this point
Copy the full SHA 5bbb1bcView commit details
Commits on Feb 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for fedfbb9 - Browse repository at this point
Copy the full SHA fedfbb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c5d301 - Browse repository at this point
Copy the full SHA 8c5d301View commit details -
Auto merge of rust-lang#6738 - xFrednet:0000-update-labels-in-templat…
…e-files, r=flip1995 Update labels in template files It seems like we forgot to update the GitHub templates when we decided to update the label names. This PR just adjusts the templates to use the new label names :) Context: [Zulip discussion about renaming the labels](https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Label.20cleanup/near/224083870) --- changelog: none
Configuration menu - View commit details
-
Copy full SHA for 0ce5ecc - Browse repository at this point
Copy the full SHA 0ce5eccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0256103 - Browse repository at this point
Copy the full SHA 0256103View commit details -
Auto merge of rust-lang#6735 - matthiaskrgr:lintcheck, r=flip1995
lintcheck: accept env var to set crates.toml file *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: lintcheck: accept LINTCHECK_TOML env var to set list of crates to be checked.
Configuration menu - View commit details
-
Copy full SHA for 51aefbd - Browse repository at this point
Copy the full SHA 51aefbdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 87109bb - Browse repository at this point
Copy the full SHA 87109bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for dd91987 - Browse repository at this point
Copy the full SHA dd91987View commit details -
Auto merge of rust-lang#6736 - Y-Nak:reproducer-for-use_self-ice, r=f…
…lip1995 Add a minimal reproducer for the ICE in rust-lang#6179 This PR is an auxiliary PR for rust-lang#6179, just add a minimal reproducer for the ICE discussed in rust-lang#6179. See rust-lang#6179 for more details. changelog: none
Configuration menu - View commit details
-
Copy full SHA for 5f611ce - Browse repository at this point
Copy the full SHA 5f611ceView commit details -
Auto merge of rust-lang#81238 - RalfJung:copy-intrinsics, r=m-ou-se
directly expose copy and copy_nonoverlapping intrinsics This effectively un-does rust-lang#57997. That should help with `ptr::read` codegen in debug builds (and any other of these low-level functions that bottoms out at `copy`/`copy_nonoverlapping`), where the wrapper function will not get inlined. See the discussion in rust-lang#80290 and rust-lang#81163. Cc `@bjorn3` `@therealprof`
Configuration menu - View commit details
-
Copy full SHA for ce0a47a - Browse repository at this point
Copy the full SHA ce0a47aView commit details
Commits on Feb 14, 2021
-
Fix ICE caused by suggestion with no code substitutions
Change suggestion logic to filter and checking _before_ creating specific resolution suggestion. Assert earlier that suggestions contain code substitions to make it easier in the future to debug invalid uses. If we find this becomes too noisy in the wild, we can always make the emitter resilient to these cases and remove the assertions. Fix rust-lang#78651.
Configuration menu - View commit details
-
Copy full SHA for 04c2454 - Browse repository at this point
Copy the full SHA 04c2454View commit details -
Auto merge of rust-lang#6697 - camsteffen:vec-init-push-fp, r=flip1995
Fix vec_init_then_push false positives changelog: Fix vec_init_then_push false positives Fixes rust-lang#6615
Configuration menu - View commit details
-
Copy full SHA for eb80ac4 - Browse repository at this point
Copy the full SHA eb80ac4View commit details -
Auto merge of rust-lang#6701 - camsteffen:collapsible-if, r=flip1995
Fix collapsible_if with attributes changelog: Fix collapsible_if FP with attributes Fixes rust-lang#6593
Configuration menu - View commit details
-
Copy full SHA for 9c3b43e - Browse repository at this point
Copy the full SHA 9c3b43eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1202550 - Browse repository at this point
Copy the full SHA 1202550View commit details -
Auto merge of rust-lang#6741 - ThibsG:BlockInIfConditions1141, r=flip…
…1995 Do not lint when the closure is called using an iterator Fix FP when the closure is used in an iterator for `blocks_in_if_conditions` lint FIxes: rust-lang#1141 changelog: none
Configuration menu - View commit details
-
Copy full SHA for 2f19f5f - Browse repository at this point
Copy the full SHA 2f19f5fView commit details
Commits on Feb 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 93796b2 - Browse repository at this point
Copy the full SHA 93796b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0198ac7 - Browse repository at this point
Copy the full SHA 0198ac7View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb91c76 - Browse repository at this point
Copy the full SHA fb91c76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b68fc1 - Browse repository at this point
Copy the full SHA 5b68fc1View commit details -
Only store a LocalDefId in hir::Item.
Items are guaranteed to be HIR owner.
Configuration menu - View commit details
-
Copy full SHA for 2dc6539 - Browse repository at this point
Copy the full SHA 2dc6539View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc9bc33 - Browse repository at this point
Copy the full SHA fc9bc33View commit details -
Configuration menu - View commit details
-
Copy full SHA for dbe7609 - Browse repository at this point
Copy the full SHA dbe7609View commit details -
Upgrade compiletest-rs to 0.6 and tester to 0.9
These updates allow us to specify multiple testnames for `TESTNAME`. The new version of compiletest-rs also includes `bless` support, but is not enabled with this PR.
Configuration menu - View commit details
-
Copy full SHA for 7226291 - Browse repository at this point
Copy the full SHA 7226291View commit details -
Auto merge of rust-lang#6743 - rust-lang:update-compiletest, r=Manish…
…earth Upgrade compiletest-rs to 0.6 and tester to 0.9 These updates allow us to specify multiple testnames for `TESTNAME` by providing a comma separated list of testnames. The new version of compiletest-rs also includes `bless` support, but is not enabled with this PR. cc rust-lang#5394 changelog: none
Configuration menu - View commit details
-
Copy full SHA for 87c682a - Browse repository at this point
Copy the full SHA 87c682aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b74439 - Browse repository at this point
Copy the full SHA 1b74439View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4856e5f - Browse repository at this point
Copy the full SHA 4856e5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 214d821 - Browse repository at this point
Copy the full SHA 214d821View commit details -
lintcheck: fix bug in downloade_and_extract() for git sources: we nee…
…d to execute "git checkout xy" inside the repo dir!
Configuration menu - View commit details
-
Copy full SHA for f8dbcae - Browse repository at this point
Copy the full SHA f8dbcaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f1cceb - Browse repository at this point
Copy the full SHA 8f1ccebView commit details -
lintcheck: filter out messages that come from cargo-metadata errors o…
…r contain absolute paths to rustc source files The latter is especially annoying because the paths would change every time we bumped the pinned nightly version.
Configuration menu - View commit details
-
Copy full SHA for 028692b - Browse repository at this point
Copy the full SHA 028692bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a95c250 - Browse repository at this point
Copy the full SHA a95c250View commit details
Commits on Feb 16, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1f8ee3c - Browse repository at this point
Copy the full SHA 1f8ee3cView commit details -
Auto merge of rust-lang#6744 - matthiaskrgr:lintcheck, r=flip1995
more lintcheck updates * do some refactoring and renaming here and there * add comments to functions * fix bug where git repos would not get checked out to the proper commits (cmd was not actually run in repo directory 😅 ) * print warnings if we can't clone or check out a git repo * filter out noise from cargo-metadata errors and lint messages that contained absolute file paths (these would change with every pinned-nightly bump, polluting the logs) changelog: more lintcheck refactoring and fixes for git crates
Configuration menu - View commit details
-
Copy full SHA for f28c54c - Browse repository at this point
Copy the full SHA f28c54cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b0c1eb - Browse repository at this point
Copy the full SHA 9b0c1ebView commit details -
Auto merge of rust-lang#6662 - Y-Nak:default-numeric-fallback, r=flip…
…1995 New lint: default_numeric_fallback fixes rust-lang#6064 r? `@flip1995` As we discussed in [here](https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Issue.20.236064/near/224647188) and [here](https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Issue.20clippy.236064/near/224746333), I start implementing this lint from the strictest version. In this PR, I'll allow the below two cases to pass the lint to reduce FPs. 1. Appearances of unsuffixed numeric literals in `Local` if `Local` has a type annotation, for example: ```rust // Good. let x: i32 = 1; // Also good. let x: (i32, i32) = if cond { (1, 2) } else { (2, 3) }; ``` 2. Appearances of unsuffixed numeric literals in args of `Call` or `MethodCall` if corresponding arguments of their signature have concrete types, for example: ```rust fn foo_mono(x: i32) -> i32 { x } fn foo_poly<T>(t: T) -> t { t } // Good. let x = foo_mono(13); // Still bad. let x: i32 = foo_poly(13); ``` changelog: Added restriction lint: `default_numeric_fallback`
Configuration menu - View commit details
-
Copy full SHA for e2753f9 - Browse repository at this point
Copy the full SHA e2753f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a28ea0 - Browse repository at this point
Copy the full SHA 2a28ea0View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd5c9b7 - Browse repository at this point
Copy the full SHA dd5c9b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bcb257 - Browse repository at this point
Copy the full SHA 9bcb257View commit details -
Configuration menu - View commit details
-
Copy full SHA for e355652 - Browse repository at this point
Copy the full SHA e355652View commit details -
Auto merge of rust-lang#6749 - camsteffen:test-all, r=Manishearth
Test workspace at once changelog: none Follow-up to rust-lang#6733
Configuration menu - View commit details
-
Copy full SHA for 877be18 - Browse repository at this point
Copy the full SHA 877be18View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3f5846 - Browse repository at this point
Copy the full SHA e3f5846View commit details
Commits on Feb 17, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 79d7f4c - Browse repository at this point
Copy the full SHA 79d7f4cView commit details -
Replace vec![] calls with slice literals
There is no need to create vec's here
Configuration menu - View commit details
-
Copy full SHA for c5b9264 - Browse repository at this point
Copy the full SHA c5b9264View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0036707 - Browse repository at this point
Copy the full SHA 0036707View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d60a61 - Browse repository at this point
Copy the full SHA 2d60a61View commit details -
Auto merge of rust-lang#6750 - flip1995:lintcheck_options, r=matthias…
…krgr Lintcheck and an options for command line options Make it possible to add command line options to the clippy invocation of the lintcheck-tool changelog: none r? `@matthiaskrgr` I found that this will be really helpful if we use a separate repository and want to maintain a all-lints-passing list of crates. See my early experimentation here: https://github.com/flip1995/clippy-lintcheck ``` git submodule update --init cargo run -- --mode=all ``` Will run the lintcheck tool on all the specified crates in `config/` in that repository.
Configuration menu - View commit details
-
Copy full SHA for ddeea97 - Browse repository at this point
Copy the full SHA ddeea97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ac14f9 - Browse repository at this point
Copy the full SHA 4ac14f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 742922a - Browse repository at this point
Copy the full SHA 742922aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ad6e26 - Browse repository at this point
Copy the full SHA 9ad6e26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6165ccc - Browse repository at this point
Copy the full SHA 6165cccView commit details -
Auto merge of rust-lang#81993 - flip1995:clippyup, r=Manishearth
Update Clippy Biweekly Clippy update r? `@Manishearth`
Configuration menu - View commit details
-
Copy full SHA for a149f61 - Browse repository at this point
Copy the full SHA a149f61View commit details
Commits on Feb 18, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a87fa0e - Browse repository at this point
Copy the full SHA a87fa0eView commit details -
ast: Keep expansion status for out-of-line module items
Also remove `ast::Mod` which is mostly redundant now
Configuration menu - View commit details
-
Copy full SHA for b185fa3 - Browse repository at this point
Copy the full SHA b185fa3View commit details -
Rollup merge of rust-lang#82215 - TaKO8Ki:replace-if-let-while-let, r…
…=varkor Replace if-let and while-let with `if let` and `while let` This pull request replaces if-let and while-let with `if let` and `while let`. closes rust-lang#82205
Configuration menu - View commit details
-
Copy full SHA for 6e12a2f - Browse repository at this point
Copy the full SHA 6e12a2fView commit details -
Auto merge of rust-lang#6759 - Y-Nak:fix-fp-of-result_unit_err, r=llogiq
Fix FP of result_unit_err when using type aliases fixes rust-lang#6546 changelog: none
Configuration menu - View commit details
-
Copy full SHA for 7d535f6 - Browse repository at this point
Copy the full SHA 7d535f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for aea55d2 - Browse repository at this point
Copy the full SHA aea55d2View commit details -
Auto merge of rust-lang#6763 - flip1995:fix_lintcheck, r=matthiaskrgr
Fix lintcheck by excluding checked crates from workspace r? `@matthiaskrgr` cc `@camsteffen` So `exclude` doesn't work with glob patterns, but it turns out that it works with `starts_with`. changelog: none
Configuration menu - View commit details
-
Copy full SHA for 2f815ec - Browse repository at this point
Copy the full SHA 2f815ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for a78271b - Browse repository at this point
Copy the full SHA a78271bView commit details -
Auto merge of rust-lang#6665 - pag4k:unnecessary_wraps_bug_6640, r=ca…
…msteffen Fix for issue 6640 *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: unnecessary_wraps will now suggest to remove unnecessary wrapped return unit type, like Option<()> fixes rust-lang#6640
Configuration menu - View commit details
-
Copy full SHA for 0f70e88 - Browse repository at this point
Copy the full SHA 0f70e88View commit details -
Use rayon to figure out the threadcount and half that for core count. For each core, create a target dir that is used. Otherwise, when running multiple clippys with the same target-dir, cargo would lock the dir and prevent parallelism. This way we can run multiple clippys at the same time (on root crates) but we sacrifice cache-hits (when we already cargo-checked crate-deps).
Configuration menu - View commit details
-
Copy full SHA for 90d3275 - Browse repository at this point
Copy the full SHA 90d3275View commit details
Commits on Feb 19, 2021
-
Rollup merge of rust-lang#82238 - petrochenkov:nocratemod, r=Aaron1011
ast: Keep expansion status for out-of-line module items I.e. whether a module `mod foo;` is already loaded from a file or not. This is a pre-requisite to correctly treating inner attributes on such modules (rust-lang#81661). With this change AST structures for `mod` items diverge even more for AST structure for the crate root, which previously used `ast::Mod`. Therefore this PR removes `ast::Mod` from `ast::Crate` in the first commit, these two things are sufficiently different from each other, at least at syntactic level. Customization points for visiting a "`mod` item or crate root" were also removed from AST visitors (`fn visit_mod`). `ast::Mod` itself was refactored away in the second commit in favor of `ItemKind::Mod(Unsafe, ModKind)`.
Configuration menu - View commit details
-
Copy full SHA for 2c302b2 - Browse repository at this point
Copy the full SHA 2c302b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54c6054 - Browse repository at this point
Copy the full SHA 54c6054View commit details -
Configuration menu - View commit details
-
Copy full SHA for 46c91db - Browse repository at this point
Copy the full SHA 46c91dbView commit details -
collapsible_match: fix lint message capitalization
(see https://rustc-dev-guide.rust-lang.org/diagnostics.html for details)
Configuration menu - View commit details
-
Copy full SHA for 1f4153a - Browse repository at this point
Copy the full SHA 1f4153aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4334f57 - Browse repository at this point
Copy the full SHA 4334f57View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf55aee - Browse repository at this point
Copy the full SHA bf55aeeView commit details -
Configuration menu - View commit details
-
Copy full SHA for c4b8d87 - Browse repository at this point
Copy the full SHA c4b8d87View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb5f9d1 - Browse repository at this point
Copy the full SHA bb5f9d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d198551 - Browse repository at this point
Copy the full SHA d198551View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4974734 - Browse repository at this point
Copy the full SHA 4974734View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22aeec0 - Browse repository at this point
Copy the full SHA 22aeec0View commit details -
lintcheck: add -j <N> option to configure threads.
defaults to 1 -j 0 choses the number of threads automtically (= number of physical cores)
Configuration menu - View commit details
-
Copy full SHA for 8499a32 - Browse repository at this point
Copy the full SHA 8499a32View commit details
Commits on Feb 20, 2021
-
Auto merge of rust-lang#6764 - matthiaskrgr:lintcheck_par_iter, r=fli…
…p1995 lintcheck: parallelize By default we use a single thread and one target dir as before. If `-j n` is passed, use `n` target dirs and run one clippy in each of them. We need several target dirs because cargo would lock them for a single process otherwise which would prevent the parallelism. `-j 0` makes rayon use $thread_count/2 (which I assume is the number of physical cores of a machine) for the number of threads. Other change: Show output of clippy being compiled when building it for lintcheck (makes it easier to spot compiler errors etc) Show some progress indication in the "Linting... foo 1.2.3" message. Sort crates before linting (previously crates would be split randomly between target dirs, with the sorting, we try to make sure that even crates land in target dir 0 and odd ones in target dir 1 etc..) *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: parallelize lintcheck with rayon
Configuration menu - View commit details
-
Copy full SHA for 23de801 - Browse repository at this point
Copy the full SHA 23de801View commit details -
Auto merge of rust-lang#6766 - matthiaskrgr:nestedmatch, r=flip1995
collapsible_match: fix lint message capitalization (see https://rustc-dev-guide.rust-lang.org/diagnostics.html for details) --- *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: collapsible_match: fix lint message capitalization
Configuration menu - View commit details
-
Copy full SHA for 2746632 - Browse repository at this point
Copy the full SHA 2746632View commit details -
Replace normalize.css 3.0.0 with unminified version.
This is in preparation to upgrade to 8.0.1, so the next commit can contain more meaningful diffs.
Configuration menu - View commit details
-
Copy full SHA for 7ad4b7a - Browse repository at this point
Copy the full SHA 7ad4b7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bbd482 - Browse repository at this point
Copy the full SHA 9bbd482View commit details -
This bypasses tidy's complaints about tab indent. Also, this lets us remove comments while keeping the MIT license comment.
Configuration menu - View commit details
-
Copy full SHA for 7acb105 - Browse repository at this point
Copy the full SHA 7acb105View commit details -
Auto merge of rust-lang#6717 - booleancoercion:master, r=llogiq
Add the from_str_radix_10 lint changelog: added the new `from_str_radix_10` which sometimes replaces calls to `primitive::from_str_radix` to `str::parse` This is ready to be merged, although maybe the category should be `pedantic` instead of `style`? I'm not sure where it fits better. Closes rust-lang#6713.
Configuration menu - View commit details
-
Copy full SHA for 67087a1 - Browse repository at this point
Copy the full SHA 67087a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10f2342 - Browse repository at this point
Copy the full SHA 10f2342View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5af6f96 - Browse repository at this point
Copy the full SHA 5af6f96View commit details -
Configuration menu - View commit details
-
Copy full SHA for d230389 - Browse repository at this point
Copy the full SHA d230389View commit details -
Configuration menu - View commit details
-
Copy full SHA for d646aa2 - Browse repository at this point
Copy the full SHA d646aa2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19a3775 - Browse repository at this point
Copy the full SHA 19a3775View commit details
Commits on Feb 21, 2021
-
Auto merge of rust-lang#6754 - camsteffen:spanlesseq-res, r=flip1995
Teach SpanlessEq binding IDs changelog: Fix collapsible_match false positive Fixes rust-lang#6740 This PR changes the way `SpanlessEq` determines whether two local variables are the same. Instead of checking that the names match, it checks that the `HirId`s match. If local bindings are declared within the expressions that are being compared, `SpanlessEq` will remember bindings that correspond to each other in a `FxHashMap<HirId, HirId>`. This makes `SpanlessEq` more flexible while also fixing false positives. Example: `{ let x = 1; x + 2 }` is equal to `{ let y = 1; y + 2 }`. CC `@xFrednet` I think this will resolve some concerns in rust-lang#6463
Configuration menu - View commit details
-
Copy full SHA for d2ddf9c - Browse repository at this point
Copy the full SHA d2ddf9cView commit details -
Auto merge of rust-lang#6765 - camsteffen:unnecessary-wraps-pedantic,…
… r=flip1995 Change unnecessary_wraps to pedantic changelog: Change unnecessary_wraps to pedantic There seems to be enough evidence that this lint is not wanted as warn-by-default. Attempted before at rust-lang#6380. False positives at rust-lang#6721 and rust-lang#6427. Actually requested to change the category at rust-lang#6726. Closes rust-lang#6726
Configuration menu - View commit details
-
Copy full SHA for 8a47901 - Browse repository at this point
Copy the full SHA 8a47901View commit details -
Auto merge of rust-lang#6770 - ThibsG:PostfixEnumVariant, r=flip1995
Fix camel case postfix for `enum_variant_names` lint Fix camel case postfix Fixes: rust-lang#4639 changelog: none
Configuration menu - View commit details
-
Copy full SHA for 208e957 - Browse repository at this point
Copy the full SHA 208e957View commit details -
Auto merge of rust-lang#6771 - MortenLohne:master, r=flip1995
Fix FP in inherent_to_string when the function has generic parameters Minimal example of the false positive: ```` struct G; impl G { fn to_string<const _N: usize>(&self) -> String { "G.to_string()".to_string() } } fn main() { let g = G; g.to_string::<1>(); } ```` Clippy emits an `inherent_to_string` warning, and suggests that we implement `Display` for `G` instead. However, this is not possible, since the generic parameter _N only exists in this function, not in `G` itself. This particular example uses const generics, which is where the issue is most likely to come up, but this PR skips the lint if the `to_string` function has any kind of generic parameters. changelog: Fix FP in `inherent_to_string`
Configuration menu - View commit details
-
Copy full SHA for 728f397 - Browse repository at this point
Copy the full SHA 728f397View commit details
Commits on Feb 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for bfdf0fa - Browse repository at this point
Copy the full SHA bfdf0faView commit details -
Configuration menu - View commit details
-
Copy full SHA for efe33f9 - Browse repository at this point
Copy the full SHA efe33f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5fe3b6c - Browse repository at this point
Copy the full SHA 5fe3b6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 23aa2f8 - Browse repository at this point
Copy the full SHA 23aa2f8View commit details -
Auto merge of rust-lang#6769 - Y-Nak:inconsistent-struct-constructor,…
… r=matthiaskrgr Inconsistent struct constructor fixes: rust-lang#6352 r? `@matthiaskrgr` I added the lint that checks for the struct constructors where the order of the field init shorthands is inconsistent with that in the struct definition. changelog: Add style lint: `inconsistent_struct_constructor`
Configuration menu - View commit details
-
Copy full SHA for fe01ddc - Browse repository at this point
Copy the full SHA fe01ddcView commit details -
upper_case_acronyms: move lint from style to pedantic lint group
The lint does point out inconsistency with the Rust naming convention, but the fact that rustc does not warn about the inconsistency by default means that clippy probably should not warn by default either. changelog: move upper_case_acronyms lint from style to pedantic group.
Configuration menu - View commit details
-
Copy full SHA for 0eefa61 - Browse repository at this point
Copy the full SHA 0eefa61View commit details -
Auto merge of rust-lang#6775 - matthiaskrgr:upper_case_pedantic, r=fl…
…ip1995 upper_case_acronyms: move lint from style to pedantic lint group The lint does point out inconsistency with the Rust naming convention, but the fact that rustc does not warn about the inconsistency by default means that clippy probably should not warn by default either. changelog: move upper_case_acronyms lint from style to pedantic group.
Configuration menu - View commit details
-
Copy full SHA for 697f3b6 - Browse repository at this point
Copy the full SHA 697f3b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d6640a - Browse repository at this point
Copy the full SHA 0d6640aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e05965e - Browse repository at this point
Copy the full SHA e05965eView commit details
Commits on Feb 23, 2021
-
Auto merge of rust-lang#6774 - Y-Nak:quick-fix-bless, r=phansch
Quick fix cargo dev bless fixes rust-lang#6757 r? `@phansch` Trying to do a quick fix of `bless`, I'm not sure how much work it will need to do transition to `bless` built in `compiletest`, so please feel free to close this PR if it will not need so much. changelog: none
Configuration menu - View commit details
-
Copy full SHA for a3127fa - Browse repository at this point
Copy the full SHA a3127faView commit details -
Auto merge of rust-lang#6777 - giraffate:remove_unneeded_blank_lines_…
…from_doc, r=phansch Remove unneeded blank lines from doc Remove unneeded blank lines like below. <img width="1142" alt="スクリーンショット 2021-02-22 23 01 17" src="https://user-images.githubusercontent.com/17407489/108719295-bb9ff800-7562-11eb-9338-8f2571e61c56.png"> changelog: none
Configuration menu - View commit details
-
Copy full SHA for 0984754 - Browse repository at this point
Copy the full SHA 0984754View commit details -
lintcheck: rerun if clippy changed
Automatically clean lintchecks shared target dir (will force clippy to recheck sources) if the clippy binaries are older than the lintcheck logs. Also update lintcheck logs
Configuration menu - View commit details
-
Copy full SHA for 363f6d3 - Browse repository at this point
Copy the full SHA 363f6d3View commit details -
Improve error msgs when found type is deref of expected
This improves help messages in two cases: - When expected type is `T` and found type is `&T`, we now look through blocks and suggest dereferencing the expression of the block, rather than the whole block. - In the above case, if the expression is an `&`, we not suggest removing the `&` instead of adding `*`. Both of these are demonstrated in the regression test. Before this patch the first error in the test would be: error[E0308]: `if` and `else` have incompatible types --> test.rs:8:9 | 5 | / if true { 6 | | a | | - expected because of this 7 | | } else { 8 | | b | | ^ expected `usize`, found `&usize` 9 | | }; | |_____- `if` and `else` have incompatible types | help: consider dereferencing the borrow | 7 | } else *{ 8 | b 9 | }; | Now: error[E0308]: `if` and `else` have incompatible types --> test.rs:8:9 | 5 | / if true { 6 | | a | | - expected because of this 7 | | } else { 8 | | b | | ^ | | | | | expected `usize`, found `&usize` | | help: consider dereferencing the borrow: `*b` 9 | | }; | |_____- `if` and `else` have incompatible types The second error: error[E0308]: `if` and `else` have incompatible types --> test.rs:14:9 | 11 | / if true { 12 | | 1 | | - expected because of this 13 | | } else { 14 | | &1 | | ^^ expected integer, found `&{integer}` 15 | | }; | |_____- `if` and `else` have incompatible types | help: consider dereferencing the borrow | 13 | } else *{ 14 | &1 15 | }; | now: error[E0308]: `if` and `else` have incompatible types --> test.rs:14:9 | 11 | / if true { 12 | | 1 | | - expected because of this 13 | | } else { 14 | | &1 | | ^- | | || | | |help: consider removing the `&`: `1` | | expected integer, found `&{integer}` 15 | | }; | |_____- `if` and `else` have incompatible types Fixes rust-lang#82361
Configuration menu - View commit details
-
Copy full SHA for fa74d48 - Browse repository at this point
Copy the full SHA fa74d48View commit details -
Auto merge of rust-lang#6780 - matthiaskrgr:lintcheck2, r=flip1995
lintcheck: fully rerun lintcheck if clippy was rebuilt since last log update Automatically clean lintchecks shared target dir (will force clippy to recheck sources) if the clippy binaries are older than the lintcheck logs. Also updated lintcheck logs in the pr. changelog: lintcheck: fully rerun lintcheck if clippy was rebuilt since last log update
Configuration menu - View commit details
-
Copy full SHA for f02df27 - Browse repository at this point
Copy the full SHA f02df27View commit details -
lintcheck fix build (forgot to pass function parameter) and runtime (…
…don't check metadata of directory if it does not exist)
Configuration menu - View commit details
-
Copy full SHA for eaae95b - Browse repository at this point
Copy the full SHA eaae95bView commit details -
Auto merge of rust-lang#6781 - matthiaskrgr:lintcheck_fix, r=matthias…
…krgr lintcheck fix build (forgot to pass function parameter) and runtime (… …don't check metadata of directory if it does not exist) Accidentally broke lintcheck in my previous commit. changelog: None
Configuration menu - View commit details
-
Copy full SHA for a5c5c8f - Browse repository at this point
Copy the full SHA a5c5c8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2179313 - Browse repository at this point
Copy the full SHA 2179313View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea3118c - Browse repository at this point
Copy the full SHA ea3118cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a6eb836 - Browse repository at this point
Copy the full SHA a6eb836View commit details -
`escape_unicode`, `escape_default`, `len_utf8`, `len_utf16`, to_ascii_lowercase`, `eq_ignore_ascii_case` `u8` methods `to_ascii_lowercase`, `to_ascii_uppercase` also must be made const u8 methods made const Update methods.rs Update mod.rs Update methods.rs Fix `since` in rustc_const_stable to next stable Fix `since` in rustc_const_stable to next stable Update methods.rs Update mod.rs
Configuration menu - View commit details
-
Copy full SHA for bcb1f06 - Browse repository at this point
Copy the full SHA bcb1f06View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a72491 - Browse repository at this point
Copy the full SHA 6a72491View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b41ad1 - Browse repository at this point
Copy the full SHA 7b41ad1View commit details -
Make ascii_change_case_unchecked const
Rebases and makes changes required by the recent merge of rust-lang#81837.
Configuration menu - View commit details
-
Copy full SHA for 1ed9dd4 - Browse repository at this point
Copy the full SHA 1ed9dd4View commit details -
Constify ptr::write and the write[_unaligned] methods on *mut T
Constify intrinsics::forget
Configuration menu - View commit details
-
Copy full SHA for 89c7610 - Browse repository at this point
Copy the full SHA 89c7610View commit details -
Configuration menu - View commit details
-
Copy full SHA for de6f1b8 - Browse repository at this point
Copy the full SHA de6f1b8View commit details -
Auto merge of rust-lang#6573 - Jarcho:option_match_map, r=llogiq
New lint: option_manual_map fixes: rust-lang#6 changelog: Added lint: `match_map`
Configuration menu - View commit details
-
Copy full SHA for a2c25fa - Browse repository at this point
Copy the full SHA a2c25faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 09bded4 - Browse repository at this point
Copy the full SHA 09bded4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d2de8f - Browse repository at this point
Copy the full SHA 8d2de8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c5b9d22 - Browse repository at this point
Copy the full SHA c5b9d22View commit details -
Configuration menu - View commit details
-
Copy full SHA for 523de29 - Browse repository at this point
Copy the full SHA 523de29View commit details -
Configuration menu - View commit details
-
Copy full SHA for 29b6570 - Browse repository at this point
Copy the full SHA 29b6570View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7f03c6 - Browse repository at this point
Copy the full SHA b7f03c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff157ae - Browse repository at this point
Copy the full SHA ff157aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f04b50 - Browse repository at this point
Copy the full SHA 5f04b50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e7b1cc - Browse repository at this point
Copy the full SHA 1e7b1ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 964f2a0 - Browse repository at this point
Copy the full SHA 964f2a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 979206f - Browse repository at this point
Copy the full SHA 979206fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce76fb3 - Browse repository at this point
Copy the full SHA ce76fb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c26c0f - Browse repository at this point
Copy the full SHA 2c26c0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 50e3ef9 - Browse repository at this point
Copy the full SHA 50e3ef9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8500ad5 - Browse repository at this point
Copy the full SHA 8500ad5View commit details -
Update clippy_utils/Cargo.toml
Co-authored-by: Philipp Krones <hello@philkrones.com>
Configuration menu - View commit details
-
Copy full SHA for 33ee598 - Browse repository at this point
Copy the full SHA 33ee598View commit details -
Configuration menu - View commit details
-
Copy full SHA for c7869b8 - Browse repository at this point
Copy the full SHA c7869b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab7381f - Browse repository at this point
Copy the full SHA ab7381fView commit details
Commits on Feb 24, 2021
-
README: Add subsection on running Clippy as a rustc wrapper
This is useful for projects that do not use cargo. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Configuration menu - View commit details
-
Copy full SHA for 6b8b43c - Browse repository at this point
Copy the full SHA 6b8b43cView commit details -
rustdoc: Name fields of
ResolutionFailure::WrongNamespace
It makes it clearer that the `Namespace` is the one requested by the disambiguator, rather than the actual namespace of the item. It said that in the docs before, but now you can tell in the code so it reduces the potential for confusion.
Configuration menu - View commit details
-
Copy full SHA for a03950b - Browse repository at this point
Copy the full SHA a03950bView commit details -
Auto merge of rust-lang#6782 - ojeda:readme-as-wrapper, r=flip1995
README: Add subsection on running Clippy as a rustc wrapper This is useful for projects that do not use cargo. changelog: README: Add subsection on running Clippy as a rustc wrapper
Configuration menu - View commit details
-
Copy full SHA for 045d3f3 - Browse repository at this point
Copy the full SHA 045d3f3View commit details -
Auto merge of rust-lang#6756 - smoelius:clippy_utils, r=flip1995,obi-obk
Factor out `clippy_utils` crate As discussed in rust-lang/rust-clippy#6746, this PR factors out `clippy_lints::utils` as its own crate, `clippy_utils` . This change will allow `clippy_utils` to be used in lints outside of Clippy. There is no plan to publish this crate on `crates.io` (see rust-lang/rust-clippy#6746 (comment)). Dependent crates should obtain it from GitHub. changelog: Factor out `clippy_utils` so it can be used by external tools (not published)
Configuration menu - View commit details
-
Copy full SHA for 489c4f0 - Browse repository at this point
Copy the full SHA 489c4f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8047458 - Browse repository at this point
Copy the full SHA 8047458View commit details -
Auto merge of rust-lang#6786 - smoelius:move-conf-rs-back-into-clippy…
…-lints, r=flip1995 Move conf.rs back into clippy_lints This is an alternative solution to rust-lang#6785 to fix the CI break caused by rust-lang#6756. changelog: none
Configuration menu - View commit details
-
Copy full SHA for 4545150 - Browse repository at this point
Copy the full SHA 4545150View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72e3335 - Browse repository at this point
Copy the full SHA 72e3335View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0d18e9 - Browse repository at this point
Copy the full SHA b0d18e9View commit details -
upper_case_acronyms: add optional aggressive mode and relax default
Moves the lint back from pedantic to style group. The lint default now only warns on names that are completely capitalized, like "WORD" and only if the name is longer than 2 chars (so that names where each of the letter represents a word are still distinguishable). For example: FP (false positive) would still be "valid" and not warned about (but EOF would warn). A "upper_case_acronyms_aggressive: true/false" config option was added that restores the original lint behaviour to warn on any kind of camel case name that had more than one capital letter following another capital letter.
Configuration menu - View commit details
-
Copy full SHA for 59750dc - Browse repository at this point
Copy the full SHA 59750dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 913c710 - Browse repository at this point
Copy the full SHA 913c710View commit details -
Account for associated consts in the "unstable assoc item name coliss…
…ion" lint Fix rust-lang#81663.
Configuration menu - View commit details
-
Copy full SHA for e655941 - Browse repository at this point
Copy the full SHA e655941View commit details
Commits on Feb 25, 2021
-
Auto merge of rust-lang#6783 - avitex:add-opendns-ident, r=giraffate
Add OpenDNS to `doc-valid-idents` changelog: This commit adds `"OpenDNS"` to doc-valid-idents to avoid `doc_markdown` false positives.
Configuration menu - View commit details
-
Copy full SHA for 76a689d - Browse repository at this point
Copy the full SHA 76a689dView commit details -
fix sentence / address review comments
Configuration menu - View commit details
-
Copy full SHA for 2a6b061 - Browse repository at this point
Copy the full SHA 2a6b061View commit details -
Auto merge of rust-lang#6788 - matthiaskrgr:upper_case_acronyms, r=fl…
…ip1995 move upper_case_acronyms back to style, but make the default behaviour less aggressive by default (can be unleashed via config option) Previous discussion in the bi-weekly clippy meeting for reference: https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Meeting.202021-02-23/near/227458019 Move the `upper_case_acronyms` lint back to the style group. Only warn on fully-capitalized names by default. Add add a clippy-config option `upper-case-acronyms-aggressive: true/false` to enabled more aggressive linting on all substrings that could be capitalized acronyms. --- changelog: reenable upper_case_acronyms by default but make the more aggressive linting opt-in via config option
Configuration menu - View commit details
-
Copy full SHA for ef41f2b - Browse repository at this point
Copy the full SHA ef41f2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c6408a4 - Browse repository at this point
Copy the full SHA c6408a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f8c7c2 - Browse repository at this point
Copy the full SHA 8f8c7c2View commit details -
Auto merge of rust-lang#6789 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` changelog: None
Configuration menu - View commit details
-
Copy full SHA for 928e72d - Browse repository at this point
Copy the full SHA 928e72dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81af346 - Browse repository at this point
Copy the full SHA 81af346View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6dd9b9 - Browse repository at this point
Copy the full SHA a6dd9b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0046d7c - Browse repository at this point
Copy the full SHA 0046d7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d7cb66d - Browse repository at this point
Copy the full SHA d7cb66dView commit details -
Rollup merge of rust-lang#75807 - jyn514:num-intra-link, r=poliorcetics
Convert core/num/mod.rs to intra-doc links Helps with rust-lang#75080. This can't convert the associated constants `MAX` and `MIN` until rust-lang#74489 is merged. r? `@poliorcetics`
Configuration menu - View commit details
-
Copy full SHA for c9cf922 - Browse repository at this point
Copy the full SHA c9cf922View commit details -
Rollup merge of rust-lang#80534 - LeSeulArtichaut:doc-include, r=jyn514
Use #[doc = include_str!()] in std cc rust-lang#78835 (comment) r? `````@jyn514`````
Configuration menu - View commit details
-
Copy full SHA for cb2b4ff - Browse repository at this point
Copy the full SHA cb2b4ffView commit details -
Rollup merge of rust-lang#80553 - derekdreery:arc_error, r=m-ou-se
Add an impl of Error on `Arc<impl Error>`. `Display` already exists so this should be a non-controversial change (famous last words). Would have to be insta-stable.
Configuration menu - View commit details
-
Copy full SHA for 351d947 - Browse repository at this point
Copy the full SHA 351d947View commit details -
Rollup merge of rust-lang#81167 - usbalbin:const_write, r=oli-obk
Make ptr::write const ~~The code in this PR as of right now is not much more than an experiment.~~ ~~This should, if I am not mistaken, in theory compile and pass the tests once the bootstraping compiler is updated. Thus the PR is blocked on that which should happen some time after the February the 9th. Also we might want to wait for rust-lang#79989 to avoid regressing performance due to using `mem::forget` over `intrinsics::forget`~~.
Configuration menu - View commit details
-
Copy full SHA for 4b9c213 - Browse repository at this point
Copy the full SHA 4b9c213View commit details -
Rollup merge of rust-lang#81575 - camelid:rustdoc-wrongnamespace-clea…
…nup, r=jyn514 rustdoc: Name fields of `ResolutionFailure::WrongNamespace` It makes it clearer that the `Namespace` is the one requested by the disambiguator, rather than the actual namespace of the item. It said that in the docs before, but now you can tell in the code so it reduces the potential for confusion.
Configuration menu - View commit details
-
Copy full SHA for 749d70a - Browse repository at this point
Copy the full SHA 749d70aView commit details -
Rollup merge of rust-lang#81713 - estebank:unstable-assoc-item-lint, …
…r=oli-obk Account for associated consts in the "unstable assoc item name colission" lint Fix rust-lang#81663.
Configuration menu - View commit details
-
Copy full SHA for c562913 - Browse repository at this point
Copy the full SHA c562913View commit details -
Rollup merge of rust-lang#82078 - lopopolo:char-u8-const-fn, r=m-ou-se
Make char and u8 methods const char methods `len_utf8`, `len_utf16`, `to_ascii_lowercase`, `eq_ignore_ascii_case` can be made const. `u8` methods `to_ascii_lowercase`, `to_ascii_uppercase` are required to be const as well. `u8::eq_ignore_ascii_case` was additionally made const. Rebase of rust-lang#79549 originally authored by ``@YenForYang.`` Changes from that PR: - Squashed all commits from rust-lang#79549. - rebased to latest upstream master. - Removed const attributes for `char::escape_unicode` and `char::escape_default`. - Updated `since` attributes for `const` stabilization to 1.52.0. cc ``@m-ou-se.``
Configuration menu - View commit details
-
Copy full SHA for f891af9 - Browse repository at this point
Copy the full SHA f891af9View commit details -
Rollup merge of rust-lang#82087 - estebank:abolish-ice, r=oli-obk
Fix ICE caused by suggestion with no code substitutions Change suggestion logic to filter and checking _before_ creating specific resolution suggestion. Assert earlier that suggestions contain code substitions to make it easier in the future to debug invalid uses. If we find this becomes too noisy in the wild, we can always make the emitter resilient to these cases and remove the assertions. Fix rust-lang#78651.
Configuration menu - View commit details
-
Copy full SHA for 568ae3a - Browse repository at this point
Copy the full SHA 568ae3aView commit details -
Rollup merge of rust-lang#82090 - notriddle:consider-using-a-semicolo…
…n-here, r=estebank Do not consider using a semicolon inside of a different-crate macro Fixes rust-lang#81943
Configuration menu - View commit details
-
Copy full SHA for 6b06e57 - Browse repository at this point
Copy the full SHA 6b06e57View commit details -
Rollup merge of rust-lang#82213 - est31:slices_for_vecs, r=jyn514
Slices for vecs
Configuration menu - View commit details
-
Copy full SHA for 199095a - Browse repository at this point
Copy the full SHA 199095aView commit details -
Rollup merge of rust-lang#82214 - est31:no_to_string, r=oli-obk
Remove redundant to_string calls
Configuration menu - View commit details
-
Copy full SHA for 00aa3e6 - Browse repository at this point
Copy the full SHA 00aa3e6View commit details -
Rollup merge of rust-lang#82220 - henryboisdequin:fixes-80853, r=varkor
fix the false 'defined here' messages Closes rust-lang#80853. Take this code: ```rust struct S; fn repro_ref(thing: S) { thing(); } ``` Previously, the error message would be this: ``` error[E0618]: expected function, found `S` --> src/lib.rs:4:5 | 3 | fn repro_ref(thing: S) { | ----- `S` defined here 4 | thing(); | ^^^^^-- | | | call expression requires function error: aborting due to previous error ``` This is incorrect as `S` is not defined in the function arguments, `thing` is defined there. With this change, the following is emitted: ``` error[E0618]: expected function, found `S` --> $DIR/80853.rs:4:5 | LL | fn repro_ref(thing: S) { | ----- is of type `S` LL | thing(); | ^^^^^-- | | | call expression requires function | = note: local variable `S` is not a function error: aborting due to previous error ``` As you can see, this error message points out that `thing` is of type `S` and later in a note, that `S` is not a function. This change does seem like a downside for some error messages. Take this example: ``` LL | struct Empty2; | -------------- is of type `Empty2` ``` As you can see, the error message shows that the definition of `Empty2` is of type `Empty2`. Although this isn't wrong, it would be more helpful if it would say something like this (which was there previously): ``` LL | struct Empty2; | -------------- `Empty2` defined here ``` If there is a better way of doing this, where the `Empty2` example would stay the same as without this change, please inform me. **Update: This is now fixed** CC `@camelid`
Configuration menu - View commit details
-
Copy full SHA for 6bf4867 - Browse repository at this point
Copy the full SHA 6bf4867View commit details -
Rollup merge of rust-lang#82313 - jsha:update-normalize-css, r=Guilla…
…umeGomez Update normalize.css to 8.0.1 From From https://github.com/necolas/normalize.css/releases/tag/8.0.1. The old version was 3.0.0, from 2014. The new version is from 2018. I noticed when looking at frontend performance for rustdoc that this file was out of date. The URL in the 3.0.0 license header now resolves to an incorrect destination. And generally it seems good to be up-to-date. Before-and-after images, plus diff, under details. TL;DR: Nothing changes except a slight adjustment to line height. <details> ![with-normalize-8 0 1](https://user-images.githubusercontent.com/220205/108581849-bd5c8800-72e4-11eb-9150-78c8d67ca37a.png) ![with-normalize-3 0 0](https://user-images.githubusercontent.com/220205/108581848-bcc3f180-72e4-11eb-8b45-0cd1415a51e5.png) ![diff](https://user-images.githubusercontent.com/220205/108581890-dfeea100-72e4-11eb-93c5-6284492f54a9.png) </details>
Configuration menu - View commit details
-
Copy full SHA for 05ed081 - Browse repository at this point
Copy the full SHA 05ed081View commit details -
Rollup merge of rust-lang#82321 - bugadani:ast3, r=varkor
AST: Remove some unnecessary boxes
Configuration menu - View commit details
-
Copy full SHA for 20928e0 - Browse repository at this point
Copy the full SHA 20928e0View commit details -
Rollup merge of rust-lang#82364 - osa1:issue82361, r=estebank
Improve error msgs when found type is deref of expected This improves help messages in two cases: - When expected type is `T` and found type is `&T`, we now look through blocks and suggest dereferencing the expression of the block, rather than the whole block. - In the above case, if the expression is an `&`, we not suggest removing the `&` instead of adding `*`. Both of these are demonstrated in the regression test. Before this patch the first error in the test would be: error[E0308]: `if` and `else` have incompatible types --> test.rs:8:9 | 5 | / if true { 6 | | a | | - expected because of this 7 | | } else { 8 | | b | | ^ expected `usize`, found `&usize` 9 | | }; | |_____- `if` and `else` have incompatible types | help: consider dereferencing the borrow | 7 | } else *{ 8 | b 9 | }; | Now: error[E0308]: `if` and `else` have incompatible types --> test.rs:8:9 | 5 | / if true { 6 | | a | | - expected because of this 7 | | } else { 8 | | b | | ^ | | | | | expected `usize`, found `&usize` | | help: consider dereferencing the borrow: `*b` 9 | | }; | |_____- `if` and `else` have incompatible types The second error: error[E0308]: `if` and `else` have incompatible types --> test.rs:14:9 | 11 | / if true { 12 | | 1 | | - expected because of this 13 | | } else { 14 | | &1 | | ^^ expected integer, found `&{integer}` 15 | | }; | |_____- `if` and `else` have incompatible types | help: consider dereferencing the borrow | 13 | } else *{ 14 | &1 15 | }; | now: error[E0308]: `if` and `else` have incompatible types --> test.rs:14:9 | 11 | / if true { 12 | | 1 | | - expected because of this 13 | | } else { 14 | | &1 | | ^- | | || | | |help: consider removing the `&`: `1` | | expected integer, found `&{integer}` 15 | | }; | |_____- `if` and `else` have incompatible types Fixes rust-lang#82361 --- r? ````@estebank````
Configuration menu - View commit details
-
Copy full SHA for 12ea0f6 - Browse repository at this point
Copy the full SHA 12ea0f6View commit details -
Rollup merge of rust-lang#82514 - flip1995:clippyup, r=Manishearth
Update Clippy Bi-weekly Clippy update. This updates `Cargo.lock`, so probably needs rollup=never. (rust-lang@0046d7c) rust-lang@a6dd9b9 fixes things in Clippy, so that it can be build and tested. This needs proper fixing in Clippy, but I didn't want this to block the sync. r? `@Manishearth`
Configuration menu - View commit details
-
Copy full SHA for ebe67d9 - Browse repository at this point
Copy the full SHA ebe67d9View commit details