| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-08-30 | mv compiler to compiler/ | mark | -393/+0 | |
| 2020-06-28 | Stop checking for `while` and `loop` in a const context | Dylan MacKenzie | -13/+0 | |
| 2020-06-28 | MIR const-checking | Dylan MacKenzie | -13/+0 | |
| 2020-06-23 | Rollup merge of #73515 - christianpoveda:livedrop-diagnostics, r=oli-obk | Manish Goregaokar | -5/+8 | |
| Add second message for LiveDrop errors This is an attempt to fix https://github.com/rust-lang/rust/issues/72907 by adding a second message to the `LiveDrop` diagnostics. Changing from this ``` error[E0493]: destructors cannot be evaluated at compile-time --> src/lib.rs:7:9 | 7 | let mut always_returned = None; | ^^^^^^^^^^^^^^^^^^^ constants cannot evaluate destructors error: aborting due to previous error ``` to this ``` error[E0493]: destructors cannot be evaluated at compile-time --> foo.rs:6:9 | 6 | let mut always_returned = None; | ^^^^^^^^^^^^^^^^^^^ constants cannot evaluate destructors ... 10 | always_returned = never_returned; | --------------- value is dropped here error: aborting due to previous error ``` r? @RalfJung @ecstatic-morse | ||||
| 2020-06-23 | Rollup merge of #73398 - oli-obk:const_raw_ptr_cmp, r=varkor,RalfJung,nagisa | Manish Goregaokar | -11/+9 | |
| A way forward for pointer equality in const eval r? @varkor on the first commit and @RalfJung on the second commit cc #53020 | ||||
| 2020-06-20 | Satisfy tidy | Oliver Scherer | -4/+4 | |
| 2020-06-20 | Refer just to the issue in the raw ptr cmp diagnostic instead of explaining ↵ | Oliver Scherer | -15/+1 | |
| everything in the diagnostic | ||||
| 2020-06-19 | add second message for livedrop errors | Christian Poveda | -5/+8 | |
| 2020-06-19 | add new error code | Christian Poveda | -1/+1 | |
| 2020-06-19 | update diagnostics for &mut in constants | Christian Poveda | -11/+17 | |
| 2020-06-19 | forbid mutable references in all constants except const fns | Christian Poveda | -0/+6 | |
| 2020-06-19 | Add fuzzy pointer comparison intrinsics | Oliver Scherer | -8/+14 | |
| 2020-06-19 | Remove the const_raw_ptr_comparison feature gate. | Oliver Scherer | -10/+16 | |
| We can never supply a meaningful implementation of this. Instead, the follow up commits will create two intrinsics that approximate comparisons: * `ptr_maybe_eq` * `ptr_maybe_ne` The fact that `ptr_maybe_eq(a, b)` is not necessarily the same value as `!ptr_maybe_ne(a, b)` is a symptom of this entire problem. | ||||
| 2020-06-13 | Move `check_op` logic to `ops` module | Dylan MacKenzie | -0/+16 | |
| 2020-06-01 | test miri-unleash TLS accesses | Ralf Jung | -5/+0 | |
| 2020-05-08 | Rollup merge of #71989 - ecstatic-morse:const-context-enum, r=oli-obk | Dylan DPC | -3/+4 | |
| Use a single enum for the kind of a const context This adds a `ConstContext` enum to the `rustc_hir` crate and method that can be called via `tcx.hir()` to get the `ConstContext` for a given body owner. This arose from discussion in #71824. r? @oli-obk | ||||
| 2020-05-07 | Use `hir::ConstContext` instead of local enums | Dylan MacKenzie | -3/+4 | |
| 2020-05-04 | Suggest to add missing feature when using gated const features | mibac138 | -0/+3 | |
| 2020-04-29 | Allow `Downcast` projections unconditionally | Dylan MacKenzie | -9/+0 | |
| 2020-04-23 | Rename `Item` to `ConstCx`. | Oliver Scherer | -62/+62 | |
| This renaming was already done in some modules via import renaming. It's strictly used as a context, and it contains a `TyCtxt`. | ||||
| 2020-04-19 | Check for `llvm_asm` in a const context | Dylan MacKenzie | -0/+4 | |
| 2020-04-18 | miri-unleashed: test that we detect heap allocations | Ralf Jung | -2/+0 | |
| 2020-04-15 | remove an impossible branch from check_consts | Ralf Jung | -10/+0 | |
| 2020-03-16 | use direct imports for `rustc::{lint, session}`. | Mazdak Farrokhzad | -2/+2 | |
| 2020-03-14 | Return feature gate as a `Symbol` | Dylan MacKenzie | -28/+31 | |
| 2020-02-27 | Remove unneeded calls to format!() | Björn Steinbrink | -4/+2 | |
| 2020-01-18 | remove rustc_error_codes deps except in rustc_driver | Mazdak Farrokhzad | -2/+0 | |
| 2020-01-11 | Rollup merge of #68079 - varkor:E0013-clarify, r=Centril | Mazdak Farrokhzad | -5/+7 | |
| Clarify suggestion for E0013 Fixes https://github.com/rust-lang/rust/issues/68038. | ||||
| 2020-01-11 | simplify feature_err imports | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-10 | Clarify suggestion for E0013 | varkor | -5/+7 | |
| 2020-01-08 | - remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!} | Mazdak Farrokhzad | -10/+8 | |
| - remove syntax::{help!, span_help!, span_note!} - remove unused syntax::{struct_span_fatal, struct_span_err_or_warn!, span_err_or_warn!} - lintify check_for_bindings_named_same_as_variants + conflicting_repr_hints - inline syntax::{struct_span_warn!, diagnostic_used!} - stringify_error_code! -> error_code! & use it more. - find_plugin_registrar: de-fatalize an error - de-fatalize metadata errors - move type_error_struct! to rustc_typeck - struct_span_err! -> rustc_errors | ||||
| 2020-01-05 | Remove rustc_hir reexports in rustc::hir. | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-02 | Normalize `syntax::symbol` imports. | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-01 | Rename `syntax_pos` to `rustc_span` in source code | Vadim Petrochenkov | -1/+1 | |
| 2019-12-22 | Format the world | Mark Rousskov | -59/+85 | |
| 2019-12-18 | Add Rvalue::AddressOf to MIR | Matthew Jasper | -0/+17 | |
| This operator creates a raw pointer to a Place directly, without first creating a reference. See RFC #2582 for motivation. The Rvalue is currently unused. | ||||
| 2019-12-13 | Put MIR checks for loops behind the feature flag | Dylan MacKenzie | -0/+4 | |
| 2019-12-06 | Rollup merge of #66606 - christianpoveda:mut-refs-in-const-fn, r=oli-obk | Mazdak Farrokhzad | -25/+39 | |
| Add feature gate for mut refs in const fn r? @oli-obk | ||||
| 2019-12-03 | Check intrinsics for callability in const fns | Mahmut Bulut | -16/+0 | |
| 2019-12-02 | Suggest feature for const_mut_refs errors | Christian Poveda | -3/+7 | |
| 2019-12-02 | Disallow cell borrowing | Christian Poveda | -24/+26 | |
| 2019-12-02 | Allow mutable derefs with feature gate | Christian Poveda | -1/+5 | |
| 2019-12-02 | Allow mutable borrows in constant bodies | Christian Poveda | -0/+4 | |
| 2019-11-30 | move GateIssue to rustc_feature & simplify emit_feature_err | Mazdak Farrokhzad | -24/+24 | |
| 2019-11-21 | Allow `Downcast` projections if `const_if_match` enabled | Dylan MacKenzie | -1/+5 | |
| These are generated when matching on enum variants to extract the value within. We should have no problem evaluating these, but care should be taken that we aren't accidentally allowing some other operation. | ||||
| 2019-11-21 | Add feature gate for const `if` and `match` | Dylan MacKenzie | -0/+4 | |
| 2019-11-15 | Move `delay_span_bug` into `emit_error` for if/loop | Dylan MacKenzie | -2/+18 | |
| 2019-11-14 | Update to use new librustc_error_codes library | Guillaume Gomez | -0/+2 | |
| 2019-10-25 | Make `check_consts::Item` work on non-const fns | Dylan MacKenzie | -17/+16 | |
| This was originally only needed for validation, which is never run on non-const `fn`s. The new promotion pass wants to use it, however. | ||||
| 2019-09-28 | Add description for every module in `check_consts` | Dylan MacKenzie | -0/+2 | |
