| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-06-26 | bless ui tests | Pietro Albini | -8/+1 | |
| 2019-06-26 | Handle index out of bound errors during const eval without panic | Esteban Küber | -0/+30 | |
| 2019-05-19 | Rollup merge of #60370 - Richard-W:const-layout-construction, r=sfackler | Mazdak Farrokhzad | -0/+21 | |
| Mark core::alloc::Layout::from_size_align_unchecked const Makes it possible (pending stabilization of #57563 (`const_fn`)) to rewrite code like ```rust const BUFFER_SIZE: usize = 0x2000; const BUFFER_ALIGN: usize = 0x1000; fn foo() { let layout = std::alloc::Layout::from_size_align(BUFFER_SIZE, BUFFER_ALIGN) .unwrap(); let buffer = std::alloc::alloc(layout); } ``` to ```rust const BUFFER_LAYOUT: std::alloc::Layout = unsafe { std::alloc::Layout::from_size_align_unchecked(0x2000, 0x1000) }; fn foo() { let buffer = std::alloc::alloc(BUFFER_LAYOUT); } ``` which (although `unsafe` is used) looks somewhat cleaner and is easier to read. | ||||
| 2019-05-14 | Add ui test for const Layout::from_size_align_unchecked | Richard Wiedenhöft | -0/+21 | |
| 2019-05-12 | Remove feature(nll) when compare mode is sufficient | Matthew Jasper | -12/+2 | |
| 2019-05-12 | Change compare mode to use -Zborrowck=mir | Matthew Jasper | -0/+390 | |
| 2019-05-07 | compiletest: only use `make_exe_name` for tests that end up being executed. | Eduard-Mihai Burtescu | -2/+0 | |
| 2019-05-02 | Fix failing test | Wesley Wiser | -0/+1 | |
| 2019-05-02 | Remove the `self.mir` field from `ConstPropagator` | Wesley Wiser | -3/+9 | |
| 2019-04-23 | Stabilize futures_api | Taylor Cramer | -1/+2 | |
| 2019-04-23 | Add rustc_allow_const_fn_ptr | Taylor Cramer | -0/+62 | |
| 2019-04-23 | Rollup merge of #60169 - varkor:tidy-unnecessary-ignore-newline, r=kennytm | Mazdak Farrokhzad | -3/+1 | |
| Warn when ignore-tidy-linelength is present, but no lines are too long It's easy for a `// ignore-tidy-linelength` to be added when there is a genuine need to ignore a file's line length, but then after refactoring the need is gone, but the tidy directive is not removed. This means that in the future, further editing may accidentally add unnecessarily long lines. This change forces `// ignore-tidy-linelength` to be used exactly when necessary, to make sure such changes are intentional. | ||||
| 2019-04-23 | Update ui tests | varkor | -1/+1 | |
| 2019-04-23 | Remove unnecessary ignore-tidy-linelength | varkor | -2/+0 | |
| 2019-04-23 | Auto merge of #60125 - estebank:continue-evaluating, r=oli-obk | bors | -69/+176 | |
| Don't stop evaluating due to errors before borrow checking r? @oli-obk Fix #60005. Follow up to #59903. Blocked on #53708, fixing the ICE in `src/test/ui/consts/match_ice.rs`. | ||||
| 2019-04-22 | Fix ICE related to #53708 | Esteban Küber | -13/+21 | |
| 2019-04-22 | Never stop due to errors before borrow checking | Esteban Küber | -65/+164 | |
| 2019-04-22 | Update ui tests | varkor | -2/+2 | |
| 2019-04-22 | Remove double trailing newlines | varkor | -9/+0 | |
| 2019-04-22 | update tests for migrate mode by default | Matthew Jasper | -1152/+349 | |
| 2019-04-18 | hide `--explain` hint if error has no extended info | Andy Russell | -23/+21 | |
| 2019-04-17 | Rollup merge of #59646 - JohnTitor:improve-wording, r=oli-obk | Mazdak Farrokhzad | -18/+19 | |
| const fn: Improve wording fixes #59611 This might need discussion. Feel free to close this PR if we don't need to fix. | ||||
| 2019-04-16 | Fix tests | Yuki OKUSHI | -18/+19 | |
| 2019-04-11 | Reword tracking issue note | Esteban Küber | -12/+12 | |
| 2019-04-10 | Tweak unstable diagnostic output | Esteban Küber | -14/+27 | |
| 2019-04-07 | Only run SIMD tests on x86 | Oliver Scherer | -3/+9 | |
| 2019-04-07 | Add more regression tests for accidental promotion | Oliver Scherer | -0/+37 | |
| 2019-04-07 | Function arguments should never get promoted | Oliver Scherer | -0/+18 | |
| 2019-04-03 | Improve wording | Yuki OKUSHI | -17/+17 | |
| 2019-03-23 | Deduplicate const eval error spans for better output | Esteban Küber | -28/+12 | |
| 2019-03-23 | Swap const evaluation lint spans to point at problem in primary span | Esteban Küber | -296/+336 | |
| 2019-03-16 | Rollup merge of #59139 - oli-obk:unions_are_a_good_thing, r=RalfJung | kennytm | -0/+11 | |
| Unregress using scalar unions in constants. fixes https://github.com/rust-lang/rust/issues/59126 r? @RalfJung I also made a bunch of these invariants panic instead of report an error. | ||||
| 2019-03-15 | rustc: provide DisambiguatedDefPathData in ty::print. | Eduard-Mihai Burtescu | -4/+4 | |
| 2019-03-15 | rustc: pass Option<&Substs> and Namespace around in ty::item_path. | Eduard-Mihai Burtescu | -1/+1 | |
| 2019-03-12 | Unregress using scalar unions in constants. | Oliver Scherer | -0/+11 | |
| 2019-03-11 | Update NLL tests | Vadim Petrochenkov | -51/+51 | |
| 2019-03-11 | Update tests | Vadim Petrochenkov | -163/+163 | |
| 2019-03-11 | Auto merge of #58784 - oli-obk:accidental_promotion, r=eddyb | bors | -0/+18 | |
| Don't promote function calls to nonpromotable things fixes https://github.com/rust-lang/rust/issues/58767 and fixes https://github.com/rust-lang/rust/issues/58634 r? @eddyb should we additionally check the function call return type? It might be a promotable function (or any `const fn` inside a `const fn`), but its return type might contain interior mutability. | ||||
| 2019-03-09 | Rollup merge of #58750 - TimDiekmann:master, r=oli-obk | Mazdak Farrokhzad | -0/+99 | |
| Make `Unique::as_ptr`, `NonNull::dangling` and `NonNull::cast` const | ||||
| 2019-03-03 | Add .nll.stderr output | Tim | -0/+39 | |
| 2019-03-02 | Point at enum definition when match patterns are not exhaustive | Esteban Küber | -0/+2 | |
| ``` error[E0004]: non-exhaustive patterns: type `X` is non-empty --> file.rs:9:11 | 1 | / enum X { 2 | | A, | | - variant not covered 3 | | B, | | - variant not covered 4 | | C, | | - variant not covered 5 | | } | |_- `X` defined here ... 9 | match x { | ^ | = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms error[E0004]: non-exhaustive patterns: `B` and `C` not covered --> file.rs:11:11 | 1 | / enum X { 2 | | A, 3 | | B, 4 | | C, | | - not covered 5 | | } | |_- `X` defined here ... 11 | match x { | ^ patterns `C` not covered ``` When a match expression doesn't have patterns covering every variant, point at the enum's definition span. On a best effort basis, point at the variant(s) that are missing. This does not handle the case when the missing pattern is due to a field's enum variants: ``` enum E1 { A, B, C, } enum E2 { A(E1), B, } fn foo() { match E2::A(E1::A) { E2::A(E1::B) => {} E2::B => {} } //~^ ERROR `E2::A(E1::A)` and `E2::A(E1::C)` not handled } ``` Unify look between match with no arms and match with some missing patterns. Fix #37518. | ||||
| 2019-02-28 | Make `Unique::as_ptr`, `NonNull::dangling` and `NonNull::cast` const | Tim | -0/+60 | |
| Make `Unique::as_ptr` const without feature attribute as it's unstable Make `NonNull::dangling` and `NonNull::cast` const with `feature = "const_ptr_nonnull"` | ||||
| 2019-02-27 | Don't promote function calls to nonpromotable things | Oliver Scherer | -0/+18 | |
| 2019-02-23 | Rollup merge of #58658 - pmccarter:align_msg, r=matthewjasper | Mazdak Farrokhzad | -6/+8 | |
| Add expected/provided byte alignments to validation error message Fixes #58617 | ||||
| 2019-02-22 | #58658 bless after line split for tidy | Patrick McCarter | -5/+5 | |
| 2019-02-22 | tidy line length override #58617 | Patrick McCarter | -0/+1 | |
| 2019-02-22 | Change byte align message wording #58617 | Patrick McCarter | -2/+2 | |
| 2019-02-22 | Invalid byte alignment expected/provided in message #58617 | Patrick McCarter | -5/+6 | |
| 2019-02-22 | Switch from error patterns to `//~ ERROR` markers. | Felix S. Klock II | -8/+11 | |
| AFAICT, we do not have the same const-eval issues that we used to when rust-lang/rust#23926 was filed. (Probably because of the switch to miri for const-evaluation.) | ||||
| 2019-02-17 | Rollup merge of #58479 - saleemjaffer:test_promote_evaluation_unused_result, ↵ | kennytm | -0/+8 | |
| r=oli-obk compile-pass test for #53606 fixes #53606 | ||||
