| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-02-22 | move const_eval.rs into the module folder | Ralf Jung | -87/+0 | |
| 2020-02-16 | Code review changes. | Ben Lewis | -1/+1 | |
| 2020-02-15 | Change `const_field` and `const_caller_location` to return `ConstValue` ↵ | Ben Lewis | -11/+4 | |
| instead of `Const` as the type in the returned const isn't needed. | ||||
| 2020-02-15 | Change const eval to return `ConstValue`, instead of `Const` as the type ↵ | Ben Lewis | -2/+4 | |
| inside it shouldn't be used. | ||||
| 2020-01-15 | Promoteds can contain raw pointers, but these must still only point to ↵ | Oliver Scherer | -2/+2 | |
| immutable allocations | ||||
| 2020-01-12 | Split `rustc_mir::{build, hair, lints}` into their own crate | Matthew Jasper | -6/+23 | |
| 2020-01-10 | Promote `Ref`s to constants instead of static | Santiago Pastorino | -1/+1 | |
| 2020-01-08 | Move `is_min_const_fn` query to librustc_mir. | Camille GILLOT | -0/+2 | |
| The only two uses of the associated methods are in librustc_mir and librustdoc. Please tell me if there is a better choice. | ||||
| 2020-01-02 | Normalize `syntax::source_map` imports. | Mazdak Farrokhzad | -2/+1 | |
| 2019-12-26 | Rebase fallout | Oliver Scherer | -0/+2 | |
| 2019-12-26 | Rename `query` module | Oliver Scherer | -2/+2 | |
| 2019-12-26 | Move all functions used by the queries to query.rs | Oliver Scherer | -108/+3 | |
| 2019-12-26 | Make some functions crate local | Oliver Scherer | -3/+3 | |
| 2019-12-26 | Move `eval_body_using_ecx` to the only module it is used in | Oliver Scherer | -48/+3 | |
| 2019-12-26 | Move const eval query components into their own module | Oliver Scherer | -226/+4 | |
| 2019-12-26 | Move const eval machine into its own module | Oliver Scherer | -344/+11 | |
| 2019-12-24 | Deprecate Error::description for real | David Tolnay | -13/+1 | |
| `description` has been documented as soft-deprecated since 1.27.0 (17 months ago). There is no longer any reason to call it or implement it. This commit: - adds #[rustc_deprecated(since = "1.41.0")] to Error::description; - moves description (and cause, which is also deprecated) below the source and backtrace methods in the Error trait; - reduces documentation of description and cause to take up much less vertical real estate in rustdocs, while preserving the example that shows how to render errors without needing to call description; - removes the description function of all *currently unstable* Error impls in the standard library; - marks #[allow(deprecated)] the description function of all *stable* Error impls in the standard library; - replaces miscellaneous uses of description in example code and the compiler. | ||||
| 2019-12-24 | x.py fmt after previous deignore | Mark Rousskov | -169/+117 | |
| 2019-12-23 | Constants reading or referencing statics is illegal | Oliver Scherer | -3/+4 | |
| and some uses of it will be illegal forever (e.g. mutable or interior mutable statics) | ||||
| 2019-12-23 | Dynamically prevent constants from accessing statics | Oliver Scherer | -12/+40 | |
| 2019-12-22 | Add simpler entry points to const eval for common usages. | Ben Lewis | -2/+2 | |
| 2019-12-08 | Rollup merge of #66991 - Nashenas88:body_cache_cleanup, r=eddyb | Mazdak Farrokhzad | -2/+2 | |
| Cleanup BodyCache After this PR: - `BodyCache` is renamed to `BodyAndCache` - `ReadOnlyBodyCache` is renamed to `ReadOnlyBodyAndCache` - `ReadOnlyBodyAndCache::body` fn is removed and all calls to it are replaced by a deref (possible due to fix of its `Deref` imp in #65947) cc @eddyb @oli-obk | ||||
| 2019-12-06 | Always call const fns with #[track_caller]. | Adam Perry | -2/+6 | |
| The caller location is passed as an implicit argument, so we must consider it when checking the sizedness of arguments. | ||||
| 2019-12-05 | Generate &core::panic::Location type in a single place. | Adam Perry | -6/+1 | |
| 2019-12-05 | rustc: Apply clearer naming to BodyAndCache, fix Deref impl, remove unneeded ↵ | Paul Daniel Faria | -2/+2 | |
| Index impl, remove body fn rustc_codegen_ssa: Fix BodyAndCache reborrow to Body and change instances of body() call to derefence rustc_mir: Fix BodyAndCache reborrow to Body and change intances of body() call to derefence | ||||
| 2019-12-04 | Auto merge of #66866 - oli-obk:const_fn_memoization, r=RalfJung | bors | -3/+15 | |
| Only memoize const fn calls during const eval Miri and other engines may want to execute the function in order to detect UB inside of them. r? @RalfJung | ||||
| 2019-12-02 | Auto merge of #64736 - Nashenas88:mir_predecessors_cache_cleanup, r=oli-obk | bors | -2/+2 | |
| Remove interior mutability in mir predecessors cache | ||||
| 2019-12-02 | Remove HasLocalDecls impl from BodyCache's, properly reborrow to Body, ↵ | Paul Daniel Faria | -2/+2 | |
| rename all body_cache back to body | ||||
| 2019-12-02 | Simplify BodyCache impl and fix all remaining type errors in librustc_mir ↵ | Paul Daniel Faria | -2/+2 | |
| (lifetime errors still exist) | ||||
| 2019-12-02 | fix init_allocation_extra | Ralf Jung | -2/+2 | |
| 2019-12-02 | make alloc_extra machine hook a bit nicer | Ralf Jung | -3/+3 | |
| 2019-12-02 | Miri: add helper fn to allocate string; simplify alloc_caller_location | Ralf Jung | -1/+1 | |
| 2019-12-02 | expose span to M::assert_panic, and provide helper to turn that into ↵ | Ralf Jung | -0/+1 | |
| CallerLocation | ||||
| 2019-12-02 | Miri: add machine hook for MIR-level assertion panics | Ralf Jung | -1/+34 | |
| 2019-11-30 | Don't repeat the `is_const_fn_raw` check | Oliver Scherer | -14/+12 | |
| 2019-11-30 | `find_fn` -> `find_mir_or_eval_fn` rename | Oliver Scherer | -2/+2 | |
| 2019-11-29 | Only memoize const fn calls during const eval | Oliver Scherer | -0/+14 | |
| Miri and other engines may want to execute the function in order to detect UB inside of them. | ||||
| 2019-11-28 | Auto merge of #66294 - davidhewitt:const_fn_memoization, r=oli-obk | bors | -1/+10 | |
| Add memoization for const function evaluations When a const function is being evaluated, as long as all its arguments are zero-sized-types (or it has no arguments) then we can trivially memoize the evaluation result using the existing query mechanism. With thanks to @oli-obk for mentoring me through this at RustFest Barcelona. r? @oli-obk | ||||
| 2019-11-27 | Correct typo in src/librustc_mir/const_eval.rs | David Hewitt | -1/+1 | |
| Co-Authored-By: lqd <remy.rakic+github@gmail.com> | ||||
| 2019-11-27 | Add memoization for const function evaluations | David Hewitt | -1/+10 | |
| When a const function is being evaluated, as long as all its arguments are zero-sized-types (or it has no arguments) then we can trivially memoize the evaluation result using the existing query mechanism. | ||||
| 2019-11-26 | Fix spelling typos | Brian Wignall | -1/+1 | |
| 2019-11-25 | miri: couple ret place and ret block together (they both exist or both don't) | Ralf Jung | -9/+6 | |
| 2019-11-25 | refactor goto_block and also add unwind_to_block | Ralf Jung | -1/+1 | |
| 2019-11-14 | Auto merge of #66233 - cjgillot:constkind, r=oli-obk | bors | -4/+4 | |
| Split ConstValue into two enums Hello, Issue #59210 appeared abandoned, so I gave it a go. Some further cleanup and refactoring may be mandated. I did not test beyond `x.py check`, since my home computer dies compiling librustc. Fixes #59210 | ||||
| 2019-11-12 | Rename in librustc_mir. | Camille GILLOT | -4/+4 | |
| 2019-11-11 | Rename to | Aaron Hill | -1/+1 | |
| 2019-11-11 | Remove trampoline, pass `ret` and `unwind` when handling intrinsics | Aaron Hill | -0/+2 | |
| 2019-11-11 | Some cleanup | Aaron Hill | -11/+1 | |
| 2019-11-11 | A few minor tweaks | Aaron Hill | -1/+2 | |
| 2019-11-11 | Formatting improvements | Aaron Hill | -1/+2 | |
| Co-Authored-By: Oliver Scherer <github35764891676564198441@oli-obk.de> | ||||
