| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-12-04 | review comments: reword messages and simplify logic | Esteban Küber | -4/+4 | |
| 2024-12-04 | Specify type kind of constant that can't be used in patterns | Esteban Küber | -2/+2 | |
| ``` error: trait object `dyn Send` cannot be used in patterns --> $DIR/issue-70972-dyn-trait.rs:6:9 | LL | const F: &'static dyn Send = &7u32; | -------------------------- constant defined here ... LL | F => panic!(), | ^ trait object can't be used in patterns ``` | ||||
| 2024-12-04 | Point at generic param through which a const is used in a pattern | Esteban Küber | -4/+4 | |
| ``` error[E0158]: constant pattern depends on a generic parameter, which is not allowed --> $DIR/associated-const-type-parameter-pattern.rs:20:9 | LL | pub trait Foo { | ------------- LL | const X: EFoo; | ------------- constant defined here ... LL | pub fn test<A: Foo, B: Foo>(arg: EFoo) { | - constant depends on this generic param LL | match arg { LL | A::X => println!("A::X"), | ^^^^ `const` depends on a generic parameter ``` | ||||
| 2024-11-16 | tests: ui/inline-consts: add issue number to a test, rename other tests from ↵ | Matthias Krüger | -11/+11 | |
| a_b_c to a-b-c | ||||
| 2024-11-13 | Add test cases | Kirill Podoprigora | -0/+124 | |
| 2024-09-15 | stabilize const_mut_refs | Ralf Jung | -9/+3 | |
| 2024-09-03 | Rollup merge of #128701 - veera-sivarajan:fix-128604, r=estebank | Matthias Krüger | -0/+64 | |
| Don't Suggest Labeling `const` and `unsafe` Blocks Fixes #128604 Previously, both anonymous constant blocks (E.g. The labeled block inside `['_'; 'block: { break 'block 1 + 2; }]`) and inline const blocks (E.g. `const { ... }`) were considered to be the same kind of blocks. This caused the compiler to incorrectly suggest labeling both the blocks when only anonymous constant blocks can be labeled. This PR adds an other enum variant to `Context` so that both the blocks can be handled appropriately. Also, adds some doc comments and removes unnecessary `&mut` in a couple of places. | ||||
| 2024-08-08 | Add test | tiif | -0/+35 | |
| 2024-08-06 | Don't Suggest Labeling `const` and `unsafe` Blocks | Veera | -13/+20 | |
| 2024-08-06 | Add Tests | Veera | -0/+57 | |
| 2024-07-18 | avoid creating an Instance only to immediately disassemble it again | Ralf Jung | -2/+3 | |
| 2024-06-07 | Add regression test | Oli Scherer | -0/+18 | |
| 2024-05-30 | Auto merge of #125711 - oli-obk:const_block_ice2, r=Nadrieril | bors | -0/+22 | |
| Make `body_owned_by` return the `Body` instead of just the `BodyId` fixes #125677 Almost all `body_owned_by` callers immediately called `body`, too, so just return `Body` directly. This makes the inline-const query feeding more robust, as all calls to `body_owned_by` will now yield a body for inline consts, too. I have not yet figured out a good way to make `tcx.hir().body()` return an inline-const body, but that can be done as a follow-up | ||||
| 2024-05-29 | Make `body_owned_by` return the body directly. | Oli Scherer | -0/+22 | |
| Almost all callers want this anyway, and now we can use it to also return fed bodies | ||||
| 2024-05-29 | Reintroduce name resolution check for trying to access locals from an inline ↵ | Oli Scherer | -0/+17 | |
| const | ||||
| 2024-05-02 | Stabilize exclusive_range | Ross Smyth | -1/+1 | |
| 2024-04-24 | Fix tests and bless | Gary Guo | -46/+18 | |
| 2024-03-14 | preserve span when evaluating mir::ConstOperand | Ralf Jung | -0/+26 | |
| 2024-02-25 | fix use of platform_intrinsics in tests | Ralf Jung | -1/+1 | |
| 2024-02-16 | [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives | 许杰友 Jieyou Xu (Joe) | -21/+21 | |
| 2024-02-01 | `#![feature(inline_const_pat)]` is no longer incomplete | Matthew Jasper | -29/+11 | |
| 2024-01-29 | Enable tests for unsafe blocks in inline const patterns | Matthew Jasper | -3/+39 | |
| 2024-01-29 | Borrow check inline const patterns | Matthew Jasper | -5/+48 | |
| Add type annotations to MIR so that borrowck can pass constraints from inline constants in patterns to the containing function. | ||||
| 2024-01-05 | Stabilize THIR unsafeck | Matthew Jasper | -1/+1 | |
| 2024-01-05 | Remove revisions for THIR unsafeck | Matthew Jasper | -77/+8 | |
| This is to make the diff when stabilizing it easier to review. | ||||
| 2023-11-24 | Show number in error message even for one error | Nilstrieb | -8/+8 | |
| Co-authored-by: Adrian <adrian.iosdev@gmail.com> | ||||
| 2023-10-25 | Make THIR unused_unsafe lint consistent with MIR | Matthew Jasper | -9/+0 | |
| Updates THIR behavior to match the changes from #93678 | ||||
| 2023-10-16 | Fix inline const pattern unsafety checking in THIR | Matthew Jasper | -4/+70 | |
| THIR unsafety checking was getting a cycle of function unsafety checking -> building THIR for the function -> evaluating pattern inline constants in the function -> building MIR for the inline constant -> checking unsafety of functions (so that THIR can be stolen) This is fixed by not stealing THIR when generating MIR but instead when unsafety checking. This leaves an issue with pattern inline constants not being unsafety checked because they are evaluated away when generating THIR. To fix that we now represent inline constants in THIR patterns and visit them in THIR unsafety checking. | ||||
| 2023-09-21 | Prevent promotion of const fn calls in inline consts | Oli Scherer | -1/+16 | |
| 2023-09-21 | Add regression test | Oli Scherer | -0/+21 | |
| 2023-08-18 | Add a test to check that inline const is in required_consts | Gary Guo | -0/+24 | |
| Suggested in https://github.com/rust-lang/rust/issues/76001#issuecomment-1315975027 | ||||
| 2023-08-15 | Deny FnDef in patterns | Michael Goulet | -0/+30 | |
| 2023-08-09 | Don't use type_of to determine if item has intrinsic shim | Michael Goulet | -0/+10 | |
| 2023-07-19 | Fix inline_const with interpolated block | Michael Goulet | -0/+32 | |
| 2023-06-01 | add inline-const test for elided lifetimes being infer vars | Ziru Niu | -0/+11 | |
| 2023-04-15 | Add some reasons why tests are ignored. | Eric Huss | -1/+1 | |
| 2023-04-03 | Perform match checking on THIR. | Camille GILLOT | -16/+2 | |
| 2023-01-15 | Tweak E0597 | Esteban Küber | -0/+1 | |
| CC #99430 | ||||
| 2023-01-11 | Move /src/test to /tests | Albert Larsan | -0/+585 | |
