| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2021-02-03 | Allow/fix non_fmt_panic in tests. | Mara Bos | -20/+21 | |
| 2021-02-03 | make const_err a future incompat lint | Ralf Jung | -117/+431 | |
| 2021-02-01 | Auto merge of #80851 - m-ou-se:panic-2021, r=petrochenkov | bors | -7/+7 | |
| Implement Rust 2021 panic This implements the Rust 2021 versions of `panic!()`. See https://github.com/rust-lang/rust/issues/80162 and https://github.com/rust-lang/rfcs/pull/3007. It does so by replacing `{std, core}::panic!()` by a bulitin macro that expands to either `$crate::panic::panic_2015!(..)` or `$crate::panic::panic_2021!(..)` depending on the edition of the caller. This does not yet make std's panic an alias for core's panic on Rust 2021 as the RFC proposes. That will be a separate change: https://github.com/rust-lang/rust/pull/80879/commits/c5273bdfb266c35e8eab9413aa8d58d27fdbe114 That change is blocked on figuring out what to do with https://github.com/rust-lang/rust/issues/80846 first. | ||||
| 2021-01-29 | Rollup merge of #81333 - RalfJung:const-err-simplify, r=oli-obk | Yuki Okushi | -39/+25 | |
| clean up some const error reporting around promoteds These are some error reporting simplifications enabled by https://github.com/rust-lang/rust/pull/80579. Further simplifications are possible but could be blocked on making `const_err` a hard error. r? ``````@oli-obk`````` | ||||
| 2021-01-25 | Implement new panic!() behaviour for Rust 2021. | Mara Bos | -7/+7 | |
| 2021-01-24 | Rollup merge of #78578 - oli-obk:const_mut_refs, r=RalfJung | Jonas Schievink | -3/+6 | |
| Permit mutable references in all const contexts fixes #71212 cc `@rust-lang/wg-const-eval` `@christianpoveda` | ||||
| 2021-01-24 | clean up some const error reporting around promoteds | Ralf Jung | -39/+25 | |
| 2021-01-23 | Permit mutable references in all const contexts | oli | -3/+6 | |
| 2021-01-22 | re-bless ui tests | Ralf Jung | -53/+5 | |
| 2021-01-22 | avoid promoting division, modulo and indexing operations that could fail | Ralf Jung | -199/+158 | |
| 2021-01-17 | validation test: turn some const_err back into validation failures | Ralf Jung | -81/+59 | |
| 2021-01-13 | Update tests for extern block linting | Mark Rousskov | -1/+1 | |
| 2021-01-04 | Do not run const prop on the `mir_for_ctfe` of `const fn` | oli | -1/+1 | |
| 2021-01-04 | Keep an unoptimized duplicate of `const fn` around | oli | -31/+59 | |
| This allows CTFE to reliably detect UB, as otherwise optimizations may hide UB. | ||||
| 2020-12-02 | rename MemoryKind::Heap to ConstHeap; bless test | Vishnunarayan K I | -6/+13 | |
| 2020-12-02 | add comment and bless some tests | Vishnunarayan K I | -23/+20 | |
| 2020-12-01 | review comment and one more test | Vishnunarayan K I | -11/+23 | |
| 2020-12-01 | review comments | Vishnunarayan K I | -1/+43 | |
| 2020-12-01 | add const_allocate intrisic | Vishnunarayan K I | -0/+79 | |
| 2020-11-29 | Update tests to remove old numeric constants | bstrie | -47/+32 | |
| Part of #68490. Care has been taken to leave the old consts where appropriate, for testing backcompat regressions, module shadowing, etc. The intrinsics docs were accidentally referring to some methods on f64 as std::f64, which I changed due to being contrary with how we normally disambiguate the shadow module from the primitive. In one other place I changed std::u8 to std::ops since it was just testing path handling in macros. For places which have legitimate uses of the old consts, deprecated attributes have been optimistically inserted. Although currently unnecessary, they exist to emphasize to any future deprecation effort the necessity of these specific symbols and prevent them from being accidentally removed. | ||||
| 2020-11-12 | fix tests and formatting | Vishnunarayan K I | -20/+4 | |
| 2020-10-22 | Add test for const panic!(CONST). | Mara Bos | -17/+45 | |
| 2020-10-18 | we can test std and core panic macros together | Ralf Jung | -70/+90 | |
| 2020-10-04 | But whatever | ecstatic-morse | -0/+1 | |
| 2020-10-03 | Ensure that the const-eval engine handles `#[unwind(aborts)]` | Dylan MacKenzie | -0/+33 | |
| 2020-09-29 | Bless output | Dylan MacKenzie | -1/+1 | |
| 2020-09-29 | Bless mut tests | Dylan MacKenzie | -24/+11 | |
| 2020-09-29 | Auto merge of #76754 - varkor:diagnostic-cleanup-ii, r=ecstatic-morse | bors | -57/+57 | |
| Clean up diagnostics for arithmetic operation errors Plus a small tweak to a range pattern error message. | ||||
| 2020-09-27 | Bless tests | Dylan MacKenzie | -1/+23 | |
| 2020-09-27 | Update tests with new feature gate | Dylan MacKenzie | -1/+1 | |
| 2020-09-26 | Make invalid integer operation messages consistent | varkor | -57/+57 | |
| 2020-09-19 | Reflect the "do not call this query directly" mentality in its name | Oliver Scherer | -2/+2 | |
| 2020-09-19 | Address review comments | Oliver Scherer | -3/+3 | |
| 2020-09-19 | Fix rebase fallout and make the test work with debug info | Oliver Scherer | -3/+3 | |
| 2020-09-19 | We can make const eval sound, it's just super expensive | Oliver Scherer | -7/+3 | |
| 2020-09-19 | Clarify a statement in UB test | Oliver Scherer | -1/+3 | |
| 2020-09-19 | Stop using the `const_eval` query for initializers of statics | Oliver Scherer | -12/+12 | |
| As a side effect, we now represent most promoteds as `ConstValue::Scalar` again. This is useful because all implict promoteds are just references anyway and most explicit promoteds are numeric arguments to `asm!` or SIMD instructions. | ||||
| 2020-09-19 | Validate constants during `const_eval_raw` | Oliver Scherer | -28/+17 | |
| 2020-09-02 | pretty: trim paths of unique symbols | Dan Aloni | -2/+2 | |
| If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not. | ||||
| 2020-08-27 | Abort when catch_unwind catches a foreign exception | Amanieu d'Antras | -0/+2 | |
| 2020-08-21 | Extend normalization in const-eval-query-stack test | Tomasz Miąsko | -2/+3 | |
| Builds with debuginfo have additional information in backtrace. | ||||
| 2020-08-20 | Set RUST_BACKTRACE env variable | ThibsG | -1/+2 | |
| 2020-08-19 | Fix bad printing of const-eval queries | ThibsG | -0/+38 | |
| 2020-08-12 | more precise span for erroneous consts during CTFE/Miri | Ralf Jung | -10/+6 | |
| 2020-08-12 | bless tests | Ralf Jung | -5/+7 | |
| 2020-08-10 | add test for unused erroneous const in CTFE | Ralf Jung | -0/+63 | |
| 2020-07-22 | Optimize away BitAnd and BitOr when possible | Xavier Denis | -3/+4 | |
| 2020-07-11 | Rollup merge of #72920 - oli-obk:const_transmute, r=RalfJung | Manish Goregaokar | -59/+63 | |
| Stabilize `transmute` in constants and statics but not const fn cc #53605 (leaving issue open so we can add `transmute` to `const fn` later) Previous attempt: #64011 r? @RalfJung cc @rust-lang/wg-const-eval | ||||
| 2020-07-11 | Stabilize `transmute` in constants and statics but not const fn | Oliver Scherer | -59/+63 | |
| 2020-07-10 | Rollup merge of #73989 - RalfJung:ub-enum-test, r=oli-obk | Manish Goregaokar | -8/+9 | |
| adjust ub-enum test to be endianess-independent @cuviper noted that our test fails on "other" endianess systems (I never know which is which^^), so let's fix that. | ||||
