-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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 12 pull requests #79369
Rollup of 12 pull requests #79369
Commits on Oct 4, 2020
-
split
interior_mutable_const
tests and clean it* remove a 'ERROR' comment from `borrow` `Vec<AtomicUsize>` itself is `Freeze` as it holds the atomic in heap * remove `ONCE_INIT` from `declare` it seems like an artifact from previous spliting
Configuration menu - View commit details
-
Copy full SHA for be81608 - Browse repository at this point
Copy the full SHA be81608View commit details -
fix a FP in
interior_mutable_const
fix a false positive in two `interior_mutable_const` lints where a constant with enums gets linted even if it uses a clearly unfrozen variant. Note that the code uses the MIR interpreter, which the author of rust-lang#3962 thought unlikely to be a solution. This might be over-engineering; but, I think it's important to be able to work with the 'http' crate (rust-lang#3825).
Configuration menu - View commit details
-
Copy full SHA for f58a169 - Browse repository at this point
Copy the full SHA f58a169View commit details
Commits on Oct 30, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 7c74d87 - Browse repository at this point
Copy the full SHA 7c74d87View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0d1002 - Browse repository at this point
Copy the full SHA c0d1002View commit details
Commits on Nov 2, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 158bf9a - Browse repository at this point
Copy the full SHA 158bf9aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 343bdb3 - Browse repository at this point
Copy the full SHA 343bdb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce98468 - Browse repository at this point
Copy the full SHA ce98468View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6611de - Browse repository at this point
Copy the full SHA a6611deView commit details
Commits on Nov 3, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 89fa373 - Browse repository at this point
Copy the full SHA 89fa373View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2a769f - Browse repository at this point
Copy the full SHA c2a769fView commit details
Commits on Nov 4, 2020
-
Configuration menu - View commit details
-
Copy full SHA for a4acb31 - Browse repository at this point
Copy the full SHA a4acb31View commit details -
Format lint categories as a table with the default lint level.
Configuration menu - View commit details
-
Copy full SHA for fd8dece - Browse repository at this point
Copy the full SHA fd8deceView commit details
Commits on Nov 5, 2020
-
Add string_from_utf8_as_bytes linter
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for bc27d14 - Browse repository at this point
Copy the full SHA bc27d14View commit details -
Configuration menu - View commit details
-
Copy full SHA for f83762b - Browse repository at this point
Copy the full SHA f83762bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3424419 - Browse repository at this point
Copy the full SHA 3424419View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83e75f9 - Browse repository at this point
Copy the full SHA 83e75f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e4ce0f - Browse repository at this point
Copy the full SHA 1e4ce0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1624b00 - Browse repository at this point
Copy the full SHA 1624b00View commit details
Commits on Nov 6, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 5f57608 - Browse repository at this point
Copy the full SHA 5f57608View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7892c6 - Browse repository at this point
Copy the full SHA b7892c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8242b2f - Browse repository at this point
Copy the full SHA 8242b2fView commit details -
Auto merge of rust-lang#6294 - giraffate:fix_suggestion_to_add_space_…
…in_manual_async, r=Manishearth Fix suggestion to add unneeded space in `manual_async` Fix a same case as rust-lang/rust-clippy#6247 changelog: Fix suggestion to add unneeded space in `manual_async`
Configuration menu - View commit details
-
Copy full SHA for 2ea08e1 - Browse repository at this point
Copy the full SHA 2ea08e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5253595 - Browse repository at this point
Copy the full SHA 5253595View commit details
Commits on Nov 7, 2020
-
Auto merge of rust-lang#6272 - camsteffen:unnecesary-lazy-eval-type, …
…r=llogiq Fix unnecessary_lazy_eval suggestion applicability changelog: Fix unnecessary_lazy_eval suggestion applicability when breaking type inference Fixes rust-lang#6240
Configuration menu - View commit details
-
Copy full SHA for 4bbef42 - Browse repository at this point
Copy the full SHA 4bbef42View commit details -
Auto merge of rust-lang#6110 - rail-rain:care_enums_non_copy_const, r…
…=llogiq "Respect" enums in `interior_mutable_const` fixes rust-lang#3962 fixes rust-lang#3825 Hello, It might not be a good idea to submit another relatively large PR while I have an opened PR; but, I've finished this anyway. This may be able to wait for months. Note: the code uses the MIR interpreter, which the author of rust-lang#3962 thought unlikely to be a solution. This might be over-engineering; but, I think it's important to be able to work with the 'http' crate (rust-lang#3825). (And, I don't want to write a MIR visitor) --- changelog: fix a false positive in two `interior_mutable_const` lints where a constant with enums gets linted even if it uses a clearly unfrozen variant
Configuration menu - View commit details
-
Copy full SHA for 694cec1 - Browse repository at this point
Copy the full SHA 694cec1View commit details -
Auto merge of rust-lang#6134 - patrickelectric:as_utf8, r=llogiq
Check when `from_utf8` is called from sliced byte array from string --- *Please keep the line below* changelog: Fix rust-lang#5487: Add linter to check when `from_utf8` is called from sliced byte array from string.
Configuration menu - View commit details
-
Copy full SHA for 92ba075 - Browse repository at this point
Copy the full SHA 92ba075View commit details -
Auto merge of rust-lang#6287 - camsteffen:readme, r=llogiq
Readme improvements ~Moved the table of contents up, added an Overview heading.~ ~Made the "All the Clippy Lints" link clearer.~ Formatted the lint categories as a table with the default lint level (instead of saying on/off by default). Tweaked the descriptions. changelog: Improve Readme
Configuration menu - View commit details
-
Copy full SHA for 4aca13f - Browse repository at this point
Copy the full SHA 4aca13fView commit details -
Auto merge of rust-lang#6298 - JohnTitor:fix-example, r=llogiq
Fix `await_holding_refcell_ref` examples for clarify - Remove redundant `()` - Fix variable name changelog: none
Configuration menu - View commit details
-
Copy full SHA for 5effc99 - Browse repository at this point
Copy the full SHA 5effc99View commit details -
Auto merge of rust-lang#6304 - matthiaskrgr:crash_6302, r=llogiq
FROM_ITER_INSTEAD_OF_COLLECT: avoid unwrapping unconditionally Fixes rust-lang#6302 changelog: fix unwrap of None when checking libcore with clippy
Configuration menu - View commit details
-
Copy full SHA for c015622 - Browse repository at this point
Copy the full SHA c015622View commit details
Commits on Nov 8, 2020
-
Auto merge of rust-lang#6301 - alex-700:fix-map-clone, r=matthiaskrgr
do not trigger map_clone in the case of &mut fixes rust-lang#6299 changelog: do not trigger map_clone in the case of &mut
Configuration menu - View commit details
-
Copy full SHA for 96d5f45 - Browse repository at this point
Copy the full SHA 96d5f45View commit details -
Enable empty_loop lint for no_std crates
We skip the lint if the `loop {}` is in the `#[panic_handler]` as the main recommendation we give is to panic, which obviously isn't possible in a panic handler. Signed-off-by: Joe Richey <joerichey@google.com>
Configuration menu - View commit details
-
Copy full SHA for c6a91df - Browse repository at this point
Copy the full SHA c6a91dfView commit details -
Update clippy_lints/src/loops.rs
Fix NITs Co-authored-by: Philipp Krones <hello@philkrones.com>
Configuration menu - View commit details
-
Copy full SHA for 3579b7d - Browse repository at this point
Copy the full SHA 3579b7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 00dee9d - Browse repository at this point
Copy the full SHA 00dee9dView commit details -
Auto merge of rust-lang#6205 - josephlr:empty-loop2, r=flip1995
Enable empty_loop lint for no_std crates Depends on rust-lang#6162. Fixes rust-lang#6161 We skip the lint if the `loop {}` is in the `#[panic_handler]` as the main recommendation we give is to panic, which obviously isn't possible in a panic handler. changelog: Enable empty_loop lint for no_std crates
Configuration menu - View commit details
-
Copy full SHA for abfa331 - Browse repository at this point
Copy the full SHA abfa331View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1f780c - Browse repository at this point
Copy the full SHA f1f780cView commit details -
Auto merge of rust-lang#6271 - camsteffen:vec-box-import, r=flip1995
Fix vec_box scope error changelog: Fix vec_box suggestion with wrong type scope Fixes rust-lang#6236
Configuration menu - View commit details
-
Copy full SHA for b1faa7f - Browse repository at this point
Copy the full SHA b1faa7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c6a0b9 - Browse repository at this point
Copy the full SHA 9c6a0b9View commit details -
Auto merge of rust-lang#6293 - Urcra:lint-example-fix, r=flip1995
Fix example used in cargo_common_metadata The previous example used in `cargo_common_metadata` included an authors field, even though the comment says it doesn't. And thus doesn't actually demonstrate an example of how the lint fails. This removes that authors field from the _bad_ example and suggest to fix the _bad_ example by adding the authors field changelog: Fix example used in `cargo_common_metadata`
Configuration menu - View commit details
-
Copy full SHA for 7079de9 - Browse repository at this point
Copy the full SHA 7079de9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c612c1 - Browse repository at this point
Copy the full SHA 7c612c1View commit details -
Auto merge of rust-lang#6288 - flip1995:changelog_internal, r=matthia…
…skrgr Require the `changelog:` entry in the PR body to be modified r? `@matthiaskrgr` changelog: none
Configuration menu - View commit details
-
Copy full SHA for 040d0ca - Browse repository at this point
Copy the full SHA 040d0caView commit details -
Configuration menu - View commit details
-
Copy full SHA for b099406 - Browse repository at this point
Copy the full SHA b099406View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cab084 - Browse repository at this point
Copy the full SHA 9cab084View commit details -
Auto merge of rust-lang#6267 - camsteffen:or-fun-idx, r=flip1995
Fix or_fun_call for index operator changelog: Fix or_fun_call for index operator Fixes rust-lang#6266
Configuration menu - View commit details
-
Copy full SHA for 2067a01 - Browse repository at this point
Copy the full SHA 2067a01View commit details -
Update clippy_lints/src/let_underscore.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
Configuration menu - View commit details
-
Copy full SHA for aa6bf1f - Browse repository at this point
Copy the full SHA aa6bf1fView commit details -
Update clippy_lints/src/let_underscore.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
Configuration menu - View commit details
-
Copy full SHA for 9751cba - Browse repository at this point
Copy the full SHA 9751cbaView commit details -
Update clippy_lints/src/let_underscore.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
Configuration menu - View commit details
-
Copy full SHA for 8211b59 - Browse repository at this point
Copy the full SHA 8211b59View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40d7af5 - Browse repository at this point
Copy the full SHA 40d7af5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8845f10 - Browse repository at this point
Copy the full SHA 8845f10View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06e81bb - Browse repository at this point
Copy the full SHA 06e81bbView commit details
Commits on Nov 9, 2020
-
Auto merge of rust-lang#6278 - ThibsG:DerefAddrOf, r=llogiq
Fix bad suggestions for `deref_addrof` and `try_err` lints Fix bad suggestions when in macro expansion for `deref_addrof` and `try_err` lints. Fixes: rust-lang#6234 Fixes: rust-lang#6242 Fixes: rust-lang#6237 changelog: none r? `@llogiq`
Configuration menu - View commit details
-
Copy full SHA for d212c38 - Browse repository at this point
Copy the full SHA d212c38View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4852cca - Browse repository at this point
Copy the full SHA 4852ccaView commit details -
Rollup merge of rust-lang#78710 - petrochenkov:macvisit, r=davidtwco
rustc_ast: Do not panic by default when visiting macro calls Panicking by default made sense when we didn't have HIR or MIR and everything worked on AST, but now all AST visitors run early and majority of them have to deal with macro calls, often by ignoring them. The second commit renames `visit_mac` to `visit_mac_call`, the corresponding structures were renamed earlier in rust-lang#69589.
Configuration menu - View commit details
-
Copy full SHA for 6294300 - Browse repository at this point
Copy the full SHA 6294300View commit details -
Auto merge of rust-lang#6305 - smoelius:master, r=flip1995
Add `let_underscore_drop` This line generalizes `let_underscore_lock` (rust-lang#5101) to warn about any initializer expression that implements `Drop`. So, for example, the following would generate a warning: ```rust struct Droppable; impl Drop for Droppable { fn drop(&mut self) {} } let _ = Droppable; ``` I tried to preserve the original `let_underscore_lock` functionality in the sense that the warning generated for ```rust let _ = mutex.lock(); ``` should be unchanged. *Please keep the line below* changelog: Add lint [`let_underscore_drop`]
Configuration menu - View commit details
-
Copy full SHA for dd826b4 - Browse repository at this point
Copy the full SHA dd826b4View commit details
Commits on Nov 10, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 3ea6f77 - Browse repository at this point
Copy the full SHA 3ea6f77View commit details -
Configuration menu - View commit details
-
Copy full SHA for effcb52 - Browse repository at this point
Copy the full SHA effcb52View commit details -
Auto merge of rust-lang#6319 - ebroto:rustup, r=ebroto
Rustup changelog: none r? `@ghost`
Configuration menu - View commit details
-
Copy full SHA for 467bf95 - Browse repository at this point
Copy the full SHA 467bf95View commit details -
Auto merge of rust-lang#6303 - ThibsG:OptionOptionSerde, r=ebroto
Remove `allow` in `option_option` lint test As it is not triggering locally anymore, I propose to remove `#[allow(clippy::option_option)]` from the test. The goal is also to see what happens on CI. closes: rust-lang#4298 changelog: none
Configuration menu - View commit details
-
Copy full SHA for d0858d0 - Browse repository at this point
Copy the full SHA d0858d0View commit details
Commits on Nov 11, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 7690944 - Browse repository at this point
Copy the full SHA 7690944View commit details -
Auto merge of rust-lang#6269 - camsteffen:map-clone-deref, r=ebroto
Fix map_clone with deref and clone changelog: Fix map_clone false positive with deref coercion Fixes rust-lang#6239
Configuration menu - View commit details
-
Copy full SHA for c4fc076 - Browse repository at this point
Copy the full SHA c4fc076View commit details -
Added a lint as suggested in 6010 which recommends using
contains()
instead of `find()` follows by `is_some()` on strings Update clippy_lints/src/find_is_some_on_strs.rs Co-authored-by: Takayuki Nakata <f.seasons017@gmail.com> Update clippy_lints/src/methods/mod.rs Co-authored-by: Philipp Krones <hello@philkrones.com>
Configuration menu - View commit details
-
Copy full SHA for a1cf2d3 - Browse repository at this point
Copy the full SHA a1cf2d3View commit details -
Moved the tests for lint
search_is_some
to new files`search_is_some.rs` and `search_is_some_fixable.rs`
Configuration menu - View commit details
-
Copy full SHA for 431fcbc - Browse repository at this point
Copy the full SHA 431fcbcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 55dc822 - Browse repository at this point
Copy the full SHA 55dc822View commit details -
Co-authored-by: Philipp Krones <hello@philkrones.com>
Configuration menu - View commit details
-
Copy full SHA for e9612f3 - Browse repository at this point
Copy the full SHA e9612f3View commit details -
Co-authored-by: Philipp Krones <hello@philkrones.com>
Configuration menu - View commit details
-
Copy full SHA for fb74b48 - Browse repository at this point
Copy the full SHA fb74b48View commit details -
Added period back to lint
search_is_some
and ran`update-all-references.sh`
Configuration menu - View commit details
-
Copy full SHA for ee1b959 - Browse repository at this point
Copy the full SHA ee1b959View commit details -
Configuration menu - View commit details
-
Copy full SHA for fd30313 - Browse repository at this point
Copy the full SHA fd30313View commit details -
Update clippy_lints/src/methods/mod.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
Configuration menu - View commit details
-
Copy full SHA for 56d252c - Browse repository at this point
Copy the full SHA 56d252cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c1c50e - Browse repository at this point
Copy the full SHA 5c1c50eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f92f8d0 - Browse repository at this point
Copy the full SHA f92f8d0View commit details -
Implement destructuring assignment for structs and slices
Co-authored-by: varkor <github@varkor.com>
Configuration menu - View commit details
-
Copy full SHA for 5f310d9 - Browse repository at this point
Copy the full SHA 5f310d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f64867 - Browse repository at this point
Copy the full SHA 5f64867View commit details -
Configuration menu - View commit details
-
Copy full SHA for d569696 - Browse repository at this point
Copy the full SHA d569696View commit details
Commits on Nov 12, 2020
-
Auto merge of rust-lang#78782 - petrochenkov:nodoctok, r=Aaron1011
Do not collect tokens for doc comments Doc comment is a single token and AST has all the information to re-create it precisely. Doc comments are also responsible for majority of calls to `collect_tokens` (with `num_calls == 1` and `num_calls == 0`, cc rust-lang#78736). (I also moved token collection into `fn parse_attribute` to deduplicate code a bit.) r? `@Aaron1011`
Configuration menu - View commit details
-
Copy full SHA for 92ece84 - Browse repository at this point
Copy the full SHA 92ece84View commit details -
Auto merge of rust-lang#6325 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` changelog: none
Configuration menu - View commit details
-
Copy full SHA for bd13a35 - Browse repository at this point
Copy the full SHA bd13a35View commit details -
Configuration menu - View commit details
-
Copy full SHA for 084b0da - Browse repository at this point
Copy the full SHA 084b0daView commit details -
Rollup merge of rust-lang#78836 - fanzier:struct-and-slice-destructur…
…ing, r=petrochenkov Implement destructuring assignment for structs and slices This is the second step towards implementing destructuring assignment (RFC: rust-lang/rfcs#2909, tracking issue: rust-lang#71126). This PR is the second part of rust-lang#71156, which was split up to allow for easier review. Note that the first PR (rust-lang#78748) is not merged yet, so it is included as the first commit in this one. I thought this would allow the review to start earlier because I have some time this weekend to respond to reviews. If ``@petrochenkov`` prefers to wait until the first PR is merged, I totally understand, of course. This PR implements destructuring assignment for (tuple) structs and slices. In order to do this, the following *parser change* was necessary: struct expressions are not required to have a base expression, i.e. `Struct { a: 1, .. }` becomes legal (in order to act like a struct pattern). Unfortunately, this PR slightly regresses the diagnostics implemented in rust-lang#77283. However, it is only a missing help message in `src/test/ui/issues/issue-77218.rs`. Other instances of this diagnostic are not affected. Since I don't exactly understand how this help message works and how to fix it yet, I was hoping it's OK to regress this temporarily and fix it in a follow-up PR. Thanks to ``@varkor`` who helped with the implementation, particularly around the struct rest changes. r? ``@petrochenkov``
Configuration menu - View commit details
-
Copy full SHA for 3a648ff - Browse repository at this point
Copy the full SHA 3a648ffView commit details
Commits on Nov 13, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c6b74df - Browse repository at this point
Copy the full SHA c6b74dfView commit details -
Auto merge of rust-lang#6329 - giraffate:sync-from-rust, r=matthiaskrgr
Rustup changelog: none
Configuration menu - View commit details
-
Copy full SHA for cf7b4b0 - Browse repository at this point
Copy the full SHA cf7b4b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7987f39 - Browse repository at this point
Copy the full SHA 7987f39View commit details
Commits on Nov 14, 2020
-
Auto merge of rust-lang#6320 - giraffate:fix_suggestion_in_manual_ran…
…ge_contains_using_float, r=llogiq Fix suggestion in `manual_range_contains` when using float Fix rust-lang#6315 changelog: Fix suggestion in `manual_range_contains` when using float
Configuration menu - View commit details
-
Copy full SHA for 408b615 - Browse repository at this point
Copy the full SHA 408b615View commit details -
Add underscore expressions for destructuring assignments
Co-authored-by: varkor <github@varkor.com>
Configuration menu - View commit details
-
Copy full SHA for 864e554 - Browse repository at this point
Copy the full SHA 864e554View commit details -
Auto merge of rust-lang#78809 - vn-ki:fix-issue-76064, r=oli-obk
add error_occured field to ConstQualifs, fix rust-lang#76064 I wasn't sure what `in_return_place` actually did and not sure why it returns `ConstQualifs` while it's sibling functions return `bool`. So I tried to make as minimal changes to the structure as possible. Please point out whether I have to refactor it or not. r? `@oli-obk` cc `@RalfJung`
Configuration menu - View commit details
-
Copy full SHA for 0c7a48c - Browse repository at this point
Copy the full SHA 0c7a48cView commit details -
Configuration menu - View commit details
-
Copy full SHA for cbb6b1c - Browse repository at this point
Copy the full SHA cbb6b1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b55cc7 - Browse repository at this point
Copy the full SHA 1b55cc7View commit details
Commits on Nov 15, 2020
-
Rollup merge of rust-lang#79016 - fanzier:underscore-expressions, r=p…
…etrochenkov Make `_` an expression, to discard values in destructuring assignments This is the third and final step towards implementing destructuring assignment (RFC: rust-lang/rfcs#2909, tracking issue: rust-lang#71126). This PR is the third and final part of rust-lang#71156, which was split up to allow for easier review. With this PR, an underscore `_` is parsed as an expression but is allowed *only* on the left-hand side of a destructuring assignment. There it simply discards a value, similarly to the wildcard `_` in patterns. For instance, ```rust (a, _) = (1, 2) ``` will simply assign 1 to `a` and discard the 2. Note that for consistency, ``` _ = foo ``` is also allowed and equivalent to just `foo`. Thanks to ````@varkor```` who helped with the implementation, particularly around pre-expansion gating. r? ````@petrochenkov````
Configuration menu - View commit details
-
Copy full SHA for 27a1572 - Browse repository at this point
Copy the full SHA 27a1572View commit details -
Auto merge of rust-lang#6334 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` changelog: none
Configuration menu - View commit details
-
Copy full SHA for db04641 - Browse repository at this point
Copy the full SHA db04641View commit details
Commits on Nov 16, 2020
-
Add
rustfmt::skip
as a work aroundbecause comments are checked and removed by rustfmt for some reason
Configuration menu - View commit details
-
Copy full SHA for 0e80341 - Browse repository at this point
Copy the full SHA 0e80341View commit details -
Auto merge of rust-lang#6336 - giraffate:sync-from-rust, r=flip1995
Rustup changelog: none
Configuration menu - View commit details
-
Copy full SHA for df3bb58 - Browse repository at this point
Copy the full SHA df3bb58View commit details -
Auto merge of rust-lang#6119 - rsulli55:find_is_some_on_strs, r=flip1995
Add a case to `lint_search_is_some` to handle searching strings Fixes: rust-lang#6010 This adds a lint which recommends using `contains()` instead of `find()` followed by `is_some()` on strings as suggested in rust-lang#6010. This was added as an additional case to https://github.com/rust-lang/rust-clippy/blob/5af88e3c2d8cc4fb74a0e455381669930ee3a31a/clippy_lints/src/methods/mod.rs#L3037 I would really appreciate any comments/suggestions for my code! changelog: Added case to `lint_search_is_some` to handle searching strings
Configuration menu - View commit details
-
Copy full SHA for ad4f829 - Browse repository at this point
Copy the full SHA ad4f829View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3567ea5 - Browse repository at this point
Copy the full SHA 3567ea5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b8f2b6 - Browse repository at this point
Copy the full SHA 5b8f2b6View commit details
Commits on Nov 17, 2020
-
Auto merge of rust-lang#78779 - LeSeulArtichaut:ty-visitor-return, r=…
…oli-obk Introduce `TypeVisitor::BreakTy` Implements MCP rust-lang/compiler-team#383. r? `@ghost` cc `@lcnr` `@oli-obk` ~~Blocked on FCP in rust-lang/compiler-team#383.~~
Configuration menu - View commit details
-
Copy full SHA for a467c51 - Browse repository at this point
Copy the full SHA a467c51View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7ac441 - Browse repository at this point
Copy the full SHA a7ac441View commit details -
Configuration menu - View commit details
-
Copy full SHA for 750c118 - Browse repository at this point
Copy the full SHA 750c118View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0335b8d - Browse repository at this point
Copy the full SHA 0335b8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e9d227 - Browse repository at this point
Copy the full SHA 0e9d227View commit details -
Configuration menu - View commit details
-
Copy full SHA for ebdd4e2 - Browse repository at this point
Copy the full SHA ebdd4e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a62390 - Browse repository at this point
Copy the full SHA 6a62390View commit details -
Co-authored-by: Philipp Krones <hello@philkrones.com>
Configuration menu - View commit details
-
Copy full SHA for 3ed8902 - Browse repository at this point
Copy the full SHA 3ed8902View commit details -
Configuration menu - View commit details
-
Copy full SHA for c775856 - Browse repository at this point
Copy the full SHA c775856View commit details -
Configuration menu - View commit details
-
Copy full SHA for a433d46 - Browse repository at this point
Copy the full SHA a433d46View commit details -
Configuration menu - View commit details
-
Copy full SHA for cdb72df - Browse repository at this point
Copy the full SHA cdb72dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b55f3f - Browse repository at this point
Copy the full SHA 6b55f3fView commit details -
Configuration menu - View commit details
-
Copy full SHA for df0d565 - Browse repository at this point
Copy the full SHA df0d565View commit details -
Update clippy_lints/src/unnecessary_wrap.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
Configuration menu - View commit details
-
Copy full SHA for eec7f5c - Browse repository at this point
Copy the full SHA eec7f5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bdac87 - Browse repository at this point
Copy the full SHA 1bdac87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8392bc7 - Browse repository at this point
Copy the full SHA 8392bc7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f85aa7 - Browse repository at this point
Copy the full SHA 2f85aa7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12474c6 - Browse repository at this point
Copy the full SHA 12474c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5447eb - Browse repository at this point
Copy the full SHA c5447ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for c7692cf - Browse repository at this point
Copy the full SHA c7692cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 30632fb - Browse repository at this point
Copy the full SHA 30632fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for e998d61 - Browse repository at this point
Copy the full SHA e998d61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d96311 - Browse repository at this point
Copy the full SHA 9d96311View commit details -
Configuration menu - View commit details
-
Copy full SHA for 532d205 - Browse repository at this point
Copy the full SHA 532d205View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf46f78 - Browse repository at this point
Copy the full SHA bf46f78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 86331a4 - Browse repository at this point
Copy the full SHA 86331a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c8d248 - Browse repository at this point
Copy the full SHA 4c8d248View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e5c02e - Browse repository at this point
Copy the full SHA 4e5c02eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f577c0 - Browse repository at this point
Copy the full SHA 1f577c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c7445d7 - Browse repository at this point
Copy the full SHA c7445d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf2d31d - Browse repository at this point
Copy the full SHA bf2d31dView commit details -
Auto merge of rust-lang#6338 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` changelog: none
Configuration menu - View commit details
-
Copy full SHA for a8cafc6 - Browse repository at this point
Copy the full SHA a8cafc6View commit details -
Auto merge of rust-lang#6337 - ThibsG:FixIce6332, r=Manishearth
Remove `expect()` calls to avoid ICEs in `deref_addrof` lint Fixes: rust-lang#6332 changelog: none
Configuration menu - View commit details
-
Copy full SHA for 5464cbe - Browse repository at this point
Copy the full SHA 5464cbeView commit details -
This should make Clippy more resilient and will unblock rust-lang#78343. This PR is made against rust-lang/rust to avoid the need for a subtree sync at @flip1995's suggestion in rust-lang/rust-clippy#6310.
Configuration menu - View commit details
-
Copy full SHA for 4e4c4fb - Browse repository at this point
Copy the full SHA 4e4c4fbView commit details -
Auto merge of rust-lang#6070 - matsujika:unnecessary_wrap, r=flip1995
Add new lint `unnecessary_wrap` Fixes rust-lang#5969 changelog: New lint [`unnecessary_wraps`]
Configuration menu - View commit details
-
Copy full SHA for 44d9445 - Browse repository at this point
Copy the full SHA 44d9445View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0502ac2 - Browse repository at this point
Copy the full SHA 0502ac2View commit details
Commits on Nov 18, 2020
-
Auto merge of rust-lang#6340 - giraffate:improve_doc_for_map_clone, r…
…=Manishearth Improve doc about `map_clone` A follow up of rust-lang/rust-clippy#6239 (comment). `map_clone` works with not only `Iterator` but `Option` although not written in [doc](https://rust-lang.github.io/rust-clippy/master/#map_clone). Also, an example in the doc shows a usage of dereferencing, but this isn't also written. changelog: Improve doc about `map_clone`
Configuration menu - View commit details
-
Copy full SHA for 8c2e2fd - Browse repository at this point
Copy the full SHA 8c2e2fdView commit details -
Revert "Add
rustfmt::skip
as a work around"This reverts commit 0e80341. Fixed by rust-lang/rustfmt#4528.
Configuration menu - View commit details
-
Copy full SHA for 6494bd0 - Browse repository at this point
Copy the full SHA 6494bd0View commit details -
Rollup merge of rust-lang#79145 - camelid:clippy-fix-panics, r=flip1995
Fix handling of panic calls This should make Clippy more resilient and will unblock rust-lang#78343. This PR is made against rust-lang/rust to avoid the need for a subtree sync at ``@flip1995's`` suggestion in rust-lang/rust-clippy#6310. r? ``@flip1995`` cc ``@m-ou-se``
Configuration menu - View commit details
-
Copy full SHA for 577ebc8 - Browse repository at this point
Copy the full SHA 577ebc8View commit details
Commits on Nov 19, 2020
-
Auto merge of rust-lang#6345 - giraffate:follow_up_of_rustup, r=flip1995
Revert "Add `rustfmt::skip` as a work around" This reverts commit 0e80341. Fixed by rustfmt v1.4.27 available in the latest nightly (2020-11-18). Refer to rust-lang/rustfmt#4528. changelog: none
Configuration menu - View commit details
-
Copy full SHA for b2aefb8 - Browse repository at this point
Copy the full SHA b2aefb8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bf58bd - Browse repository at this point
Copy the full SHA 4bf58bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for a98acdb - Browse repository at this point
Copy the full SHA a98acdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for e9afdf0 - Browse repository at this point
Copy the full SHA e9afdf0View commit details -
Remove the clippy::panic-params lint.
Rustc itself now warns for all cases that triggered this lint.
Configuration menu - View commit details
-
Copy full SHA for 78faaef - Browse repository at this point
Copy the full SHA 78faaefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 113c147 - Browse repository at this point
Copy the full SHA 113c147View commit details
Commits on Nov 20, 2020
-
Configuration menu - View commit details
-
Copy full SHA for dd4e471 - Browse repository at this point
Copy the full SHA dd4e471View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ee0a40 - Browse repository at this point
Copy the full SHA 5ee0a40View commit details -
Auto merge of rust-lang#6351 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` changelog: none
Configuration menu - View commit details
-
Copy full SHA for 8325d48 - Browse repository at this point
Copy the full SHA 8325d48View commit details -
Auto merge of rust-lang#6347 - flip1995:changelog, r=Manishearth
Changelog Rust 1.48 [Rendered](https://github.com/flip1995/rust-clippy/blob/changelog/CHANGELOG.md) This changelog is **big**. Hacktoberfest was pretty good for us, even though we had too few reviewers. changelog: none
Configuration menu - View commit details
-
Copy full SHA for 70ffebf - Browse repository at this point
Copy the full SHA 70ffebfView commit details -
Revert "Convert the await holding lints to correctness"
This reverts commit d8c6bce.
Daniel Smith committedNov 20, 2020 Configuration menu - View commit details
-
Copy full SHA for 8b21241 - Browse repository at this point
Copy the full SHA 8b21241View commit details -
Auto merge of rust-lang#6354 - Daniel-B-Smith:refcell_ref_await, r=fl…
…ip1995 Downgrade the await holding lints from correctness We found a false positive in these lints (see rust-lang/rust-clippy#6353 for more details). As a short-term mitigation, this downgrades the lints from correctness to limit the noise. changelog: downgrade AWAIT_HOLDING_REFCELL_REF and AWAIT_HOLDING_LOCK to pedantic. From rustup earlier, where I forgot the changlog: deprecate [`panic_params`] (uplifted)
Configuration menu - View commit details
-
Copy full SHA for 0402c6a - Browse repository at this point
Copy the full SHA 0402c6aView commit details
Commits on Nov 22, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 9b910e1 - Browse repository at this point
Copy the full SHA 9b910e1View commit details -
oliver committed
Nov 22, 2020 Configuration menu - View commit details
-
Copy full SHA for e30bb76 - Browse repository at this point
Copy the full SHA e30bb76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6667c66 - Browse repository at this point
Copy the full SHA 6667c66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27af650 - Browse repository at this point
Copy the full SHA 27af650View commit details -
Auto merge of rust-lang#6364 - o752d:master, r=flip1995
revisiting a typo changelog: none
Configuration menu - View commit details
-
Copy full SHA for 4284ec3 - Browse repository at this point
Copy the full SHA 4284ec3View commit details -
Auto merge of rust-lang#6363 - o752d:patch-2, r=flip1995
a typo typo changelog: none
Configuration menu - View commit details
-
Copy full SHA for 831aa96 - Browse repository at this point
Copy the full SHA 831aa96View commit details -
Configuration menu - View commit details
-
Copy full SHA for 034244f - Browse repository at this point
Copy the full SHA 034244fView commit details -
Apply suggestions from code review to change "that" to "which"
Co-authored-by: oliver <16816606+o752d@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 445466e - Browse repository at this point
Copy the full SHA 445466eView commit details -
Auto merge of rust-lang#6361 - integer32llc:doc-style, r=carols10cents
Small grammar, punctuation, and code style improvements to docs changelog: Made small grammar, punctuation, and code style improvements to docs I recently found some places in rust-lang/rust that had lists without spaces after commas, which led me to look for more places, which led me over here to find: - Some similar lists in code examples that could use spaces after commas to be idiomatic Rust style - Some lists in documentation text that didn't have spaces after commas, needed an Oxford comma (fight me), or were otherwise misformatted - Some other grammar improvements in the area of the other changes These changes should only be in user-facing documentation or output.
Configuration menu - View commit details
-
Copy full SHA for 3e7c6de - Browse repository at this point
Copy the full SHA 3e7c6deView commit details -
Make
fold_item_recur
non-nullableThis gets rid of a bunch of `unwrap()`s and makes it a little more clear what's going on. Originally I wanted to make `fold_item` non-nullable too, which would have been a lot nicer to work with, but unfortunately `stripper` does actually return `None` in some places. I might make a follow-up moving stripper to be special and not a pass so that passes can be non-nullable.
Configuration menu - View commit details
-
Copy full SHA for ab1e634 - Browse repository at this point
Copy the full SHA ab1e634View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0043fc9 - Browse repository at this point
Copy the full SHA 0043fc9View commit details -
This will allow linking to things like `Result<T, !>`.
Configuration menu - View commit details
-
Copy full SHA for 0b6537a - Browse repository at this point
Copy the full SHA 0b6537aView commit details
Commits on Nov 23, 2020
-
Allow using
-Z fewer-names=no
to retain value namesChange `-Z fewer-names` into an optional boolean flag and allow using it to either discard value names when true or retain them when false, regardless of other settings.
Configuration menu - View commit details
-
Copy full SHA for fafe3cd - Browse repository at this point
Copy the full SHA fafe3cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for dfac9be - Browse repository at this point
Copy the full SHA dfac9beView commit details -
Fix ICE in utils::implements_trait
This only happend when debug_assertions were enabled in rustc
Configuration menu - View commit details
-
Copy full SHA for 99b9459 - Browse repository at this point
Copy the full SHA 99b9459View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5c3d7b - Browse repository at this point
Copy the full SHA c5c3d7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8526c31 - Browse repository at this point
Copy the full SHA 8526c31View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c8db45 - Browse repository at this point
Copy the full SHA 9c8db45View commit details -
Configuration menu - View commit details
-
Copy full SHA for fcbe638 - Browse repository at this point
Copy the full SHA fcbe638View commit details
Commits on Nov 24, 2020
-
Allow disabling TrapUnreachable via -Ztrap-unreachable=no
This is useful for embedded targets where small code size is desired. For example, on my project (thumbv7em-none-eabi) this yields a 0.6% code size reduction.
Configuration menu - View commit details
-
Copy full SHA for 7b62e09 - Browse repository at this point
Copy the full SHA 7b62e09View commit details -
Rollup merge of rust-lang#78953 - mzohreva:mz/from_raw_fd, r=Mark-Sim…
…ulacrum Add Metadata in std::os::fortanix_sgx::io::FromRawFd Needed for fortanix/rust-sgx#291 cc `@jethrogb`
Configuration menu - View commit details
-
Copy full SHA for 04db18d - Browse repository at this point
Copy the full SHA 04db18dView commit details -
Rollup merge of rust-lang#79038 - CDirkx:move-ui-tests, r=dtolnay
Change ui test that are run-pass and that do not test the compiler to library tests Part of rust-lang#76268, these are some of the relevant ui tests I found that can be replaced by library tests. Note: this PR just moves the tests, I have not checked for any overlap between these tests and existing library tests. The only test I changed is `env_home_dir`, where I added code to restore the old home dir after testing. All moved tests: | ui test | library test file | test | | --- | --- | --- | | `const\ascii_ctype.rs` | `core\tests\ascii.rs` | `ascii_ctype_const` | | `const\const-str-ptr.rs` | `alloc\tests\str.rs` | `const_str_ptr` | | `assert-eq-trailing-comma.rs` | `core\tests\macros.rs` | `assert_eq_trailing_comma` | | `assert-escape.rs` | `core\tests\macros.rs` | `assert_escape` | | `assert-ne-trailing-comma.rs` | `core\tests\macros.rs` | `assert_ne_trailing_comma` | | `atomic-access-bool.rs` | `core\tests\atomic.rs` | `atomic_access_bool` | | `atomic-alignment.rs` | `core\tests\atomic.rs` | `atomic_alignment` | | `atomic-compare_exchange.rs` | `core\tests\atomic.rs` | `atomic_compare_exchange` | | ~~`atomic-print.rs`~~ | ~~`std\tests\process.rs`~~ | ~~`atomic_print`~~ | | `bool.rs` | `core\tests\bool.rs` | `test_bool` | | `bool_not.rs` | `core\tests\bool.rs` | `test_bool_not` | | `char_unicode.rs` | `core\tests\unicode.rs` | `version` | | `cmp-default.rs` | `core\tests\cmp.rs` | `cmp_default` | | `deref-mut-on-ref.rs` | `core\tests\ops.rs` | `deref_mut_on_ref` | | `deref-on-ref.rs` | `core\tests\ops.rs` | `deref_on_ref` | | `env-home-dir.rs` | `std\tests\env.rs` | `env_home_dir` | | ~~`env-vars.rs`~~ | ~~`std\tests\env.rs`~~ | ~~`env_vars`~~ | | `extend-for-unit.rs` | `core\tests\iter.rs` | `extend_for_unit` | | `offset_from.rs` | `core\tests\ptr.rs` | `offset_from` | | `option-ext.rs` | `core\tests\option.rs` | `option_ext` | | `result-opt-conversions.rs` | `core\tests\result.rs` | `result_opt_conversions` | | `sleep.rs` | `std\tests\thread.rs` | `sleep` | | ~~`try-wait.rs`~~ | ~~`std\tests\process.rs`~~ | ~~`try_wait`~~ | | `utf8.rs` | `alloc\tests\str.rs` | `utf8` | | `utf8_chars.rs` | `alloc\tests\str.rs` | `utf8_chars` | | `wrapping-int-api.rs` | `core\tests\num\wrapping.rs` | `wrapping_int_api` |
Configuration menu - View commit details
-
Copy full SHA for 21b3fc0 - Browse repository at this point
Copy the full SHA 21b3fc0View commit details -
Rollup merge of rust-lang#79228 - flip1995:clippyup, r=oli-obk
Update Clippy Biweekly Clippy update r? `@Manishearth`
Configuration menu - View commit details
-
Copy full SHA for f7875d3 - Browse repository at this point
Copy the full SHA f7875d3View commit details -
Rollup merge of rust-lang#79294 - petrochenkov:determ, r=varkor
resolve: Do not put macros into `module.unexpanded_invocations` unless necessary Macro invocations in modules <sup>(*)</sup> need to be tracked because they can produce named items when expanded. We cannot give definite answer to queries like "does this module declare name `n`?" until all macro calls in that module are expanded. Previously we marked too many macros as potentially producing named items. E.g. in this example ```rust mod m { const C: u32 = line!(); } ``` `line!()` cannot emit any items into module `m`, but it was still marked. This PR fixes that and marks macro calls as "unexpanded in module" only if they can actually emit named items into that module. Diagnostics in UI test outputs have different order now because this change affects macro expansion order. <sup>*</sup> Any containers for named items are called modules in resolve (that includes blocks, traits and enums in addition to `mod` items).
Configuration menu - View commit details
-
Copy full SHA for 8c315c6 - Browse repository at this point
Copy the full SHA 8c315c6View commit details -
Rollup merge of rust-lang#79310 - jyn514:fold-item-cleanup, r=Guillau…
…meGomez Make `fold_item_recur` non-nullable This gets rid of a bunch of `unwrap()`s and makes it a little more clear what's going on. Originally I wanted to make `fold_item` non-nullable too, which would have been a lot nicer to work with, but unfortunately `stripper` does actually return `None` in some places. I might make a follow-up moving stripper to be special and not a pass so that passes can be non-nullable. Found while working on rust-lang#76998.
Configuration menu - View commit details
-
Copy full SHA for e6349ac - Browse repository at this point
Copy the full SHA e6349acView commit details -
Rollup merge of rust-lang#79312 - jyn514:doctree-impl, r=GuillaumeGomez
Get rid of `doctree::Impl` Follow-up to rust-lang#79264, continues breaking up rust-lang#78082. At some point I want to introduce `MaybeInlined`, but I think I'll wait until I need `MaybeInlined::InlinedWithOriginal` because it's not very useful in other situations. r? `@GuillaumeGomez`
Configuration menu - View commit details
-
Copy full SHA for 5b492c9 - Browse repository at this point
Copy the full SHA 5b492c9View commit details -
Rollup merge of rust-lang#79321 - camelid:intra-doc-bang, r=Manishearth
Accept '!' in intra-doc links This will allow linking to things like `Result<T, !>`. *See <https://github.com/rust-lang/rust/pull/77832#discussion_r528409079>.* r? `@jyn514`
Configuration menu - View commit details
-
Copy full SHA for 9a05fd6 - Browse repository at this point
Copy the full SHA 9a05fd6View commit details -
Rollup merge of rust-lang#79346 - tmiasko:more-names, r=jonas-schievink
Allow using `-Z fewer-names=no` to retain value names Change `-Z fewer-names` into an optional boolean flag and allow using it to either discard value names when true or retain them when false, regardless of other settings.
Configuration menu - View commit details
-
Copy full SHA for f013b4d - Browse repository at this point
Copy the full SHA f013b4dView commit details -
Rollup merge of rust-lang#79351 - Takashiidobe:keyword-docs-typo, r=m…
…-ou-se Fix typo in `keyword` docs for traits This PR fixes a small typo in the `keyword_docs.rs` file, describing the differences between the 2015 and 2018 editions of traits.
Configuration menu - View commit details
-
Copy full SHA for 1361d74 - Browse repository at this point
Copy the full SHA 1361d74View commit details -
Rollup merge of rust-lang#79354 - ssomers:btree_bereave_BoxedNode, r=…
…Mark-Simulacrum BTreeMap: cut out the ceremony around BoxedNode The opposite direction of rust-lang#79093. r? `@Mark-Simulacrum`
Configuration menu - View commit details
-
Copy full SHA for a8c1597 - Browse repository at this point
Copy the full SHA a8c1597View commit details -
Rollup merge of rust-lang#79358 - ssomers:btree_public_comments, r=Ma…
…rk-Simulacrum BTreeMap/BTreeSet: make public doc more consistent Tweaks rust-lang#72876 and rust-lang#73667 and propagate them to `BTreeSet`.
Configuration menu - View commit details
-
Copy full SHA for 0e7ce1e - Browse repository at this point
Copy the full SHA 0e7ce1eView commit details -
Rollup merge of rust-lang#79367 - Dirbaio:trap-unreachable, r=jonas-s…
…chievink Allow disabling TrapUnreachable via -Ztrap-unreachable=no Currently this is only possible by defining a custom target, which is quite unwieldy. This is useful for embedded targets where small code size is desired. For example, on my project (thumbv7em-none-eabi) this yields a 0.6% code size reduction: 132892 bytes -> 132122 bytes (770 bytes down).
Configuration menu - View commit details
-
Copy full SHA for e5a4e14 - Browse repository at this point
Copy the full SHA e5a4e14View commit details