-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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 7 pull requests #91157
Rollup of 7 pull requests #91157
Commits on Nov 1, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c3d4577 - Browse repository at this point
Copy the full SHA c3d4577View commit details -
Ensure
match_overlapping_arms
warns on firstMichael Wright committedNov 1, 2021 Configuration menu - View commit details
-
Copy full SHA for 693df63 - Browse repository at this point
Copy the full SHA 693df63View commit details
Commits on Nov 4, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1011e08 - Browse repository at this point
Copy the full SHA 1011e08View commit details -
Configuration menu - View commit details
-
Copy full SHA for d134ddd - Browse repository at this point
Copy the full SHA d134dddView commit details -
Configuration menu - View commit details
-
Copy full SHA for a276cd2 - Browse repository at this point
Copy the full SHA a276cd2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5405152 - Browse repository at this point
Copy the full SHA 5405152View commit details -
Auto merge of rust-lang#7928 - xFrednet:rust-90354-deploy-clippy-docs…
…, r=flip1995 Reference `clippy_utils` docs on nightly-rustc and some other documentation updates The `clippy_utils` crate is now part of the nightly-rustc documentation. See [**very beautiful documentation**](https://doc.rust-lang.org/nightly/nightly-rustc/clippy_utils/). This PR references them in our documentation and updates some other documentation. changelog: none
Configuration menu - View commit details
-
Copy full SHA for 84a4ab7 - Browse repository at this point
Copy the full SHA 84a4ab7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e674d0a - Browse repository at this point
Copy the full SHA e674d0aView commit details
Commits on Nov 5, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 93ffc9d - Browse repository at this point
Copy the full SHA 93ffc9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 14d54f0 - Browse repository at this point
Copy the full SHA 14d54f0View commit details -
Auto merge of rust-lang#7909 - mikerite:fix-7816, r=camsteffen
Fix false negative in [`match_overlapping_arms`] changelog: Fix false negative in [`match_overlapping_arms`]
Configuration menu - View commit details
-
Copy full SHA for 85e2592 - Browse repository at this point
Copy the full SHA 85e2592View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b1b6a2 - Browse repository at this point
Copy the full SHA 5b1b6a2View commit details -
Auto merge of rust-lang#7897 - camsteffen:in-macro, r=flip1995
Replace `in_macro` usage with `from_expansion` changelog: none Generally replace `in_macro(span)` with `span.from_expansion()`. If we're just trying to avoid expanded code, this seems more appropriate because any kind of expanded code is prone to false positives. One place I did not touch is `macro_use.rs`. I think this lint could use a rewrite so I moved `in_macro` there, the only place it is still used.
Configuration menu - View commit details
-
Copy full SHA for 9a60a93 - Browse repository at this point
Copy the full SHA 9a60a93View commit details -
Auto merge of rust-lang#7937 - flip1995:rustfmt-skip-artefact, r=Mani…
…shearth Remove rustfmt::skip attribute from register_plugins function r? `@Manishearth` since you added this in rust-lang#540 😄 changelog: none
Configuration menu - View commit details
-
Copy full SHA for 445c83f - Browse repository at this point
Copy the full SHA 445c83fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c4dd8d - Browse repository at this point
Copy the full SHA 1c4dd8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 73501da - Browse repository at this point
Copy the full SHA 73501daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5239a90 - Browse repository at this point
Copy the full SHA 5239a90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c7b7e8 - Browse repository at this point
Copy the full SHA 2c7b7e8View commit details
Commits on Nov 6, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c96cd35 - Browse repository at this point
Copy the full SHA c96cd35View commit details -
Add
cargo dev lint
to manually run clippy on a fileI found the manual run command really useful, this makes it a bit easier to type
Configuration menu - View commit details
-
Copy full SHA for b5bae09 - Browse repository at this point
Copy the full SHA b5bae09View commit details -
Auto merge of rust-lang#7894 - Serial-ATA:extend-author-lint, r=camst…
…effen Extend author lint changelog: none * Print float and int suffixes * Print labels * Struct field checks * Repeat length expression check * Destructure method calls * Destructure closures
Configuration menu - View commit details
-
Copy full SHA for e3d1e60 - Browse repository at this point
Copy the full SHA e3d1e60View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a8919d - Browse repository at this point
Copy the full SHA 9a8919dView commit details
Commits on Nov 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 0cb9ac2 - Browse repository at this point
Copy the full SHA 0cb9ac2View commit details -
Auto merge of rust-lang#7917 - Alexendoo:cargo-dev-lint, r=giraffate
Add `cargo dev lint` to manually run clippy on a file I found the manual run command really useful, this makes it a bit easier to type Not sure if this belongs in the changelog or not changelog: Add `cargo dev lint` to manually run clippy on a file
Configuration menu - View commit details
-
Copy full SHA for 07f4f7c - Browse repository at this point
Copy the full SHA 07f4f7cView commit details -
ast: Fix naming conventions in AST structures
TraitKind -> Trait TyAliasKind -> TyAlias ImplKind -> Impl FnKind -> Fn All `*Kind`s in AST are supposed to be enums. Tuple structs are converted to braced structs for the types above, and fields are reordered in syntactic order. Also, mutable AST visitor now correctly visit spans in defaultness, unsafety, impl polarity and constness.
Configuration menu - View commit details
-
Copy full SHA for c063203 - Browse repository at this point
Copy the full SHA c063203View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c6f03d - Browse repository at this point
Copy the full SHA 2c6f03dView commit details
Commits on Nov 8, 2021
-
Don't abort compilation after giving a lint error
The only reason to use `abort_if_errors` is when the program is so broken that either: 1. later passes get confused and ICE 2. any diagnostics from later passes would be noise This is never the case for lints, because the compiler has to be able to deal with `allow`-ed lints. So it can continue to lint and compile even if there are lint errors.
Configuration menu - View commit details
-
Copy full SHA for ac9dd36 - Browse repository at this point
Copy the full SHA ac9dd36View commit details -
Auto merge of rust-lang#7945 - Serial-ATA:issue-7934, r=flip1995
Fix ICE in undocumented_unsafe_blocks changelog: Fix ICE in [`undocumented_unsafe_blocks`] closes: rust-lang#7934
Configuration menu - View commit details
-
Copy full SHA for 6fcdf81 - Browse repository at this point
Copy the full SHA 6fcdf81View commit details -
Auto merge of rust-lang#7938 - camsteffen:visitors, r=xFrednet
Introduce `expr_visitor` and `expr_visitor_no_bodies` changelog: none A couple utils that satisfy a *lot* of visitor use cases. Factoring in every possible usage would be really big so I just focused on cleaning clippy_utils.
Configuration menu - View commit details
-
Copy full SHA for 94517d3 - Browse repository at this point
Copy the full SHA 94517d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d23824 - Browse repository at this point
Copy the full SHA 6d23824View commit details -
Configuration menu - View commit details
-
Copy full SHA for 413d255 - Browse repository at this point
Copy the full SHA 413d255View commit details
Commits on Nov 9, 2021
-
Auto merge of rust-lang#7944 - Serial-ATA:deprecated-cfg-attr-msrv, r…
…=giraffate Add MSRV to deprecated_cfg_attr changelog: Add MSRV to [`deprecated_cfg_attr`] closes: rust-lang#7922
Configuration menu - View commit details
-
Copy full SHA for 830f220 - Browse repository at this point
Copy the full SHA 830f220View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6809234 - Browse repository at this point
Copy the full SHA 6809234View commit details -
Remove
unimplemented!()
case in matches codeThis unbounded case never actually happens because `all_ranges(..)` uses the scrutinee type bounds for open ranges. Switch to our own `Bound` enum so that we don't have this case.
Michael Wright committedNov 9, 2021 Configuration menu - View commit details
-
Copy full SHA for 98416d7 - Browse repository at this point
Copy the full SHA 98416d7View commit details -
Only the end bounds of ranges can actually be included or excluded. This commit changes the SpannedRange type to reflect that. Update `Kind::value` to and `Kind::cmp` for this change. `Kind::cmp` gets flipped to check value first and then the bound details and is much shorter.
Michael Wright committedNov 9, 2021 Configuration menu - View commit details
-
Copy full SHA for 949b259 - Browse repository at this point
Copy the full SHA 949b259View commit details -
Simplify range comparison code
Reword the `Kind` type so that the `cmp` function is simpler.
Michael Wright committedNov 9, 2021 Configuration menu - View commit details
-
Copy full SHA for f829523 - Browse repository at this point
Copy the full SHA f829523View commit details -
Michael Wright committed
Nov 9, 2021 Configuration menu - View commit details
-
Copy full SHA for c8f909e - Browse repository at this point
Copy the full SHA c8f909eView commit details -
Michael Wright committed
Nov 9, 2021 Configuration menu - View commit details
-
Copy full SHA for 81fa758 - Browse repository at this point
Copy the full SHA 81fa758View commit details -
matches: remove
pub
from some itemsThere is no reason for these to be `pub`. They aren't used anywhere else.
Michael Wright committedNov 9, 2021 Configuration menu - View commit details
-
Copy full SHA for 8b76915 - Browse repository at this point
Copy the full SHA 8b76915View commit details -
Auto merge of rust-lang#90485 - camsteffen:fmt-args-less-bind, r=m-ou-se
Don't destructure args tuple in format_args! This allows Clippy to parse the HIR more simply since `arg0` is changed to `_args.0`. (cc rust-lang/rust-clippy#7843). From rustc's perspective, I think this is something between a lateral move and a tiny improvement since there are fewer bindings. r? `@m-ou-se`
Configuration menu - View commit details
-
Copy full SHA for 6536c58 - Browse repository at this point
Copy the full SHA 6536c58View commit details -
Auto merge of rust-lang#87337 - jyn514:lint-error, r=oli-obk,flip1995
Don't abort compilation after giving a lint error The only reason to use `abort_if_errors` is when the program is so broken that either: 1. later passes get confused and ICE 2. any diagnostics from later passes would be noise This is never the case for lints, because the compiler has to be able to deal with `allow`-ed lints. So it can continue to lint and compile even if there are lint errors. Closes rust-lang#82761. This is a WIP because I have a feeling it will exit with 0 even if there were lint errors; I don't have a computer that can build rustc locally at the moment.
Configuration menu - View commit details
-
Copy full SHA for 0332a7b - Browse repository at this point
Copy the full SHA 0332a7bView commit details -
Auto merge of rust-lang#90700 - fee1-dead:select-returns-vec, r=david…
…twco Make `select_*` methods return `Vec` for `TraitEngine` This reduces some complexity as an empty vec means no errors and non-empty vec means errors occurred.
Configuration menu - View commit details
-
Copy full SHA for 36d5475 - Browse repository at this point
Copy the full SHA 36d5475View commit details -
Configuration menu - View commit details
-
Copy full SHA for e54c341 - Browse repository at this point
Copy the full SHA e54c341View commit details -
Auto merge of rust-lang#7949 - Serial-ATA:issue-7921, r=flip1995
Fix suggestion for deref expressions in redundant_pattern_matching changelog: Fix suggestion for deref expressions in [`redundant_pattern_matching`] closes: rust-lang#7921
Configuration menu - View commit details
-
Copy full SHA for c94d62b - Browse repository at this point
Copy the full SHA c94d62bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3382201 - Browse repository at this point
Copy the full SHA 3382201View commit details -
Configuration menu - View commit details
-
Copy full SHA for 96db1d6 - Browse repository at this point
Copy the full SHA 96db1d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e84f00 - Browse repository at this point
Copy the full SHA 6e84f00View commit details -
Rollup merge of rust-lang#89561 - nbdd0121:const_typeck, r=nikomatsakis
Type inference for inline consts Fixes rust-lang#78132 Fixes rust-lang#78174 Fixes rust-lang#81857 Fixes rust-lang#89964 Perform type checking/inference of inline consts in the same context as the outer def, similar to what is currently done to closure. Doing so would require `closure_base_def_id` of the inline const to return the outer def, and since `closure_base_def_id` can be called on non-local crate (and thus have no HIR available), a new `DefKind` is created for inline consts. The type of the generated anon const can capture lifetime of outer def, so we couldn't just use the typeck result as the type of the inline const's def. Closure has a similar issue, and it uses extra type params `CK, CS, U` to capture closure kind, input/output signature and upvars. I use a similar approach for inline consts, letting it have an extra type param `R`, and then `typeof(InlineConst<[paremt generics], R>)` would just be `R`. In borrowck region requirements are also propagated to the outer MIR body just like it's currently done for closure. With this PR, inline consts in expression position are quitely usable now; however the usage in pattern position is still incomplete -- since those does not remain in the MIR borrowck couldn't verify the lifetime there. I have left an ignored test as a FIXME. Some disucssions can be found on [this Zulip thread](https://rust-lang.zulipchat.com/#narrow/stream/260443-project-const-generics/topic/inline.20consts.20typeck). cc `````@spastorino````` `````@lcnr````` r? `````@nikomatsakis````` `````@rustbot````` label A-inference F-inline_const T-compiler
Configuration menu - View commit details
-
Copy full SHA for 3b6b1ab - Browse repository at this point
Copy the full SHA 3b6b1abView commit details -
Auto merge of rust-lang#7950 - Serial-ATA:issue-7920, r=llogiq
Fix `explicit_counter_loop` suggestion for non-usize types changelog: Add a new suggestion for non-usize types in [`explicit_counter_loop`] closes: rust-lang#7920
Configuration menu - View commit details
-
Copy full SHA for f69721f - Browse repository at this point
Copy the full SHA f69721fView commit details -
Auto merge of rust-lang#7951 - mikerite:matches-20211109, r=llogiq
`match_overlapping_arm` refactoring The main purpose of this pull request is to remove the unneeded and scary `unimplented!()` in the `match_arm_overlapping` code. The rest is gratuitous refactoring. changelog: none
Configuration menu - View commit details
-
Copy full SHA for 93f13d5 - Browse repository at this point
Copy the full SHA 93f13d5View commit details
Commits on Nov 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e8861c8 - Browse repository at this point
Copy the full SHA e8861c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for a003ca6 - Browse repository at this point
Copy the full SHA a003ca6View commit details -
Auto merge of rust-lang#7955 - dswij:let-else-early-return, r=giraffate
Fix `semicolon_if_nothing_returned` FP on `let-else` stmts closes rust-lang#7912 `semicolon_if_nothing_returned` now additionally checks if the statements ends in `;` , this will also prevent `let-else` statements to be linted. changelog: fix [`semicolon_if_nothing_returned`] FP firing on `let-else`
Configuration menu - View commit details
-
Copy full SHA for 2e17035 - Browse repository at this point
Copy the full SHA 2e17035View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c1e62d - Browse repository at this point
Copy the full SHA 7c1e62dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8565fc4 - Browse repository at this point
Copy the full SHA 8565fc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23ed792 - Browse repository at this point
Copy the full SHA 23ed792View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63cb410 - Browse repository at this point
Copy the full SHA 63cb410View commit details -
Added
clippy::version
attribute to all normal lintsSo, some context for this, well, more a story. I'm not used to scripting, I've never really scripted anything, even if it's a valuable skill. I just never really needed it. Now, `@flip1995` correctly suggested using a script for this in `rust-clippy#7813`... And I decided to write a script using nushell because why not? This was a mistake... I spend way more time on this than I would like to admit. It has definitely been more than 4 hours. It shouldn't take that long, but me being new to scripting and nushell just wasn't a good mixture... Anyway, here is the script that creates another script which adds the versions. Fun... Just execute this on the `gh-pages` branch and the resulting `replacer.sh` in `clippy_lints` and it should all work. ```nu mv v0.0.212 rust-1.00.0; mv beta rust-1.57.0; mv master rust-1.58.0; let paths = (open ./rust-1.58.0/lints.json | select id id_span | flatten | select id path); let versions = ( ls | where name =~ "rust-" | select name | format {name}/lints.json | each { open $it | select id | insert version $it | str substring "5,11" version} | group-by id | rotate counter-clockwise id version | update version {get version | first 1} | flatten | select id version); $paths | each { |row| let version = ($versions | where id == ($row.id) | format {version}) let idu = ($row.id | str upcase) $"sed -i '0,/($idu),/{s/pub ($idu),/#[clippy::version = "($version)"]\n pub ($idu),/}' ($row.path)" } | str collect ";" | str find-replace --all '1.00.0' 'pre 1.29.0' | save "replacer.sh"; ``` And this still has some problems, but at this point I just want to be done -.-
Configuration menu - View commit details
-
Copy full SHA for d647696 - Browse repository at this point
Copy the full SHA d647696View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d9d06d - Browse repository at this point
Copy the full SHA 9d9d06dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d68408f - Browse repository at this point
Copy the full SHA d68408fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 94bc0a1 - Browse repository at this point
Copy the full SHA 94bc0a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce01346 - Browse repository at this point
Copy the full SHA ce01346View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0cc201 - Browse repository at this point
Copy the full SHA d0cc201View commit details -
Configuration menu - View commit details
-
Copy full SHA for a806ce7 - Browse repository at this point
Copy the full SHA a806ce7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72d7b9c - Browse repository at this point
Copy the full SHA 72d7b9cView commit details
Commits on Nov 11, 2021
-
Refactor utils on checking attribute
Moved out reusable pieces from `is_automatically_derived` and `any_parent_is_automatically_derived`.
Configuration menu - View commit details
-
Copy full SHA for 847a95b - Browse repository at this point
Copy the full SHA 847a95bView commit details -
Check for no_std and no_core attribute in
swap
lintThis commit adds a `no_std` and `no_core` check on `swap` lint and additionally suggest `core::mem::swap` whenever possible. Remove warning if both `std` and `core` is not present.
Configuration menu - View commit details
-
Copy full SHA for 2d037aa - Browse repository at this point
Copy the full SHA 2d037aaView commit details -
Add test for
swap
lint whenno_std
is presentAdds additional test to check for `swap` suggestion when `no_std` is present
Configuration menu - View commit details
-
Copy full SHA for dcd1a16 - Browse repository at this point
Copy the full SHA dcd1a16View commit details -
Auto merge of rust-lang#7877 - dswij:no-std-fp, r=camsteffen
[`swap`] lints now check if there is `no_std` or `no_core` attribute Closes rust-lang#7858 changelog: [`swap`] lints now check if there is `no_std` or `no_core` attribute
Configuration menu - View commit details
-
Copy full SHA for 8389df9 - Browse repository at this point
Copy the full SHA 8389df9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c45fd8 - Browse repository at this point
Copy the full SHA 8c45fd8View commit details -
Auto merge of rust-lang#7813 - xFrednet:6492-lint-version, r=flip1995
Add Clippy version to Clippy's lint list Hey, hey, the semester is finally over, and I wanted to get back into hacking on Clippy. It has also been some time since our metadata collection monster has been feed. So, this PR adds a new attribute `clippy::version` to document which version a lint was stabilized. I considered using `git blame` but that would be very hacky and probably not accurate. I'm also thinking that this attribute can be used to have a `clippy::nightly` lint group which is allow-by-default that delays setting the actual lint group until the defined version is reached. Just something to consider regarding rust-lang#6623 🙃 This PR only adds the version to 4 lints to keep it reviewable. I'll do a followup PR to add the version to other lints if the implementation is accepted 🙃 ![image](https://user-images.githubusercontent.com/17087237/137118859-0aafdfdf-7595-4289-8ba4-33d58eb6991d.png) Also, mobile approved xD ![image](https://user-images.githubusercontent.com/17087237/137118944-833cf7fb-a4a1-45d6-9af8-32c951822360.png) --- r? `@flip1995` cc: rust-lang#7172 closes: rust-lang#6492 changelog: [Clippy's lint list](https://rust-lang.github.io/rust-clippy/master/index.html) now displays the version a lint was added. 🎉 --- Example lint declaration after this update: ```rs declare_clippy_lint! { /// [...] /// /// ### Example /// ```rust /// // Bad /// let x = 3.14; /// // Good /// let x = std::f32::consts::PI; /// ``` #[clippy::version = "pre 1.29.0"] pub APPROX_CONSTANT, correctness, "the approximate of a known float constant (in `std::fXX::consts`)" } ```
Configuration menu - View commit details
-
Copy full SHA for 3bfe98d - Browse repository at this point
Copy the full SHA 3bfe98dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 27a1763 - Browse repository at this point
Copy the full SHA 27a1763View commit details -
New
index_refutable_slice
lint* Finding pattern slices for `avoidable_slice_indexing` * `avoidable_slice_indexing` analysing slice usage * Add configuration to `avoidable_slice_indexing` * Emitting `avoidable_slice_indexing` with suggestions * Dogfooding and fixing bugs * Add ui-toml test for `avoidable_slice_indexing` * Correctly suggest `ref` keywords for `avoidable_slice_indexing` * Test and document `mut` for `avoid_slice_indexing` * Handle macros with `avoidable_slice_indexing` lint * Ignore slices with sub patterns in `avoidable_slice_indexing` * Update lint description for `avoidable_slice_indexing` * Move `avoidable_slice_indexing` to nursery * Added more tests for `avoidable_slice_indexing` * Update documentation and message for `avoidable_slice_indexing` * Teach `avoidable_slice_indexing` about `HirId`s and `Visitors` * Rename lint to `index_refutable_slice` and connected config
Configuration menu - View commit details
-
Copy full SHA for e444cbe - Browse repository at this point
Copy the full SHA e444cbeView commit details -
Auto merge of rust-lang#7643 - xFrednet:7569-splits-for-slices, r=cam…
…steffen New lint `index_refutable_slice` to avoid slice indexing A new lint to check for slices that could be deconstructed to avoid indexing. This lint should hopefully prevent some panics in other projects and ICEs for us. See rust-lang#7569 for an example The implementation specifically checks for immutable bindings in `if let` statements to slices and arrays. Then it checks if these bindings are only used for value access using indices and that these indices are lower than the configured limit. I did my best to keep the implementation small, however the check was sadly quite complex. Now it's around 300 lines for the implementation and the rest are test. --- Optional future improvements: * Check for these instances also in `match` statements * Check for mutable slice bindings that could also be destructed --- changelog: New lint [`index_refutable_slice`] I've already fixed a bunch of lint triggers in rust-lang#7638 to make this PR smaller Closes: rust-lang#7569
Configuration menu - View commit details
-
Copy full SHA for 3d4d0cf - Browse repository at this point
Copy the full SHA 3d4d0cfView commit details -
Auto merge of rust-lang#7956 - camsteffen:author, r=llogiq
Author improvements changelog: none Various aspects of the author implementation are re-imagined to be much less repetitive. Also fixes some bugs. I hope this makes author more fun to work on for future contributors. The last commit is pretty heavy but I tried to at least separate some changes so that the test file diffs per commit are simple.
Configuration menu - View commit details
-
Copy full SHA for 8b84a76 - Browse repository at this point
Copy the full SHA 8b84a76View commit details
Commits on Nov 12, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 24d561f - Browse repository at this point
Copy the full SHA 24d561fView commit details -
Auto merge of rust-lang#7963 - Jarcho:dev_fmt, r=flip1995
Use rustfmt version from `rust-toolchain` changelog: None
Configuration menu - View commit details
-
Copy full SHA for 610b381 - Browse repository at this point
Copy the full SHA 610b381View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4c8cb6 - Browse repository at this point
Copy the full SHA d4c8cb6View commit details -
Auto merge of rust-lang#7948 - 5225225:castlosslessbool, r=llogiq
Lint for bool to integer casts in `cast_lossless` The lint description says > Checks for casts between *numerical* types that may be replaced by safe conversion functions. Which is strictly speaking being violated here, but it seems within the spirit of the lint. I think it is still a useful lint to have, and having a different lint for just this feels excessive. Thoughts? Fixes rust-lang#7947 changelog: Lint for bool to integer casts in [`cast_lossless`]
Configuration menu - View commit details
-
Copy full SHA for 4f82dd8 - Browse repository at this point
Copy the full SHA 4f82dd8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 91fe265 - Browse repository at this point
Copy the full SHA 91fe265View commit details -
Configuration menu - View commit details
-
Copy full SHA for 608c9e8 - Browse repository at this point
Copy the full SHA 608c9e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 507030f - Browse repository at this point
Copy the full SHA 507030fView commit details -
Auto merge of rust-lang#7966 - Alexendoo:batch-rustfmt, r=camsteffen
Run rustfmt on batches of multiple files changelog: none This gives `cargo dev fmt` a nice speed boost, down from 90s (because old) on my laptop and 120s (because windows) on my desktop to ~5s on both 250 at a time was to give windows a good amount of headroom (failed at ~800, rust-lang#40384) Also adds rustfmt to the toolchain file and has the clippy_dev workflow test using the pinned version as a follow up to rust-lang#7963
Configuration menu - View commit details
-
Copy full SHA for cc9d7ff - Browse repository at this point
Copy the full SHA cc9d7ffView commit details
Commits on Nov 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 80a263d - Browse repository at this point
Copy the full SHA 80a263dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1df10f0 - Browse repository at this point
Copy the full SHA 1df10f0View commit details -
Auto merge of rust-lang#7969 - togami2864:fix-typo, r=xFrednet
fix typo just fixed typo changelog: none
Configuration menu - View commit details
-
Copy full SHA for f51fb34 - Browse repository at this point
Copy the full SHA f51fb34View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ed4a8a - Browse repository at this point
Copy the full SHA 2ed4a8aView commit details -
option_if_let_else: don't expand macros in suggestion
Fixes rust-lang#7973 changelog: don't expand macros in suggestion of clippy::option_if_let_else
Configuration menu - View commit details
-
Copy full SHA for 3fe11e7 - Browse repository at this point
Copy the full SHA 3fe11e7View commit details
Commits on Nov 14, 2021
-
Fix specific code outlined in issue rust-lang#7975.
Still needs to generalize to other mixes of let bindings, `map` method calls, etc.
Configuration menu - View commit details
-
Copy full SHA for 3e20e30 - Browse repository at this point
Copy the full SHA 3e20e30View commit details
Commits on Nov 15, 2021
-
Support suggestion for rust-lang#7854
I think the detection of parking_lot's mutex and rwlock is valuable, so submit this pr, please help judge and review, thank you. Make let_underscore_lock support parking_lot. changelog: Make let_underscore_lock support parking_lot
Configuration menu - View commit details
-
Copy full SHA for 634e79c - Browse repository at this point
Copy the full SHA 634e79cView commit details -
Auto merge of rust-lang#7957 - surechen:fix_for_7854, r=giraffate
Support suggestion for rust-lang#7854 I think the detection of parking_lot's mutex and rwlock is valuable, so submit this pr, please help judge and review, thank you. Make let_underscore_lock support parking_lot.(Fixes rust-lang#7854) changelog: Make let_underscore_lock support parking_lot
Configuration menu - View commit details
-
Copy full SHA for f82bf47 - Browse repository at this point
Copy the full SHA f82bf47View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f71ff3 - Browse repository at this point
Copy the full SHA 4f71ff3View commit details -
Auto merge of rust-lang#7974 - matthiaskrgr:7973_opt_map_or_else_dont…
…_expand_sugg_macro, r=flip1995 option_if_let_else: don't expand macros in suggestion Fixes rust-lang#7973 changelog: don't expand macros in suggestion of clippy::option_if_let_else
Configuration menu - View commit details
-
Copy full SHA for 0def42f - Browse repository at this point
Copy the full SHA 0def42fView commit details -
Configuration menu - View commit details
-
Copy full SHA for bbffe82 - Browse repository at this point
Copy the full SHA bbffe82View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02e0726 - Browse repository at this point
Copy the full SHA 02e0726View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd57816 - Browse repository at this point
Copy the full SHA cd57816View commit details -
Configuration menu - View commit details
-
Copy full SHA for 300282c - Browse repository at this point
Copy the full SHA 300282cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a30fdc - Browse repository at this point
Copy the full SHA 0a30fdcView commit details -
* Lint when a borrow is auto dereferenced more than once * Lint when the expression is used as the expression of a block for a match arm Moves `needless_borrow` and `ref_binding_to_reference` to `dereference` lint pass in preperation for `explicit_auto_deref` lint.
Configuration menu - View commit details
-
Copy full SHA for 8ded385 - Browse repository at this point
Copy the full SHA 8ded385View commit details
Commits on Nov 16, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2938ffd - Browse repository at this point
Copy the full SHA 2938ffdView commit details -
Auto merge of rust-lang#7639 - Jarcho:whitelist_cheap_functions, r=ca…
…msteffen Improve heuristic for eagerness suggestion Still to be done: * a more complete list of cheap functions * a way to limit the complexity of cheap expressions changelog: Improve heuristics for `or_fun_call` and `unnecessary_lazy_evaluations`
Configuration menu - View commit details
-
Copy full SHA for 5b1b65b - Browse repository at this point
Copy the full SHA 5b1b65bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7605bac - Browse repository at this point
Copy the full SHA 7605bacView commit details -
Successfully generalize prevention of suggestions causing multiple mu…
…table borrows. Also add some more tests to check that it's working.
Configuration menu - View commit details
-
Copy full SHA for 5b3c00f - Browse repository at this point
Copy the full SHA 5b3c00fView commit details -
1. Make the lifetime contained in LateContext `'tcx`. 2. Fix `'txc` to `'tcx` because it was a typo. 3. Refactor `IterFunctionVisitor`'s `visit_block` method to be more readable. 4. Replace uses of `rustc_middle::ty::TyKind` with `rustc::middle::ty`, and remove the `#[allow(...)]`. (Thank you llogiq for all these suggestions!)
Configuration menu - View commit details
-
Copy full SHA for c52b389 - Browse repository at this point
Copy the full SHA c52b389View commit details -
Auto merge of rust-lang#7982 - Blckbrry-Pi:master, r=llogiq
Fix `needless_collect`'s tendency to suggest code requiring multiple mutable borrows of the same value. Fixes error specified in rust-lang#7975. changelog: [`needless_collect`] no longer suggests removal of `collect` when removal would create code requiring mutably borrowing a value multiple times.
Configuration menu - View commit details
-
Copy full SHA for 83ad511 - Browse repository at this point
Copy the full SHA 83ad511View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9bf5ec - Browse repository at this point
Copy the full SHA e9bf5ecView commit details
Commits on Nov 17, 2021
-
1. Fix the problem of manual_split_once changing the original behavior. 2. Add a new lint needless_splitn. changelog: Fix the problem of manual_split_once changing the original behavior and add a new lint needless_splitn.
Configuration menu - View commit details
-
Copy full SHA for c051656 - Browse repository at this point
Copy the full SHA c051656View commit details -
Auto merge of rust-lang#7896 - surechen:fix_manual_split_once, r=cams…
…teffen Fix for rust-lang#7889 and add new lint needless_splitn fixes: rust-lang#7889 1. Fix the problem of manual_split_once changing the original behavior. 2. Add a new lint needless_splitn. changelog: Fix the problem of manual_split_once changing the original behavior and add a new lint needless_splitn.
Configuration menu - View commit details
-
Copy full SHA for 46687f1 - Browse repository at this point
Copy the full SHA 46687f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f3d7c2 - Browse repository at this point
Copy the full SHA 3f3d7c2View commit details -
Auto merge of rust-lang#7898 - F3real:unit_struct, r=camsteffen
Don't show no_effect warning on unit structs implementing fn_once Fixes rust-lang#7792 changelog: Don't show [`no_effect`] or [`unecessary_operation`] warning for unit struct implementing FnOnce
Configuration menu - View commit details
-
Copy full SHA for 94ca94f - Browse repository at this point
Copy the full SHA 94ca94fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e34927e - Browse repository at this point
Copy the full SHA e34927eView commit details -
Auto merge of rust-lang#7988 - giraffate:fix_ice_on_undocumented_unsa…
…fe_blocks, r=flip1995 Fix ICE on `undocumented_unsafe_blocks` fix rust-lang/rust-clippy#7979 changelog: Fix ICE on `undocumented_unsafe_blocks`
Configuration menu - View commit details
-
Copy full SHA for d550e5f - Browse repository at this point
Copy the full SHA d550e5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 006c442 - Browse repository at this point
Copy the full SHA 006c442View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8506f66 - Browse repository at this point
Copy the full SHA 8506f66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f861ee - Browse repository at this point
Copy the full SHA 5f861eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e317f5 - Browse repository at this point
Copy the full SHA 8e317f5View commit details -
Auto merge of rust-lang#7971 - togami2864:fix/option-map-or-none, r=l…
…logiq fix suggestion in option_map_or_none fix: rust-lang#7960 changelog: change suggestion in the lint rule `option_map_or_none`
Configuration menu - View commit details
-
Copy full SHA for 6ac42fe - Browse repository at this point
Copy the full SHA 6ac42feView commit details -
Auto merge of rust-lang#7968 - Jarcho:manual_map_unsafe, r=xFrednet
Fix `manual_map` with unsafe functions fixes: rust-lang#7820 changelog: Fix `manual_map` suggestion when used with unsafe functions and unsafe blocks
Configuration menu - View commit details
-
Copy full SHA for bb58dc8 - Browse repository at this point
Copy the full SHA bb58dc8View commit details
Commits on Nov 18, 2021
-
rustc: Remove
#[rustc_synthetic]
This function parameter attribute was introduced in rust-lang#44866 as an intermediate step in implementing `impl Trait`, it's not necessary or used anywhere by itself.
Configuration menu - View commit details
-
Copy full SHA for cb62680 - Browse repository at this point
Copy the full SHA cb62680View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5a61aa - Browse repository at this point
Copy the full SHA b5a61aaView commit details -
Auto merge of rust-lang#7992 - togami2864:fix-typo, r=giraffate
fix typo just fixed typo changelog: none
Configuration menu - View commit details
-
Copy full SHA for 8536647 - Browse repository at this point
Copy the full SHA 8536647View commit details -
Configuration menu - View commit details
-
Copy full SHA for 731dfde - Browse repository at this point
Copy the full SHA 731dfdeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bccd59 - Browse repository at this point
Copy the full SHA 4bccd59View commit details -
Auto merge of rust-lang#7994 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` changelog: none
Configuration menu - View commit details
-
Copy full SHA for 8dd1bce - Browse repository at this point
Copy the full SHA 8dd1bceView commit details -
Pluralize disallowed_type lint
This was brought up in [Zulip] and is also mentioned in the lint naming conventions. Since this is still a nursery lint, I think there shouldn't be any problem in renaming it. [Zulip]: https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/disallow_type.20vs.20disallowed-types
Configuration menu - View commit details
-
Copy full SHA for b7f1891 - Browse repository at this point
Copy the full SHA b7f1891View commit details -
Pluralize disallowed_type lint filenames
This way they match up with the pluralized lint name as well.
Configuration menu - View commit details
-
Copy full SHA for a0d81d1 - Browse repository at this point
Copy the full SHA a0d81d1View commit details -
Also pluralize disallowed_method(s) lint
To stay consistent with the sister lint disallowed_type, also rename the disallowed_method lint to disallowed_methods.
Configuration menu - View commit details
-
Copy full SHA for 9b38fb7 - Browse repository at this point
Copy the full SHA 9b38fb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0375d20 - Browse repository at this point
Copy the full SHA 0375d20View commit details -
Auto merge of rust-lang#7977 - Jarcho:multi_needless_borrow, r=xFrednet
Improve `needless_borrow` lint fixes: rust-lang#5327 fixes: rust-lang#1726 fixes: rust-lang#1212 This is merging `needless_borrow` into the `dereference` pass in preparation for `explicit_auto_deref`. `explicit_auto_deref` needs to implement most of what `needless_borrow` implements in order to work. There is a minor regression here where `let x: &str = &x.deref()` will trigger `needless_borrow` without triggering `explicit_deref_methods`. Removing the redundant borrow will cause `explicit_deref_methods` to trigger. This will be fixed when `explicit_auto_deref` is implemented. changelog: Lint `needless_borrow` when a borrow is auto-derefed more than once changelog: Lint `needless_borrow` in the trailing expression of a block for a match arm
Configuration menu - View commit details
-
Copy full SHA for 2776076 - Browse repository at this point
Copy the full SHA 2776076View commit details
Commits on Nov 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for abb7155 - Browse repository at this point
Copy the full SHA abb7155View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd81bb9 - Browse repository at this point
Copy the full SHA cd81bb9View commit details -
Auto merge of rust-lang#7996 - togami2864:test-map-or-none, r=Manishe…
…arth Add test case for RESULT_MAP_OR_INTO_OPTION just added test case for RESULT_MAP_OR_INTO_OPTION. changelog: none
Configuration menu - View commit details
-
Copy full SHA for 0d283cc - Browse repository at this point
Copy the full SHA 0d283ccView commit details -
Auto merge of rust-lang#7984 - phansch:disallowed-type-rename, r=xFre…
…dnet Pluralize `disallowed_type` lint This was brought up in [Zulip] and is also mentioned in the lint naming conventions. Since this is still a nursery lint, I think there shouldn't be any problem in renaming it. [Zulip]: rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/disallow_type.20vs.20disallowed-types changelog: Rename nursery lint [`disallowed_type`] to [`disallowed_types`].
Configuration menu - View commit details
-
Copy full SHA for 38bd251 - Browse repository at this point
Copy the full SHA 38bd251View commit details
Commits on Nov 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1429949 - Browse repository at this point
Copy the full SHA 1429949View commit details -
This checks for sequences in strings that would be octal character escapes in C, but are not supported in Rust. It suggests either to use the `\x00` escape, or an equivalent hex escape if the octal was intended.
Configuration menu - View commit details
-
Copy full SHA for 982124a - Browse repository at this point
Copy the full SHA 982124aView commit details -
Auto merge of rust-lang#8000 - Jarcho:nightly_fmt, r=llogiq
Don't check for a nightly toolchain in fmt test changelog: None
Configuration menu - View commit details
-
Copy full SHA for 827fd50 - Browse repository at this point
Copy the full SHA 827fd50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c8085d - Browse repository at this point
Copy the full SHA 1c8085dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c4055c - Browse repository at this point
Copy the full SHA 0c4055cView commit details -
Auto merge of rust-lang#8011 - birkenfeld:double_backticks, r=xFrednet
Avoid inline hints with double backticks for `doc-markdown` The easiest route here was to ensure that the suggestion is always shown on its own line, where no additional backticks are added by the diagnostic formatter. Fixes rust-lang#8002 --- *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: Avoid inline hints with double backticks for `doc-markdown`
Configuration menu - View commit details
-
Copy full SHA for 32048eb - Browse repository at this point
Copy the full SHA 32048ebView commit details
Commits on Nov 21, 2021
-
Fix shadow_same's positive false for async function's params: Example Code: ```rust #![deny(clippy::shadow_same)] pub async fn foo(_a: i32) { } ``` Output: ``` error: `_a` is shadowed by itself in `_a ``` Hir: ```rust pub async fn foo(_a: i32) -> /*impl Trait*/ #[lang = "from_generator"](move |mut _task_context| { let _a = _a; { let _t = { }; _t } }) ``` Skip checking async function's params. changelog: Fix shadow_same's positive false for async function's params
Configuration menu - View commit details
-
Copy full SHA for 846c0be - Browse repository at this point
Copy the full SHA 846c0beView commit details -
Inhibit clicks on summary's children
A byproduct of using `<details>` and `<summary>` to show/hide detailed documentation was that clicking any part of a method heading (or impl heading) would show or hide the documentation. This was not super noticeable because clicking a link inside the method heading would navigate to that link. But clicking any unlinked black text in a method heading would trigger the behavior. That behavior was somewhat unexpected, and means that if you try to click a type name in a method heading, but miss by a few pixels, you get a confusing surprise. This change inhibits that behavior by putting an event listener on most summaries that cancels the event unless the event target was the summary itself. In practice, that means it cancels the event unless the target was the "[+]" / "[-]", because the rest of the heading is wrapped inside a `<div>`, which is the target for anything that doesn't have a more specific target.
Configuration menu - View commit details
-
Copy full SHA for 9aef9a2 - Browse repository at this point
Copy the full SHA 9aef9a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for e58ffb8 - Browse repository at this point
Copy the full SHA e58ffb8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c1c763 - Browse repository at this point
Copy the full SHA 8c1c763View commit details -
Auto merge of rust-lang#7997 - surechen:Fixes_7915, r=giraffate
Fixes shadow_same's false positive for rust-lang#7915 Fix shadow_same's false positive for async function's params(Fixes rust-lang#7915): Example Code: ```rust #![deny(clippy::shadow_same)] pub async fn foo(_a: i32) { } ``` Output: ``` error: `_a` is shadowed by itself in `_a ``` Hir: ```rust pub async fn foo(_a: i32) -> /*impl Trait*/ #[lang = "from_generator"](move |mut _task_context| { let _a = _a; { let _t = { }; _t } }) ``` Skip checking async function's params. changelog: Fix shadow_same's false positive for async function's params
Configuration menu - View commit details
-
Copy full SHA for de2208a - Browse repository at this point
Copy the full SHA de2208aView commit details
Commits on Nov 22, 2021
-
Auto merge of rust-lang#8009 - xFrednet:8004-suboptimal-flops-in-cons…
…t, r=giraffate Allow `suboptimal_flops` in const functions This PR allows `clippy::suboptimal_flops` in constant functions. The check also effects the `clippy::imprecise_flops` lint logic. However, this doesn't have any effects as all functions checked for are not const and can therefore not be found in such functions. --- changelog: [`suboptimal_flops`]: No longer triggers in constant functions Closes: rust-lang/rust-clippy#8004
Configuration menu - View commit details
-
Copy full SHA for 5fbfdfa - Browse repository at this point
Copy the full SHA 5fbfdfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f35556 - Browse repository at this point
Copy the full SHA 7f35556View commit details -
Auto merge of rust-lang#7989 - couchand:2021-11/toolchain-missing-com…
…ponents, r=flip1995 Add missing components to rust-toolchain file Somehow these basic components are missing from the toolchain file... changelog: none
Configuration menu - View commit details
-
Copy full SHA for 4027594 - Browse repository at this point
Copy the full SHA 4027594View commit details -
Configuration menu - View commit details
-
Copy full SHA for 850e7f5 - Browse repository at this point
Copy the full SHA 850e7f5View commit details -
Give people a single link they can click in the contributing guide
Doc Jones mentioned that one of the things making it hard to get started is that the amount of information is overwhelming, between the dev-guide, contributing guide, and discussion platforms. This gives people a single link they can click to ask for help.
Configuration menu - View commit details
-
Copy full SHA for bb7ec7b - Browse repository at this point
Copy the full SHA bb7ec7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bc25d0 - Browse repository at this point
Copy the full SHA 0bc25d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1210bb4 - Browse repository at this point
Copy the full SHA 1210bb4View commit details -
Auto merge of rust-lang#8007 - birkenfeld:octal_escapes, r=xFrednet
Add new lint `octal_escapes` This checks for sequences in strings that would be octal character escapes in C, but are not supported in Rust. It suggests either to use the `\x00` escape, or an equivalent hex escape if the octal was intended. Fixes rust-lang#7981 --- *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: Add new lint [`octal_escapes`], which checks for literals like `"\033[0m"`.
Configuration menu - View commit details
-
Copy full SHA for 57a8804 - Browse repository at this point
Copy the full SHA 57a8804View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d61d87 - Browse repository at this point
Copy the full SHA 6d61d87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f38568 - Browse repository at this point
Copy the full SHA 6f38568View commit details
Commits on Nov 23, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 7b103e7 - Browse repository at this point
Copy the full SHA 7b103e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec3d1c8 - Browse repository at this point
Copy the full SHA ec3d1c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08a500f - Browse repository at this point
Copy the full SHA 08a500fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e8e02d9 - Browse repository at this point
Copy the full SHA e8e02d9View commit details -
Auto merge of rust-lang#7980 - dswij:7870, r=xFrednet
Fix FP on `if_then_some_else_none` when there is early return closes rust-lang#7870 changelog: [`if_then_some_else_none`] now does not fire when there is early return
Configuration menu - View commit details
-
Copy full SHA for d6c707d - Browse repository at this point
Copy the full SHA d6c707dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5740230 - Browse repository at this point
Copy the full SHA 5740230View commit details -
Configuration menu - View commit details
-
Copy full SHA for c46c8c5 - Browse repository at this point
Copy the full SHA c46c8c5View commit details -
Auto merge of rust-lang#8025 - flip1995:rustup, r=flip1995
Rustup Re-sync, because I didn't get to syncing things back to rustc. r? `@ghost` changelog: none
Configuration menu - View commit details
-
Copy full SHA for 81f37a8 - Browse repository at this point
Copy the full SHA 81f37a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ee5aa4 - Browse repository at this point
Copy the full SHA 1ee5aa4View commit details -
Configuration menu - View commit details
-
Copy full SHA for b95545b - Browse repository at this point
Copy the full SHA b95545bView commit details -
Rollup merge of rust-lang#90081 - woppopo:const_write_bytes, r=oli-obk
Make `intrinsics::write_bytes` const This is required to constify `MaybeUninit::zeroed` and `(*mut T)::write_bytes`. Tracking issue: rust-lang#86302
Configuration menu - View commit details
-
Copy full SHA for aa73065 - Browse repository at this point
Copy the full SHA aa73065View commit details -
Rollup merge of rust-lang#91103 - jsha:non-toggle-click-doesnt-toggle…
…, r=Manishearth,GuillaumeGomez Inhibit clicks on summary's children A byproduct of using `<details>` and `<summary>` to show/hide detailed documentation was that clicking any part of a method heading (or impl heading) would show or hide the documentation. This was not super noticeable because clicking a link inside the method heading would navigate to that link. But clicking any unlinked black text in a method heading would trigger the behavior. That behavior was somewhat unexpected, and means that if you try to click a type name in a method heading, but miss by a few pixels, you get a confusing surprise. This change inhibits that behavior by putting an event listener on most summaries that cancels the event unless the event target was the summary itself. In practice, that means it cancels the event unless the target was the "[+]" / "[-]", because the rest of the heading is wrapped inside a `<div>`, which is the target for anything that doesn't have a more specific target. r? `@Manishearth`
Configuration menu - View commit details
-
Copy full SHA for 58269a6 - Browse repository at this point
Copy the full SHA 58269a6View commit details -
Rollup merge of rust-lang#91137 - jyn514:contributing, r=spastorino
Give people a single link they can click in the contributing guide Doc Jones mentioned that one of the things making it hard to get started is that the amount of information is overwhelming, between the dev-guide, contributing guide, and discussion platforms. This gives people a single link they can click to ask for help. cc `@doc-jones` - is this what you had in mind?
Configuration menu - View commit details
-
Copy full SHA for 39542a0 - Browse repository at this point
Copy the full SHA 39542a0View commit details -
Rollup merge of rust-lang#91140 - nbdd0121:const_typeck, r=oli-obk
Split inline const to two feature gates and mark expression position inline const complete This PR splits inline const in pattern position into its own `#![feature(inline_const_pat)]` feature gate, and make the usage in expression position complete. I think I have resolved most outstanding issues related to `inline_const` with rust-lang#89561 and other PRs. The only thing left that I am aware of is rust-lang#90150 and the lack of lifetime checks when inline const is used in pattern position (FIXME in rust-lang#89561). Implementation-wise when used in pattern position it has to be lowered during MIR building while in expression position it's evaluated only when monomorphizing (just like normal consts), so it makes some sense to separate it into two feature gates so one can progress without being blocked by another. `@rustbot` label: T-compiler F-inline_const
Configuration menu - View commit details
-
Copy full SHA for ccc53bb - Browse repository at this point
Copy the full SHA ccc53bbView commit details -
Rollup merge of rust-lang#91148 - jhpratt:use-default-enum, r=petroch…
…enkov Use `derive_default_enum` in the compiler Let's get this feature some real-world love. `@rustbot` label: +C-cleanup +S-waiting-on-review
Configuration menu - View commit details
-
Copy full SHA for 80bb3c0 - Browse repository at this point
Copy the full SHA 80bb3c0View commit details -
Rollup merge of rust-lang#91151 - name1e5s:chore/process_test, r=m-ou-se
Fix test in std::process on android closes rust-lang#10380
Configuration menu - View commit details
-
Copy full SHA for 5c8ed8f - Browse repository at this point
Copy the full SHA 5c8ed8fView commit details -
Rollup merge of rust-lang#91154 - flip1995:clippyup, r=Manishearth
Update Clippy r? `@Manishearth` Delayed Clippy sync. I didn't get to it over the weekend..
Configuration menu - View commit details
-
Copy full SHA for c9ce710 - Browse repository at this point
Copy the full SHA c9ce710View commit details