-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 9 pull requests #122850
Rollup of 9 pull requests #122850
Commits on Feb 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a4b413d - Browse repository at this point
Copy the full SHA a4b413dView commit details
Commits on Feb 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for dbfbd0e - Browse repository at this point
Copy the full SHA dbfbd0eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 89b334d - Browse repository at this point
Copy the full SHA 89b334dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2884970 - Browse repository at this point
Copy the full SHA 2884970View commit details -
feat: add more tests for the
const_is_empty
lintSuggested by @xFrednet and @matthiaskrgr.
Configuration menu - View commit details
-
Copy full SHA for 1159e2c - Browse repository at this point
Copy the full SHA 1159e2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 898ed88 - Browse repository at this point
Copy the full SHA 898ed88View commit details
Commits on Mar 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 301d293 - Browse repository at this point
Copy the full SHA 301d293View commit details
Commits on Mar 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 865ac89 - Browse repository at this point
Copy the full SHA 865ac89View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9858da - Browse repository at this point
Copy the full SHA a9858daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e83df4 - Browse repository at this point
Copy the full SHA 7e83df4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43f4ec3 - Browse repository at this point
Copy the full SHA 43f4ec3View commit details -
[
use_self
]: Make it aware of lifetimesHave the lint trigger even if `Self` has generic lifetime parameters. ```rs impl<'a> Foo<'a> { type Item = Foo<'a>; // Can be replaced with Self fn new() -> Self { Foo { // No lifetime, but they are inferred to be that of Self // Can be replaced as well ... } } // Don't replace `Foo<'b>`, the lifetime is different! fn eq<'b>(self, other: Foo<'b>) -> bool { .. } ``` Fixes rust-lang#12381
Configuration menu - View commit details
-
Copy full SHA for f3879b3 - Browse repository at this point
Copy the full SHA f3879b3View commit details
Commits on Mar 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3a6cac7 - Browse repository at this point
Copy the full SHA 3a6cac7View commit details -
The Miri Cronjob Bot committed
Mar 8, 2024 Configuration menu - View commit details
-
Copy full SHA for 55b757e - Browse repository at this point
Copy the full SHA 55b757eView commit details -
Rollup merge of rust-lang#119365 - nbdd0121:asm-goto, r=Amanieu
Add asm goto support to `asm!` Tracking issue: rust-lang#119364 This PR implements asm-goto support, using the syntax described in "future possibilities" section of [RFC2873](https://rust-lang.github.io/rfcs/2873-inline-asm.html#asm-goto). Currently I have only implemented the `label` part, not the `fallthrough` part (i.e. fallthrough is implicit). This doesn't reduce the expressive though, since you can use label-break to get arbitrary control flow or simply set a value and rely on jump threading optimisation to get the desired control flow. I can add that later if deemed necessary. r? ``@Amanieu`` cc ``@ojeda``
Configuration menu - View commit details
-
Copy full SHA for 1572279 - Browse repository at this point
Copy the full SHA 1572279View commit details -
Configuration menu - View commit details
-
Copy full SHA for adc91e4 - Browse repository at this point
Copy the full SHA adc91e4View commit details -
Auto merge of rust-lang#12433 - J-ZhengLi:issue12197, r=dswij
fix [`missing_docs_in_private_items`] on some proc macros fixes: rust-lang#12197 --- changelog: [`missing_docs_in_private_items`] support manually search for docs as fallback method
Configuration menu - View commit details
-
Copy full SHA for 0b4b684 - Browse repository at this point
Copy the full SHA 0b4b684View commit details -
Rollup merge of rust-lang#121194 - beetrees:rustc-raw-args, r=petroch…
…enkov Refactor pre-getopts command line argument handling Rebased version of rust-lang#111658. I've also fixed the Windows CI failure (although I don't have access to Windows to test it myself).
Configuration menu - View commit details
-
Copy full SHA for 1bd7383 - Browse repository at this point
Copy the full SHA 1bd7383View commit details -
Configuration menu - View commit details
-
Copy full SHA for 158b70a - Browse repository at this point
Copy the full SHA 158b70aView commit details
Commits on Mar 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2dd085f - Browse repository at this point
Copy the full SHA 2dd085fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e95b4a - Browse repository at this point
Copy the full SHA 4e95b4aView commit details -
Auto merge of rust-lang#118879 - Nadrieril:lint-range-gap, r=estebank
Lint singleton gaps after exclusive ranges In the discussion to stabilize exclusive range patterns (rust-lang#37854), it has often come up that they're likely to cause off-by-one mistakes. We already have the `overlapping_range_endpoints` lint, so I [proposed](rust-lang#37854 (comment)) a lint to catch the complementary mistake. This PR adds a new `non_contiguous_range_endpoints` lint that catches likely off-by-one errors with exclusive range patterns. Here's the idea (see the test file for more examples): ```rust match x { 0..10 => ..., // WARN: this range doesn't match `10_u8` because `..` is an exclusive range 11..20 => ..., // this could appear to continue range `0_u8..10_u8`, but `10_u8` isn't matched by either of them _ => ..., } // help: use an inclusive range instead: `0_u8..=10_u8` ``` More precisely: for any exclusive range `lo..hi`, if `hi+1` is matched by another range but `hi` isn't, we suggest writing an inclusive range `lo..=hi` instead. We also catch `lo..T::MAX`.
Configuration menu - View commit details
-
Copy full SHA for 6890407 - Browse repository at this point
Copy the full SHA 6890407View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7473f05 - Browse repository at this point
Copy the full SHA 7473f05View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d78cd1 - Browse repository at this point
Copy the full SHA 8d78cd1View commit details -
The Miri Cronjob Bot committed
Mar 9, 2024 Configuration menu - View commit details
-
Copy full SHA for 4d15a75 - Browse repository at this point
Copy the full SHA 4d15a75View commit details -
Auto merge of rust-lang#12310 - samueltardieu:issue-12307, r=xFrednet
New lint `const_is_empty` This lint detects calls to `.is_empty()` on an entity initialized from a string literal and flag them as suspicious. To avoid triggering on macros called from generated code, it checks that the `.is_empty()` receiver, the call itself and the initialization come from the same context. Fixes rust-lang#12307 changelog: [`const_is_empty`]: new lint
Configuration menu - View commit details
-
Copy full SHA for 453242c - Browse repository at this point
Copy the full SHA 453242cView commit details -
Configuration menu - View commit details
-
Copy full SHA for f34804d - Browse repository at this point
Copy the full SHA f34804dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 749e225 - Browse repository at this point
Copy the full SHA 749e225View commit details -
Update
cargo dev update_lints
command to fix new warning emitted by…… `duplicated_attributes`
Configuration menu - View commit details
-
Copy full SHA for d57d001 - Browse repository at this point
Copy the full SHA d57d001View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae52a9d - Browse repository at this point
Copy the full SHA ae52a9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for fa4e3aa - Browse repository at this point
Copy the full SHA fa4e3aaView commit details -
Auto merge of rust-lang#12443 - cookie-s:noeffectreoplace-fix-dup-dia…
…gs, r=Alexendoo [`no_effect_replace`]: Fix duplicate diagnostics Relates to rust-lang#12379 Fixes `no_effect_replace` duplicate diagnostics --- changelog: [`no_effect_replace`]: Fix duplicate diagnostics
Configuration menu - View commit details
-
Copy full SHA for 099e2c0 - Browse repository at this point
Copy the full SHA 099e2c0View commit details -
Auto merge of rust-lang#12442 - cookie-s:fix-mutmut-duplicate-diags, …
…r=y21 [`mut_mut`]: Fix duplicate diags Relates to rust-lang#12379 The `mut_mut` lint produced two diagnostics for each `mut mut` pattern in `ty` inside `block`s because `MutVisitor::visit_ty` was called from `MutMut::check_ty` and `MutMut::check_block` independently. This PR fixes the issue. --- changelog: [`mut_mut`]: Fix duplicate diagnostics
Configuration menu - View commit details
-
Copy full SHA for b2f9c4c - Browse repository at this point
Copy the full SHA b2f9c4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ced8bc5 - Browse repository at this point
Copy the full SHA ced8bc5View commit details -
Auto merge of rust-lang#12446 - y21:check_fn_span_lint, r=xFrednet
use `span_lint_hir` instead of `span_lint` in more lints Decided to grep for `check_(fn|block)` and look where `span_lint` is used, since some lints lint will then emit a lint on a statement or expression in that function, which would use the wrong lint level attributes The `LintContext` keeps track of the last entered HIR node that had any attributes, and uses those (and its parents) for figuring out the lint level when a lint is emitted However, this only works when we actually emit a lint at the same node as the `check_*` function we are in. If we're in `check_fn` and we emit a lint on a statement within that function, then there is no way to allow the lint only for that one statement (if `span_lint` is used). It would only count allow attributes on the function changelog: [`needless_return`]: [`useless_let_if_seq`]: [`mut_mut`]: [`read_zero_byte_vec`]: [`unused_io_amount`]: [`unused_peekable`]: now respects `#[allow]` attributes on the affected statement instead of only on the enclosing block or function
Configuration menu - View commit details
-
Copy full SHA for c173ea6 - Browse repository at this point
Copy the full SHA c173ea6View commit details -
Configuration menu - View commit details
-
Copy full SHA for b44ab66 - Browse repository at this point
Copy the full SHA b44ab66View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb5ce85 - Browse repository at this point
Copy the full SHA eb5ce85View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e59259 - Browse repository at this point
Copy the full SHA 0e59259View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c82fd0 - Browse repository at this point
Copy the full SHA 0c82fd0View commit details -
Auto merge of rust-lang#12449 - Jacherr:issue-6439, r=llogiq
Add new lint `zero_repeat_side_effects` Fixes rust-lang/rust-clippy#6439 Adds a new `suspicious` lint zero_repeat_side_effects. This lint warns the user when initializing an array or `Vec` using the `Repeat` syntax, i.e., `[x; y]`. If `x` is an `Expr::Call/MethodCall` or contains an `Expr::Call/MethodCall` and `y` is zero, then there is a chance that the internal call can produce side effects, such as printing to console, which is not very obvious. This lint warns against this and instead suggests to separate out the function call and the array/Vec initialization. changelog: Add new lint `zero_repeat_side_effects`
Configuration menu - View commit details
-
Copy full SHA for d8a9068 - Browse repository at this point
Copy the full SHA d8a9068View commit details -
Auto merge of rust-lang#12447 - MarcusGrass:mg/fix-12438-regression, …
…r=y21 Fix rust-lang#12438 std_instead_of_core regression Fixes rust-lang#12438. Boy-scouting removed two paths that checks for duplication since I thought they were unused. However, that's just because I didn't spot it in the diff. I installed [difftastic](https://github.com/Wilfred/difftastic) and ran it on the old one: ![image](https://github.com/rust-lang/rust-clippy/assets/34198073/5c51276c-055a-49a3-9425-6f7da0590fb0) And the new one (fixed): ![image](https://github.com/rust-lang/rust-clippy/assets/34198073/6e10f29c-6d6b-4f64-893f-de526424f1cd) New one (stderr): ![image](https://github.com/rust-lang/rust-clippy/assets/34198073/c4c07776-ee0f-47ba-996f-6b632de47c81) Good teachings for the future when inspecting diffs with a lot of line changes, should've thought of that before, sorry for the trouble! changelog: [`std_instead_of_core`] Fix false positive for crates that are in `std` but not `core`
Configuration menu - View commit details
-
Copy full SHA for 7ee75f8 - Browse repository at this point
Copy the full SHA 7ee75f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b1f95c - Browse repository at this point
Copy the full SHA 5b1f95cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a92037f - Browse repository at this point
Copy the full SHA a92037fView commit details
Commits on Mar 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1abf441 - Browse repository at this point
Copy the full SHA 1abf441View commit details -
Configuration menu - View commit details
-
Copy full SHA for fadb254 - Browse repository at this point
Copy the full SHA fadb254View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0f358f - Browse repository at this point
Copy the full SHA b0f358fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 98ac5f1 - Browse repository at this point
Copy the full SHA 98ac5f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed6e629 - Browse repository at this point
Copy the full SHA ed6e629View commit details -
Auto merge of rust-lang#121662 - saethlin:precondition-unification, r…
…=RalfJung Distinguish between library and lang UB in assert_unsafe_precondition As described in rust-lang#121583 (comment), `assert_unsafe_precondition` now explicitly distinguishes between language UB (conditions we explicitly optimize on) and library UB (things we document you shouldn't do, and maybe some library internals assume you don't do). `debug_assert_nounwind` was originally added to avoid the "only at runtime" aspect of `assert_unsafe_precondition`. Since then the difference between the macros has gotten muddied. This totally revamps the situation. Now _all_ preconditions shall be checked with `assert_unsafe_precondition`. If you have a precondition that's only checkable at runtime, do a `const_eval_select` hack, as done in this PR. r? RalfJung
Configuration menu - View commit details
-
Copy full SHA for 45f87a0 - Browse repository at this point
Copy the full SHA 45f87a0View commit details -
The Miri Cronjob Bot committed
Mar 10, 2024 Configuration menu - View commit details
-
Copy full SHA for 6d80398 - Browse repository at this point
Copy the full SHA 6d80398View commit details -
Auto merge of rust-lang#122246 - RalfJung:miri, r=RalfJung
Miri subtree update r? `@ghost` `@WaffleLapkin` when this lands, setting `MIRI_TEMP` should not be needed any more on the dev desktops.
Configuration menu - View commit details
-
Copy full SHA for 1847904 - Browse repository at this point
Copy the full SHA 1847904View commit details -
Auto merge of rust-lang#12440 - GuillaumeGomez:add-match_option_and_d…
…efault, r=llogiq Add new `manual_unwrap_or_default` lint This adds a new lint checking if a `match` or a `if let` can be replaced with `unwrap_or_default`. ---- changelog: Add new [`manual_unwrap_or_default`] lint
Configuration menu - View commit details
-
Copy full SHA for 81debac - Browse repository at this point
Copy the full SHA 81debacView commit details -
Auto merge of rust-lang#12445 - y21:document-diagnostic-utils, r=xFre…
…dnet add documentation to the `span_lint_hir` functions As far as I could tell, these weren't documented anywhere, and since this is sometimes needed over `span_lint` for `#[allow]` attrs to work, I thought I would add a little bit of documentation. When I started with clippy development, I also had no idea what these functions were for. changelog: none
Configuration menu - View commit details
-
Copy full SHA for 86717f2 - Browse repository at this point
Copy the full SHA 86717f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c863bc - Browse repository at this point
Copy the full SHA 6c863bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e55bbf - Browse repository at this point
Copy the full SHA 8e55bbfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c51fd9 - Browse repository at this point
Copy the full SHA 9c51fd9View commit details
Commits on Mar 11, 2024
-
Auto merge of rust-lang#12458 - hamirmahal:refactor/readability-impro…
…vement, r=dswij [`seek_from_current`]: readability improvements fixes rust-lang#12457. --- *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: [`seek_from_current`]: readability improvements
Configuration menu - View commit details
-
Copy full SHA for 02156dc - Browse repository at this point
Copy the full SHA 02156dcView commit details -
Auto merge of rust-lang#12448 - WeiTheShinobi:fix_single_match, r=dswij
[`single_match`]: Fix duplicate diagnostics Relates to rust-lang#12379 edit two test file `tests/ui/single_match_else.rs` `tests/ui/single_match.rs` those two test file point to the same lint --- changelog: [`single_match`] Fix duplicate diagnostics
Configuration menu - View commit details
-
Copy full SHA for 6ff4e71 - Browse repository at this point
Copy the full SHA 6ff4e71View commit details -
Auto merge of rust-lang#12430 - sanxiyn:direct-minimal-versions, r=Al…
…exendoo Fix dependency specifications As Clippy lacks `Cargo.lock`, it makes sense to test its dependency specifications with [direct-minimal-versions](https://doc.rust-lang.org/cargo/reference/unstable.html#direct-minimal-versions). This can be done with the following addition to `.cargo/config.toml`. ```toml [unstable] direct-minimal-versions = true ``` * `tempfile` 3.3 is required by `clippy_lints`. * `regex` 1.5.5 is required by `ui_test` 0.22.2. * `quote` 1.0.25 is required by `syn` 2.0.0. * `serde` 1.0.145 is required by `toml` 0.7.3. changelog: none
Configuration menu - View commit details
-
Copy full SHA for 870e016 - Browse repository at this point
Copy the full SHA 870e016View commit details -
Fix typo in section '6.10. Macro Expansions' of the Clippy Book
The struct returned by the `Span::ctxt` method was listed as `SpanContext`. The correct struct is currently named `SyntaxContext`.
Configuration menu - View commit details
-
Copy full SHA for d66a0ec - Browse repository at this point
Copy the full SHA d66a0ecView commit details -
Auto merge of rust-lang#12378 - GuillaumeGomez:duplicated_attr, r=bly…
…xyas Add new `duplicated_attributes` lint It's a lint idea that `@llogiq` gave me while reviewing another PR. There are some limitations, in particular for the "output". Initially I wanted to make it possible for directly lint against the whole attribute if its parts were all duplicated, but then I realized that the output would be chaotic if the duplicates were coming from different attributes, so I preferred to go to the simplest way and simply emit a warning for each entry. Not the best, but makes the implementation much easier. Another limitation is that `cfg_attr` would be a bit more tricky to implement because we need to check if two `cfg` sets are exactly the same. I added a FIXME and will likely come back to it later. And finally, I updated the `cargo dev update_lints` command because the generated `tests/ui/rename.rs` file was emitting the `duplicated_attributes` lint, so I allowed this lint inside it to prevent it from working. changelog: Add new `duplicated_attributes` lint
Configuration menu - View commit details
-
Copy full SHA for f685a4b - Browse repository at this point
Copy the full SHA f685a4bView commit details -
Auto merge of rust-lang#12452 - CBSpeir:dedup-manual-retain, r=blyxyas
[`manual_retain`]: Fix duplicate diagnostics Relates to: rust-lang#12379 The first lint guard executed in `LateLintPass::check_expr` was testing if the parent was of type `ExprKind::Assign`. This meant the lint emitted on both sides of the assignment operator when `check_expr` is called on either `Expr`. The guard in the fix only lints once when the `Expr` is of kind `Assign`. changelog: Fix duplicate lint diagnostic emission from [`manual_retain`]
Configuration menu - View commit details
-
Copy full SHA for e22ca03 - Browse repository at this point
Copy the full SHA e22ca03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 100ab49 - Browse repository at this point
Copy the full SHA 100ab49View commit details -
Configuration menu - View commit details
-
Copy full SHA for edcf10e - Browse repository at this point
Copy the full SHA edcf10eView commit details
Commits on Mar 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 10677d6 - Browse repository at this point
Copy the full SHA 10677d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3cd6fd1 - Browse repository at this point
Copy the full SHA 3cd6fd1View commit details -
The Miri Cronjob Bot committed
Mar 12, 2024 Configuration menu - View commit details
-
Copy full SHA for 25fb1f0 - Browse repository at this point
Copy the full SHA 25fb1f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b205192 - Browse repository at this point
Copy the full SHA b205192View commit details -
Configuration menu - View commit details
-
Copy full SHA for 013bf92 - Browse repository at this point
Copy the full SHA 013bf92View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97f2ade - Browse repository at this point
Copy the full SHA 97f2adeView commit details -
Configuration menu - View commit details
-
Copy full SHA for f472b50 - Browse repository at this point
Copy the full SHA f472b50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27c49e1 - Browse repository at this point
Copy the full SHA 27c49e1View commit details -
Auto merge of rust-lang#12462 - CBSpeir:clippy-book-typo, r=flip1995
Fix typo in section '6.10. Macro Expansions' of the Clippy Book Under the "Span.ctxt method" heading in *Section 6.10. Macro Expansions* of the *Clippy Book*, the type returned by the `Span::ctxt` method is listed as `SpanContext`. The correct type name should be `SyntaxContext`. --- changelog: Fixed typo in "Section 6.10. Macro Expansions" of the Clippy Book. `SpanContext` changed to `SyntaxContext`.
Configuration menu - View commit details
-
Copy full SHA for 60f7f06 - Browse repository at this point
Copy the full SHA 60f7f06View commit details -
Auto merge of rust-lang#12417 - Alexendoo:iter-nth, r=flip1995
Move `iter_nth` to `style`, add machine applicable suggestion There's no `O(n)` involved with `.iter().nth()` on the linted types since the iterator implementations provide `nth` and/or `advance_by` that operate in `O(1)` For slice iterators the codegen is equivalent, `VecDeque`'s iterator seems to codegen differently but that doesn't seem significant enough to keep it as a perf lint changelog: [`iter_nth`] Move to `style` r? `@flip1995`
Configuration menu - View commit details
-
Copy full SHA for a8a7371 - Browse repository at this point
Copy the full SHA a8a7371View commit details -
Auto merge of rust-lang#12469 - pavedroad:master, r=y21
chore: fix some typos Thank you for making Clippy better! We're collecting our changelog from pull request descriptions. If your PR only includes internal changes, you can just write `changelog: none`. Otherwise, please write a short comment explaining your change. It's also helpful for us that the lint name is put within backticks (`` ` ` ``), and then encapsulated by square brackets (`[]`), for example: ``` changelog: [`lint_name`]: your change ``` If your PR fixes an issue, you can add `fixes #issue_number` into this PR description. This way the issue will be automatically closed when your PR is merged. If you added a new lint, here's a checklist for things that will be checked during review or continuous integration. - \[x] Followed [lint naming conventions][lint_naming] - \[ ] Added passing UI tests (including committed `.stderr` file) - \[ ] `cargo test` passes locally - \[ ] Executed `cargo dev update_lints` - \[ ] Added lint documentation - \[x] Run `cargo dev fmt` [lint_naming]: https://rust-lang.github.io/rfcs/0344-conventions-galore.html#lints Note that you can skip the above if you are just opening a WIP PR in order to get feedback. Delete this line and everything above before opening your PR. --- *Please write a short comment explaining your change (or "none" for internal only changes)* changelog:
Configuration menu - View commit details
-
Copy full SHA for 3a14911 - Browse repository at this point
Copy the full SHA 3a14911View commit details -
Configuration menu - View commit details
-
Copy full SHA for 244d7da - Browse repository at this point
Copy the full SHA 244d7daView commit details -
Auto merge of rust-lang#11287 - Centri3:rust-lang#11285, r=llogiq
[`cast_lossless`]: Suggest type alias instead of the aliased type Fixes rust-lang#11285 Still an issue with the "from" side, i.e., `I8::from(1) as I64` shows as `i8 to I64`, but this should be ok. Not possible to reliably fix currently anyway. changelog: [`cast_lossless`]: Suggest type alias instead of the aliased type
Configuration menu - View commit details
-
Copy full SHA for 92ca7c9 - Browse repository at this point
Copy the full SHA 92ca7c9View commit details -
Auto merge of rust-lang#12466 - J-ZhengLi:issue12377, r=blyxyas
fix [`empty_docs`] trigger in proc-macro fixes: rust-lang#12377 --- changelog: fix [`empty_docs`] trigger in proc-macros
Configuration menu - View commit details
-
Copy full SHA for 99e8000 - Browse repository at this point
Copy the full SHA 99e8000View commit details
Commits on Mar 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 65defdb - Browse repository at this point
Copy the full SHA 65defdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 11c2bad - Browse repository at this point
Copy the full SHA 11c2badView commit details -
Auto merge of rust-lang#12459 - y21:unconditional_recursion_from_into…
…, r=Jarcho lint when calling the blanket `Into` impl from a `From` impl Closes rust-lang#11150 ``` warning: function cannot return without recursing --> x.rs:9:9 | 9 | / fn from(value: f32) -> Self { 10 | | value.into() 11 | | } | |_________^ | note: recursive call site --> x.rs:10:13 | 10 | value.into() | ^^^^^^^^^^^^ ``` I'm also thinking that we can probably generalize this lint to rust-lang#11032 at some point (instead of hardcoding a bunch of impls), like how rustc's `unconditional_recursion` works, at least up to one indirect call, but this still seems useful for now :) I've also noticed that we use `fn_def_id` in a bunch of lints and then try to get the node args of the call in a separate step, so I made a helper function that does both in one. I intend to refactor a bunch of uses of `fn_def_id` to use this later I can add more test cases, but this is already using much of the same logic that exists for the other impls that this lint looks for (e.g. making sure that there are no conditional returns). changelog: [`unconditional_recursion`]: emit a warning inside of `From::from` when unconditionally calling the blanket `.into()` impl
Configuration menu - View commit details
-
Copy full SHA for 73be486 - Browse repository at this point
Copy the full SHA 73be486View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11759d1 - Browse repository at this point
Copy the full SHA 11759d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd36b25 - Browse repository at this point
Copy the full SHA cd36b25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03d7ae8 - Browse repository at this point
Copy the full SHA 03d7ae8View commit details -
Auto merge of rust-lang#12470 - sanxiyn:filetime, r=Alexendoo
filetime::FileTime::now() is new in 0.2.9 Clippy makes a use of `filetime::FileTime::now()`, which is new in `filetime` 0.2.9. changelog: none
Configuration menu - View commit details
-
Copy full SHA for 660b058 - Browse repository at this point
Copy the full SHA 660b058View commit details -
[
unused_enumerate_index
]: trigger on method callsThe lint used to check for patterns looking like: ```rs for (_, x) in some_iter.enumerate() { // Index is ignored } ``` This commit further checks for chained method calls constructs where we can detect that the index is unused. Currently, this checks only for the following patterns: ```rs some_iter.enumerate().map_function(|(_, x)| ..) let x = some_iter.enumerate(); x.map_function(|(_, x)| ..) ``` where `map_function` is one of `all`, `any`, `filter_map`, `find_map`, `flat_map`, `for_each` or `map`. Fixes rust-lang#12411.
Configuration menu - View commit details
-
Copy full SHA for 7cdeac5 - Browse repository at this point
Copy the full SHA 7cdeac5View commit details -
Configuration menu - View commit details
-
Copy full SHA for adcbb4a - Browse repository at this point
Copy the full SHA adcbb4aView commit details
Commits on Mar 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1fe8844 - Browse repository at this point
Copy the full SHA 1fe8844View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0535f55 - Browse repository at this point
Copy the full SHA 0535f55View commit details -
checks
dbg
inside other macros as well (but no ext macro);some refractoring;
Configuration menu - View commit details
-
Copy full SHA for fe4e0ac - Browse repository at this point
Copy the full SHA fe4e0acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20e4c74 - Browse repository at this point
Copy the full SHA 20e4c74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 560a5a8 - Browse repository at this point
Copy the full SHA 560a5a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5d3b62 - Browse repository at this point
Copy the full SHA c5d3b62View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f8d8f1 - Browse repository at this point
Copy the full SHA 5f8d8f1View commit details -
Auto merge of rust-lang#12282 - maekawatoshiki:fix, r=xFrednet
Handle false positive with `map_clone` lint ### Summary - Fixes rust-lang/rust-clippy#12271 - (This is my first contribution to clippy and any suggestion would be appreciated) changelog: [`map_clone`]: Handle false positive with `map_clone` lint
Configuration menu - View commit details
-
Copy full SHA for a75e271 - Browse repository at this point
Copy the full SHA a75e271View commit details -
Auto merge of rust-lang#12477 - Kobzol:ci-concurrency-group, r=flip1995
CI: replace `cancel-outdated-builds` with `concurrency` group This is the last remaining [usage](https://github.com/search?q=org%3Arust-lang%20cancel-outdated-builds&type=code) of the [cancel-outdated-builds](https://github.com/rust-lang/simpleinfra/tree/master/github-actions/cancel-outdated-builds) CI action. Which means that if we remove its usage, we can remove the code of the action :) This action was replaced in `rust-lang/rust` with the native Github Actions `concurrency` group [last year](rust-lang#112955). Note that unlike `rust-lang/rust`, which explicitly allows parallel try builds, `clippy` did not allow them, as all steps of the `clippy_bors.yaml` workflow used the `cancel-outdated-builds` action, regardless of the branch. So the new `concurrency` group mirrors that, which makes it a bit simpler than on `rust-lang/rust`. changelog: none r? `@Mark-Simulacrum`
Configuration menu - View commit details
-
Copy full SHA for e77d7a3 - Browse repository at this point
Copy the full SHA e77d7a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for da2795f - Browse repository at this point
Copy the full SHA da2795fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e2897f - Browse repository at this point
Copy the full SHA 0e2897fView commit details -
The Miri Cronjob Bot committed
Mar 14, 2024 Configuration menu - View commit details
-
Copy full SHA for 22577e5 - Browse repository at this point
Copy the full SHA 22577e5View commit details -
Auto merge of rust-lang#12386 - Ethiraric:fix-12381, r=blyxyas
[`use_self`]: Make it aware of lifetimes Have the lint trigger even if `Self` has generic lifetime parameters. ```rs impl<'a> Foo<'a> { type Item = Foo<'a>; // Can be replaced with Self fn new() -> Self { Foo { // No lifetime, but they are inferred to be that of Self // Can be replaced as well ... } } // Don't replace `Foo<'b>`, the lifetime is different! fn eq<'b>(self, other: Foo<'b>) -> bool { .. } ``` Fixes rust-lang#12381 *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: [`use_self`]: Have the lint trigger even if `Self` has generic lifetime parameters
Configuration menu - View commit details
-
Copy full SHA for 8a78128 - Browse repository at this point
Copy the full SHA 8a78128View commit details -
hir: Remove
opt_local_def_id_to_hir_id
andopt_hir_node_by_def_id
Also replace a few `hir_node()` calls with `hir_node_by_def_id()`
Configuration menu - View commit details
-
Copy full SHA for f55a049 - Browse repository at this point
Copy the full SHA f55a049View commit details -
Auto merge of rust-lang#12472 - GuillaumeGomez:fix-10262, r=blyxyas
Don't emit `doc_markdown` lint for missing backticks if it's inside a quote Fixes rust-lang#10262. changelog: Don't emit `doc_markdown` lint for missing backticks if it's inside a quote
Configuration menu - View commit details
-
Copy full SHA for b667d02 - Browse repository at this point
Copy the full SHA b667d02View commit details -
[
unused_enumerate_index
]: Keep explicit element typePrior to this change, it might be that the lint would remove an explicit type that was necessary for the type system to keep track of types. This should be the last change that prevented this lint to be machine applicable.
Configuration menu - View commit details
-
Copy full SHA for dadcd94 - Browse repository at this point
Copy the full SHA dadcd94View commit details -
Auto merge of rust-lang#12432 - Ethiraric:fix-12411, r=y21
[`unused_enumerate_index`]: trigger on method calls The lint used to check for patterns looking like: ```rs for (_, x) in some_iter.enumerate() { // Index is ignored } ``` This commit further checks for chained method calls constructs where we can detect that the index is unused. Currently, this checks only for the following patterns: ```rs some_iter.enumerate().map_function(|(_, x)| ..) let x = some_iter.enumerate(); x.map_function(|(_, x)| ..) ``` where `map_function` is one of `all`, `any`, `filter_map`, `find_map`, `flat_map`, `for_each` or `map`. Fixes rust-lang#12411. *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: [`unused_enumerate_index`]: add detection for method chains such as `iter.enumerate().map(|(_, x)| x)`
Configuration menu - View commit details
-
Copy full SHA for 5a11fef - Browse repository at this point
Copy the full SHA 5a11fefView commit details
Commits on Mar 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d3f8f3e - Browse repository at this point
Copy the full SHA d3f8f3eView commit details -
Rollup merge of rust-lang#122513 - petrochenkov:somehir4, r=fmease
hir: Remove `opt_local_def_id_to_hir_id` and `opt_hir_node_by_def_id` Also replace a few `hir_node()` calls with `hir_node_by_def_id()`. Follow up to rust-lang#120943.
Configuration menu - View commit details
-
Copy full SHA for 1e30c29 - Browse repository at this point
Copy the full SHA 1e30c29View commit details -
Auto merge of rust-lang#12493 - y21:issue12491, r=Alexendoo
fix span calculation for non-ascii in `needless_return` Fixes rust-lang#12491 Probably fixes rust-lang#12328 as well, but that one has no reproducer, so 🤷 The bug was that the lint used `rfind()` for finding the byte index of the start of the previous non-whitespace character: ``` // abc\n return; ^ ``` ... then subtracting one to get the byte index of the actual whitespace (the `\n` here). (Subtracting instead of adding because it treats this as the length from the `return` token to the `\n`) That's correct for ascii, like here, and will get us to the `\n`, however for non ascii, the `c` could be multiple bytes wide, which would put us in the middle of a codepoint if we simply subtract 1 and is what caused the ICE. There's probably a lot of ways we could fix this. This PR changes it to iterate backwards using bytes instead of characters, so that when `rposition()` finally finds a non-whitespace byte, we *know* that we've skipped exactly 1 byte. This was *probably*(?) what the code was intending to do changelog: Fix ICE in [`needless_return`] when previous line end in a non-ascii character
Configuration menu - View commit details
-
Copy full SHA for c9f2482 - Browse repository at this point
Copy the full SHA c9f2482View commit details
Commits on Mar 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9408c59 - Browse repository at this point
Copy the full SHA 9408c59View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e72ca3 - Browse repository at this point
Copy the full SHA 4e72ca3View commit details -
Auto merge of rust-lang#12441 - CBSpeir:dedup-else-if-without-else, r…
…=dswij [`else_if_without_else`]: Fix duplicate diagnostics Relates to: rust-lang#12379 changelog: Fix duplicate lint diagnostic emission from [`else_if_without_else`]
Configuration menu - View commit details
-
Copy full SHA for 59a5ad4 - Browse repository at this point
Copy the full SHA 59a5ad4View commit details
Commits on Mar 17, 2024
-
Auto merge of rust-lang#12482 - J-ZhengLi:issue12131, r=Jarcho
fix [`dbg_macro`] FN when dbg is inside some complex macros fixes: rust-lang#12131 It appears that [`root_macro_call_first_node`] only detects `println!` in the following example: ```rust println!("{:?}", dbg!(s)); ``` --- changelog: fix [`dbg_macro`] FN when `dbg` is inside some complex macros (re-opening b'cuz bors doesn't like my previous one)
Configuration menu - View commit details
-
Copy full SHA for 12ecaa8 - Browse repository at this point
Copy the full SHA 12ecaa8View commit details -
Auto merge of rust-lang#12479 - y21:readonly_write_lock_perf, r=Jarcho
move `readonly_write_lock` to perf [There haven't been any issues](https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+readonly_write_lock) since its creation and it's a pretty useful lint I think, so I'd say it's worth giving it a try? Did a lintcheck run on 300 crates with no results, but I guess `RwLock` is usually not something that's used much in libraries. changelog: move [`readonly_write_lock`] to perf (now warn-by-default)
Configuration menu - View commit details
-
Copy full SHA for 67fa36a - Browse repository at this point
Copy the full SHA 67fa36aView commit details -
Auto merge of rust-lang#12450 - cookie-s:fix-optopt-duplicate-diags, …
…r=llogiq [`option_option`]: Fix duplicate diagnostics Relates to rust-lang#12379 This `option_option` lint change skips checks against `ty`s inside `field_def`s defined by external macro to prevent duplicate diagnostics to the same span `ty` by multiple `Struct` definitions. --- changelog: [`option_option`]: Fix duplicate diagnostics
Configuration menu - View commit details
-
Copy full SHA for d202eb6 - Browse repository at this point
Copy the full SHA d202eb6View commit details -
Auto merge of rust-lang#12451 - Jacherr:issue-12391, r=llogiq
new restriction lint: `integer_division_remainder_used` Fixes rust-lang/rust-clippy#12391 Introduces a restriction lint which disallows the use of `/` and `%` operators on any `Int` or `Uint` types (i.e., any that use the default `Div` or `Rem` trait implementations). Custom implementations of these traits are ignored. ---- changelog: Add new restriction lint [`integer_division_remainder_used`]
Configuration menu - View commit details
-
Copy full SHA for e9a50f2 - Browse repository at this point
Copy the full SHA e9a50f2View commit details
Commits on Mar 18, 2024
-
Auto merge of rust-lang#12498 - y21:issue12489, r=blyxyas
[`map_entry`]: call the visitor on the local's `else` block Fixes rust-lang#12489 The lint already has all the logic it needs for figuring out if it can or can't suggest a closure if it sees control flow expressions like `break` or `continue`, but it was ignoring the local's else block, which meant that it didn't see the `return None;` in a `let..else`. changelog: [`map_entry`]: suggest `if let` instead of a closure when `return` expressions exist in the else block of a `let..else`
Configuration menu - View commit details
-
Copy full SHA for b5dcaae - Browse repository at this point
Copy the full SHA b5dcaaeView commit details -
Avoid various uses of
Option<Span>
in favor of usingDUMMY_SP
in ……the few cases that used `None`
Configuration menu - View commit details
-
Copy full SHA for 003c4bc - Browse repository at this point
Copy the full SHA 003c4bcView commit details -
When displaying multispans, ignore empty lines adjacent to
...
``` error[E0308]: `match` arms have incompatible types --> tests/ui/codemap_tests/huge_multispan_highlight.rs:98:18 | 6 | let _ = match true { | ---------- `match` arms have incompatible types 7 | true => ( | _________________- 8 | | // last line shown in multispan header ... | 96 | | 97 | | ), | |_________- this is found to be of type `()` 98 | false => " | __________________^ ... | 119 | | 120 | | ", | |_________^ expected `()`, found `&str` error[E0308]: `match` arms have incompatible types --> tests/ui/codemap_tests/huge_multispan_highlight.rs:215:18 | 122 | let _ = match true { | ---------- `match` arms have incompatible types 123 | true => ( | _________________- 124 | | 125 | | 1 // last line shown in multispan header ... | 213 | | 214 | | ), | |_________- this is found to be of type `{integer}` 215 | false => " | __________________^ 216 | | 217 | | 218 | | 1 last line shown in multispan ... | 237 | | 238 | | ", | |_________^ expected integer, found `&str` ```
Configuration menu - View commit details
-
Copy full SHA for 8339474 - Browse repository at this point
Copy the full SHA 8339474View commit details -
Deduplicate
associated_body
andbody_id
They match on almost the same patterns, which is fishy. Also turn `associated_body` into a method and do some cleanups nearby the call sites
Configuration menu - View commit details
-
Copy full SHA for 0dc8769 - Browse repository at this point
Copy the full SHA 0dc8769View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83af0e5 - Browse repository at this point
Copy the full SHA 83af0e5View commit details
Commits on Mar 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 87d45e5 - Browse repository at this point
Copy the full SHA 87d45e5View commit details -
Auto merge of rust-lang#122021 - oli-obk:delangitemification, r=compi…
…ler-errors Use hir::Node helper methods instead of repeating the same impl multiple times I wanted to do something entirely different and stumbled upon a bunch of cleanups
Configuration menu - View commit details
-
Copy full SHA for 56288a7 - Browse repository at this point
Copy the full SHA 56288a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7c3e04 - Browse repository at this point
Copy the full SHA e7c3e04View commit details -
Auto merge of rust-lang#12510 - goodmost:master, r=Alexendoo
chore: fix typo changelog: none
Configuration menu - View commit details
-
Copy full SHA for 3f338b3 - Browse repository at this point
Copy the full SHA 3f338b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 21a97f0 - Browse repository at this point
Copy the full SHA 21a97f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c866d3 - Browse repository at this point
Copy the full SHA 8c866d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c0b2dd - Browse repository at this point
Copy the full SHA 7c0b2ddView commit details -
Auto merge of rust-lang#122029 - estebank:drive-by-ui-test, r=oli-obk
When displaying multispans, ignore empty lines adjacent to `...` ``` error[E0308]: `match` arms have incompatible types --> tests/ui/codemap_tests/huge_multispan_highlight.rs:98:18 | 6 | let _ = match true { | ---------- `match` arms have incompatible types 7 | true => ( | _________________- 8 | | // last line shown in multispan header ... | 96 | | 97 | | ), | |_________- this is found to be of type `()` 98 | false => " | __________________^ ... | 119 | | 120 | | ", | |_________^ expected `()`, found `&str` error[E0308]: `match` arms have incompatible types --> tests/ui/codemap_tests/huge_multispan_highlight.rs:215:18 | 122 | let _ = match true { | ---------- `match` arms have incompatible types 123 | true => ( | _________________- 124 | | 125 | | 1 // last line shown in multispan header ... | 213 | | 214 | | ), | |_________- this is found to be of type `{integer}` 215 | false => " | __________________^ 216 | | 217 | | 218 | | 1 last line shown in multispan ... | 237 | | 238 | | ", | |_________^ expected integer, found `&str` ```
Configuration menu - View commit details
-
Copy full SHA for 76096ef - Browse repository at this point
Copy the full SHA 76096efView commit details -
Auto merge of rust-lang#12511 - humannum14916:assigning_clones_msrv, …
…r=Alexendoo `assigning_clones` should respect MSRV Fixes: rust-lang#12502 This PR fixes the `assigning_clones` lint suggesting to use `clone_from` or `clone_into` on incompatible MSRVs. `assigning_clones` will suggest using either `clone_from` or `clone_into`, both of which were stabilized in 1.63. If the current MSRV is below 1.63, the lint should not trigger. changelog: [`assigning_clones`]: don't lint when the MSRV is below 1.63.
Configuration menu - View commit details
-
Copy full SHA for 89aba8d - Browse repository at this point
Copy the full SHA 89aba8dView commit details
Commits on Mar 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 477108d - Browse repository at this point
Copy the full SHA 477108dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f7b3c5 - Browse repository at this point
Copy the full SHA 5f7b3c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for db7c9fe - Browse repository at this point
Copy the full SHA db7c9feView commit details -
std::net: adding acceptfilter feature for netbsd/freebsd.
similar to linux's ext deferaccept, to filter incoming connections before accept.
Configuration menu - View commit details
-
Copy full SHA for 19cb05f - Browse repository at this point
Copy the full SHA 19cb05fView commit details -
Auto merge of rust-lang#12516 - humannum14916:assigning_clones_msrv, …
…r=Alexendoo Make `assigning_clones` MSRV check more precise Continuation of rust-lang#12511 `clone_into` is the only suggestion subject to the 1.63 MSRV requirement, and the lint should still emit other suggestions regardless of the MSRV. changelog: [assigning_clones]: only apply MSRV check to `clone_into` suggestions.
Configuration menu - View commit details
-
Copy full SHA for 5b7efe8 - Browse repository at this point
Copy the full SHA 5b7efe8View commit details -
Auto merge of rust-lang#12496 - Jacherr:issue-12492, r=blyxyas
Disable `cast_lossless` when casting to u128 from any (u)int type Fixes rust-lang/rust-clippy#12492 Disables `cast_lossless` when casting to u128 from any int or uint type. The lint states that when casting to any int type, there can potentially be lossy behaviour if the source type ever exceeds the size of the destination type in the future, which is impossible with a destination of u128. It's possible this is a bit of a niche edge case which is better addressed by just disabling the lint in code, but I personally couldn't think of any good reason to still lint in this specific case - maybe except if the source is a bool, for readability reasons :). changelog: FP: `cast_lossless`: disable lint when casting to u128 from any (u)int type
Configuration menu - View commit details
-
Copy full SHA for 34766a6 - Browse repository at this point
Copy the full SHA 34766a6View commit details -
Auto merge of rust-lang#12509 - xFrednet:changelog-1-77, r=dswij
Changelog for Clippy 1.77 🏫 Roses are violets, Red is blue, Let's create a world, Perfect for me and you --- ### The cat of this release is: *Luigi* <img width=500 src="https://github.com/rust-lang/rust-clippy/assets/17087237/ea13d05c-e5ba-4189-9e16-49bf1b43c468" alt="The cats of this Clippy release" /> The cat for the next release can be voted on: [here](https://forms.gle/57gbrNvXtCUmrHYh6) The cat for the next next release can be nominated in the comments and will be voted in the next changelog PR (Submission deadline is 2024-03-30 23:59CET) --- changelog: none
Configuration menu - View commit details
-
Copy full SHA for a16a9ed - Browse repository at this point
Copy the full SHA a16a9edView commit details
Commits on Mar 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f6f89dc - Browse repository at this point
Copy the full SHA f6f89dcView commit details -
document iteration ordering on into_iter method instead of IntoIterat…
…or implementation
Configuration menu - View commit details
-
Copy full SHA for f8a093c - Browse repository at this point
Copy the full SHA f8a093cView commit details -
Configuration menu - View commit details
-
Copy full SHA for beb0c22 - Browse repository at this point
Copy the full SHA beb0c22View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ca7aac - Browse repository at this point
Copy the full SHA 8ca7aacView commit details -
Configuration menu - View commit details
-
Copy full SHA for e505408 - Browse repository at this point
Copy the full SHA e505408View commit details -
Auto merge of rust-lang#12520 - xFrednet:lets-review-again, r=xFrednet
Add xFrednet back to the reviewing rotation 🎉 You know what? Having a work-life balance is boring. I truly enjoyed having a free few weeks, and learned that I need to take a break every once in a while, but not doing reviews feels weird. So, this is me coming back for more :D --- r? `@ghost` changelog: none
Configuration menu - View commit details
-
Copy full SHA for 32799a5 - Browse repository at this point
Copy the full SHA 32799a5View commit details -
make failure logs less verbose
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Configuration menu - View commit details
-
Copy full SHA for 796105e - Browse repository at this point
Copy the full SHA 796105eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ae4c5c8 - Browse repository at this point
Copy the full SHA ae4c5c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 238cd36 - Browse repository at this point
Copy the full SHA 238cd36View commit details -
Auto merge of rust-lang#12523 - Rua:typo-fix, r=dswij
Fix documentation typo "appects" > "affects" changelog: none This fixes a typo in the `iter_filter_is_some` and `iter_filter_is_ok` lint documentation.
Configuration menu - View commit details
-
Copy full SHA for 443f459 - Browse repository at this point
Copy the full SHA 443f459View commit details -
Configuration menu - View commit details
-
Copy full SHA for daa6553 - Browse repository at this point
Copy the full SHA daa6553View commit details -
Configuration menu - View commit details
-
Copy full SHA for 453676f - Browse repository at this point
Copy the full SHA 453676fView commit details -
Use != Positive rather than == Negative
Feels more complete, and for ImplPolarity has the side-effect of making sure we also handle reservation impls correctly
Configuration menu - View commit details
-
Copy full SHA for 76ad048 - Browse repository at this point
Copy the full SHA 76ad048View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08d8cd5 - Browse repository at this point
Copy the full SHA 08d8cd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for dae3c43 - Browse repository at this point
Copy the full SHA dae3c43View commit details -
Avoid noop rewrite of issues.txt
This can trigger incremental rebuilds since incr doesn't realize nothing changed.
Configuration menu - View commit details
-
Copy full SHA for c00920c - Browse repository at this point
Copy the full SHA c00920cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d42d73 - Browse repository at this point
Copy the full SHA 7d42d73View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb86654 - Browse repository at this point
Copy the full SHA bb86654View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1d15b5 - Browse repository at this point
Copy the full SHA e1d15b5View commit details -
Auto merge of rust-lang#12527 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` changelog: none
Configuration menu - View commit details
-
Copy full SHA for 9d6f416 - Browse repository at this point
Copy the full SHA 9d6f416View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a82d16 - Browse repository at this point
Copy the full SHA 5a82d16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e53d53 - Browse repository at this point
Copy the full SHA 8e53d53View commit details -
Rollup merge of rust-lang#121881 - devnexen:bsd_acceptfilter, r=Amanieu
std::net: adding acceptfilter feature for netbsd/freebsd. similar to linux's ext deferaccept, to filter incoming connections before accept.
Configuration menu - View commit details
-
Copy full SHA for 90968ec - Browse repository at this point
Copy the full SHA 90968ecView commit details -
Rollup merge of rust-lang#122817 - ultrabear:ultrabear_btreedoc, r=Ni…
…lstrieb Doc Guarantee: BTree(Set|Map): `IntoIter` Iterate in Sorted by key Order This Doc-only PR adds text to the IntoIterator implementation and IntoIter type for both BTreeMap and BTreeSet that states that the returned items will be in sorted-by-key order, this is a guarantee that is made by the iter() and iter_mut() methods of BTreeMap/Set and BTreeMap respectively, but not on into_iter methods or types. I don't know how the IntoIter iteration would not be sorted by key, and I would like to rely on that behavior for my prefix_array crate. The text appended to IntoIter documentation is based on each types respective iter() method documentation, as is the text used in the IntoIterator documentation; they are slightly inconsistent between Set/Map, but they are consistent within their own types documentation.
Configuration menu - View commit details
-
Copy full SHA for e4ee362 - Browse repository at this point
Copy the full SHA e4ee362View commit details -
Rollup merge of rust-lang#122826 - compiler-errors:associated-type-bo…
…und-tests, r=lcnr Add tests for shortcomings of associated type bounds Adds the test in rust-lang#122791 (comment) Turns out that rust-lang#121123 is what breaks `tests/ui/associated-type-bounds/cant-see-copy-bound-from-child-rigid.rs` (passes on nightly), but given that associated type bounds haven't landed anywhere yet, I'm happy with breaking it. This is unrelated to rust-lang#122791, which just needed that original commit e6b64c6 stacked on top of it so that it wouldn't have tests failing. r? lcnr
Configuration menu - View commit details
-
Copy full SHA for 63040a4 - Browse repository at this point
Copy the full SHA 63040a4View commit details -
Rollup merge of rust-lang#122829 - ShoyuVanilla:gen-block-impl-fused-…
…iter, r=compiler-errors Implement `FusedIterator` for `gen` block cc rust-lang#117078
Configuration menu - View commit details
-
Copy full SHA for f3d3e00 - Browse repository at this point
Copy the full SHA f3d3e00View commit details -
Rollup merge of rust-lang#122831 - onur-ozkan:less-verbose-fail-logs,…
… r=clubby789 make failure logs less verbose Resolves rust-lang#122706 Logs without verbose flag: ![image](https://github.com/rust-lang/rust/assets/39852038/f2fc2d35-0954-44b0-bedc-045afedaabe8) Logs with verbose flag: ![image](https://github.com/rust-lang/rust/assets/39852038/b9308655-ad31-4527-a1be-5a62a78ac469) I decided to exclude command from the log since it's already included in verbose mode. cc ``@Nilstrieb``
Configuration menu - View commit details
-
Copy full SHA for b40dc4a - Browse repository at this point
Copy the full SHA b40dc4aView commit details -
Rollup merge of rust-lang#122837 - matthiaskrgr:fix_122549, r=petroch…
…enkov add test for rust-lang#122549 Fixes rust-lang#122549
Configuration menu - View commit details
-
Copy full SHA for 0e2bb92 - Browse repository at this point
Copy the full SHA 0e2bb92View commit details -
Rollup merge of rust-lang#122838 - workingjubilee:less-catholic-bless…
…ings-to-prevent-incremental-protests, r=matthiaskrgr Avoid noop rewrite of issues.txt Fixes rust-lang#122834 r? ``@matthiaskrgr``
Configuration menu - View commit details
-
Copy full SHA for 70c095e - Browse repository at this point
Copy the full SHA 70c095eView commit details -
Rollup merge of rust-lang#122839 - compiler-errors:predicate-polarity…
…, r=lcnr Split out `PredicatePolarity` from `ImplPolarity` Because having to deal with a third `Reservation` level in all the trait solver code is kind of weird. r? `@lcnr` or `@oli-obk`
Configuration menu - View commit details
-
Copy full SHA for e6da4a8 - Browse repository at this point
Copy the full SHA e6da4a8View commit details -
Rollup merge of rust-lang#122845 - flip1995:clippy-subtree-update, r=…
…matthiaskrgr Clippy subtree update r? `@Manishearth`
Configuration menu - View commit details
-
Copy full SHA for 0a7659e - Browse repository at this point
Copy the full SHA 0a7659eView commit details