| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-09-13 | Update tests for hidden references to mutable static | Obei Sideg | -0/+2 | |
| 2024-05-02 | Stabilize exclusive_range | Ross Smyth | -1/+0 | |
| 2024-04-21 | Move some tests | Caio | -0/+52 | |
| 2024-03-20 | Replace `mir_built` query with a hook and use mir_const everywhere instead | Oli Scherer | -32/+32 | |
| 2024-02-16 | [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives | 许杰友 Jieyou Xu (Joe) | -109/+109 | |
| 2024-02-07 | Rollup merge of #120479 - estebank:issue-61788, r=wesleywiser | Guillaume Boisseau | -0/+114 | |
| Suggest turning `if let` into irrefutable `let` if appropriate When encountering an `if let` tail expression without an `else` arm for an enum with a single variant, suggest writing an irrefutable `let` binding instead. ``` error[E0317]: `if` may be missing an `else` clause --> $DIR/irrefutable-if-let-without-else.rs:8:5 | LL | fn foo(x: Enum) -> i32 { | --- expected `i32` because of this return type LL | / if let Enum::Variant(value) = x { LL | | value LL | | } | |_____^ expected `i32`, found `()` | = note: `if` expressions without `else` evaluate to `()` = help: consider adding an `else` block that evaluates to the expected type help: consider using an irrefutable `let` binding instead | LL ~ let Enum::Variant(value) = x; LL ~ value | ``` Fix #61788. | ||||
| 2024-02-06 | Suggest turnging `if let` into irrefutable `let` if appropriate | Esteban Küber | -0/+114 | |
| When encountering an `if let` tail expression without an `else` arm for an enum with a single variant, suggest writing an irrefutable `let` binding instead. ``` error[E0317]: `if` may be missing an `else` clause --> $DIR/irrefutable-if-let-without-else.rs:8:5 | LL | fn foo(x: Enum) -> i32 { | --- expected `i32` because of this return type LL | / if let Enum::Variant(value) = x { LL | | value LL | | } | |_____^ expected `i32`, found `()` | = note: `if` expressions without `else` evaluate to `()` = help: consider adding an `else` block that evaluates to the expected type help: consider using an irrefutable `let` binding instead | LL ~ let Enum::Variant(value) = x; LL ~ value | ``` Fix #61788. | ||||
| 2024-01-26 | remove illegal_floating_point_literal_pattern lint | Ralf Jung | -1/+0 | |
| 2024-01-05 | Stabilize THIR unsafeck | Matthew Jasper | -72/+72 | |
| 2024-01-02 | Adjust compiler tests for unused_tuple_struct_fields -> dead_code | Jake Goulding | -3/+3 | |
| 2023-11-24 | Show number in error message even for one error | Nilstrieb | -1/+1 | |
| Co-authored-by: Adrian <adrian.iosdev@gmail.com> | ||||
| 2023-10-28 | Remove asmjs from tests | Jubilee Young | -1/+0 | |
| 2023-10-24 | Add diverging match guard test. | Camille GILLOT | -2/+2 | |
| 2023-10-24 | Use `PlaceMention` for match scrutinees. | Camille GILLOT | -88/+2 | |
| 2023-09-19 | Add more if let guard tests | Matthew Jasper | -0/+4 | |
| 2023-04-28 | improve error notes for packed struct reference diagnostic | bindsdev | -6/+12 | |
| 2023-04-03 | remove invalid ignore-pretty | Pietro Albini | -1/+0 | |
| 2023-03-09 | Ignore AscribeUserType in unsafeck to avoid duplicate diagnostics. | Camille GILLOT | -20/+11 | |
| 2023-03-09 | Introduce a no-op PlaceMention statement for `let _ =`. | Camille GILLOT | -12/+29 | |
| 2023-03-09 | Add ui test. | Camille GILLOT | -7/+71 | |
| 2023-01-31 | make unaligned_reference a hard error | Ralf Jung | -80/+16 | |
| 2023-01-11 | Move /src/test to /tests | Albert Larsan | -0/+2717 | |
