| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-11-30 | move GateIssue to rustc_feature & simplify emit_feature_err | Mazdak Farrokhzad | -24/+24 | |
| 2019-11-29 | Use recursion_limit for const eval stack limit | cad97 | -1/+1 | |
| 2019-11-30 | rustc: move mir::SourceScopeLocalData to a field of SourceScopeData. | Eduard-Mihai Burtescu | -38/+30 | |
| 2019-11-30 | rustc_mir: fix inliner to also copy over source_scope_local_data. | Eduard-Mihai Burtescu | -1/+10 | |
| 2019-11-30 | rustc: move MIR source_scope_local_data's ClearCrossCrate to be around elements. | Eduard-Mihai Burtescu | -113/+79 | |
| 2019-11-29 | Rollup merge of #66844 - RalfJung:caller-location-leak, r=oli-obk | Ralf Jung | -5/+9 | |
| Miri: do not consider memory allocated by caller_location leaked Fixes https://github.com/rust-lang/miri/issues/1071 r? @oli-obk I am not sure if this is the best approach, but it certainly is the easiest. | ||||
| 2019-11-29 | Rollup merge of #66793 - matthewjasper:record-static-refs, r=cramertj | Ralf Jung | -8/+1 | |
| Record temporary static references in generator witnesses Closes #66695 * Record the pointer to static's type in MIR. * Normalize the static's type (so that constants can be compared correctly). | ||||
| 2019-11-29 | SimplifyArmIdentity only for locals with the same type | Tomasz Miąsko | -1/+7 | |
| Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> | ||||
| 2019-11-29 | Auto merge of #66321 - ninjasource:async-fn-resume-after-completion, r=oli-obk | bors | -57/+80 | |
| Async fn resume after completion #65419 -- Attempting to run an async fn after completion mentions generators Not yet ready for review - work in progress Just need to run the tests on a proper build server | ||||
| 2019-11-29 | minor fix | Mark Mansi | -5/+1 | |
| 2019-11-29 | remove get_named_span | Mark Mansi | -39/+5 | |
| 2019-11-29 | rename to AnonRegionFromAsyncFn | Mark Mansi | -10/+9 | |
| 2019-11-29 | improve lifetime errors with implicit trait object lifetimes | Mark Mansi | -18/+33 | |
| 2019-11-29 | Only memoize const fn calls during const eval | Oliver Scherer | -13/+15 | |
| Miri and other engines may want to execute the function in order to detect UB inside of them. | ||||
| 2019-11-29 | Auto merge of #66567 - estebank:suggest-copy, r=Centril | bors | -7/+11 | |
| Use structured suggestion when requiring `Copy` constraint in type param | ||||
| 2019-11-28 | review comments | Esteban Küber | -1/+3 | |
| 2019-11-28 | Deduplicate type param constraint suggestion code | Esteban Küber | -57/+7 | |
| 2019-11-28 | Use structured suggestion when requiring `Copy` constraint in type param | Esteban Küber | -6/+58 | |
| 2019-11-28 | do not consider memory allocated by caller_location leaked | Ralf Jung | -5/+9 | |
| 2019-11-28 | Auto merge of #66642 - ecstatic-morse:promotion-in-const, r=eddyb | bors | -100/+4 | |
| Create promoted MIR fragments for `const` and `static`s Resolves #65732. The previous strategy of removing `Drop` and `StorageDead` for promoted locals only worked for rvalue lifetime extension and only if no `loop`s were present. This PR applies the approach currently used for `fn` and `const fn`s to `const` and `statics`. This may have some performance impacts. r? @eddyb | ||||
| 2019-11-28 | Auto merge of #66603 - Nadrieril:fix-65413, r=varkor | bors | -36/+30 | |
| Fix #65413 #65413 was due to an oversight in `pat_constructor` that didn't check if a particular const value was maybe a slice/array const. | ||||
| 2019-11-28 | Moved tests and fixed merge conflict | David Haig | -1/+0 | |
| 2019-11-28 | const_prop: detect and avoid catching Miri errors that require allocation | Ralf Jung | -7/+25 | |
| 2019-11-28 | Fail fast if generator_kind is None | David Haig | -8/+9 | |
| 2019-11-28 | Block indent formatting | David Haig | -19/+22 | |
| 2019-11-28 | Reduced repetition by refactoring new body to constructor function | David Haig | -41/+40 | |
| 2019-11-28 | Fixed tidy errors | David Haig | -4/+10 | |
| 2019-11-28 | Remove duplication using single variant for error | David Haig | -21/+8 | |
| 2019-11-28 | Squash | David Haig | -29/+57 | |
| 2019-11-28 | Auto merge of #66294 - davidhewitt:const_fn_memoization, r=oli-obk | bors | -2/+42 | |
| 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 | Don't treat a reference to a `static` as a reborrow | Dylan MacKenzie | -0/+13 | |
| They now look the same in the MIR after #66587. | ||||
| 2019-11-27 | Remove `CheckOpResult` | Dylan MacKenzie | -14/+6 | |
| 2019-11-27 | comment | Ralf Jung | -0/+7 | |
| 2019-11-27 | handle diverging functions forwarding their return place | Ralf Jung | -15/+16 | |
| 2019-11-27 | Rollup merge of #66798 - bwignall:typo, r=varkor | Tyler Mandry | -5/+5 | |
| Fix spelling typos Should be non-semantic. Uses https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines to find likely typos. | ||||
| 2019-11-27 | Rollup merge of #66722 - matthewjasper:non_exhaustive_borrowck, r=varkor | Tyler Mandry | -1/+1 | |
| Handle non_exhaustive in borrow checking Borrow check can tell whether a pattern is exhaustive or not, make sure that `non_exhaustive` prevents this. | ||||
| 2019-11-27 | Rollup merge of #66222 - Aaron1011:fix/opaque-closure, r=pnkfelix | Tyler Mandry | -4/+16 | |
| Use `eq_opaque_type_and_type` when type-checking closure signatures This handles the case where a user explicitly annotations a closure signature with a opaque return type. Fixes #63263 | ||||
| 2019-11-27 | Remove `derived_from_illegal_borrow` | Dylan MacKenzie | -41/+1 | |
| 2019-11-27 | Remove `Rvalue::Ref` handling from `HasMutInterior` | Dylan MacKenzie | -29/+1 | |
| 2019-11-27 | Handle `Rvalue::Ref` in one place | Dylan MacKenzie | -71/+106 | |
| 2019-11-27 | Use type-based qualification for statics | Dylan MacKenzie | -3/+4 | |
| 2019-11-27 | Add `#![feature(matches_macro)]` | Dylan MacKenzie | -0/+1 | |
| 2019-11-27 | rustc: move debug info from LocalDecl and UpvarDecl into a dedicated ↵ | Eduard-Mihai Burtescu | -201/+355 | |
| VarDebugInfo. | ||||
| 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 | -2/+42 | |
| 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-27 | Auto merge of #66677 - wesleywiser:fix_const_prop_alloc_id_ice, r=oli-obk | bors | -28/+46 | |
| [const prop] Fix "alloc id without corresponding allocation" ICE r? @oli-obk | ||||
| 2019-11-26 | Fix spelling typos | Brian Wignall | -5/+5 | |
| 2019-11-27 | Auto merge of #66794 - tmandry:rollup-99qrpr0, r=tmandry | bors | -32/+29 | |
| Rollup of 14 pull requests Successful merges: - #66128 (alloc: Add new_zeroed() versions like new_uninit().) - #66661 (Add riscv64gc-unknown-linux-gnu target) - #66663 (Miri: print leak report even without tracing) - #66711 (Add hardware floating point features to aarch64-pc-windows-msvc) - #66713 (introduce a target to build the kernel of the unikernel HermitCore) - #66717 (tidy: Accommodate rustfmt's preferred layout of stability attributes) - #66719 (Store pointer width as u32 on Config) - #66720 (Move ErrorReported to rustc_errors) - #66737 (Error codes cleanup) - #66754 (Various tweaks to diagnostic output) - #66763 (Minor edit for documentation-tests.md that increases clarity) - #66779 (follow the same function order in the trait) - #66786 (Add wildcard test for const_if_match) - #66788 (Allow `Unreachable` terminators through `min_const_fn` checks) Failed merges: r? @ghost | ||||
| 2019-11-26 | Rollup merge of #66788 - ecstatic-morse:const-fn-unreachable, r=Centril | Tyler Mandry | -0/+3 | |
| Allow `Unreachable` terminators through `min_const_fn` checks Resolves #66756. This allows `Unreachable` terminators through the `min_const_fn` checks if `#![feature(const_if_match)]` is enabled. We could probably just allow them with no feature flag, but it seems okay to be conservative here. r? @oli-obk | ||||
| 2019-11-26 | Rollup merge of #66754 - estebank:rustdoc-capitalization, r=Dylan-DPC | Tyler Mandry | -19/+8 | |
| Various tweaks to diagnostic output | ||||
