| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2021-01-08 | Change wording of note | Aaron Hill | -1/+1 | |
| 2021-01-08 | Explain method-call move errors in loops | Aaron Hill | -74/+68 | |
| PR #73708 added a more detailed explanation of move errors that occur due to a call to a method that takes `self`. This PR extends that logic to work when a move error occurs due to a method call in the previous iteration of a loop. | ||||
| 2021-01-08 | Rollup merge of #80521 - richkadel:llvm-coverage-counters-2.4.0, r=wesleywiser | Yuki Okushi | -0/+9 | |
| MIR Inline is incompatible with coverage Fixes: #80060 Fixed by disabling inlining if `-Zinstrument-coverage` is set. The PR also adds additional use cases to the coverage test for doctests. r? `@wesleywiser` cc: `@tmandry` | ||||
| 2021-01-07 | Auto merge of #80648 - Aaron1011:expn-data-private, r=petrochenkov | bors | -4/+4 | |
| Make `ExpnData` fields `krate` and `orig_id` private These fields are only used by hygiene serialized, and should not be accessed by anything outside of `rustc_span`. | ||||
| 2021-01-05 | Remove a FIXME and explain the decision | oli | -1/+2 | |
| 2021-01-04 | Do not run const prop on the `mir_for_ctfe` of `const fn` | oli | -19/+34 | |
| 2021-01-04 | No doc comments on expressions | oli | -3/+3 | |
| 2021-01-04 | Small comment adjustments | oli | -0/+3 | |
| 2021-01-04 | Move MIR body loading to a machine function | oli | -10/+34 | |
| 2021-01-04 | Adjust imports | oli | -3/+3 | |
| 2021-01-04 | Document all the things | oli | -0/+13 | |
| 2021-01-04 | Polymorphization should look at the runtime MIR of `const fn` | oli | -5/+4 | |
| 2021-01-04 | Simplify the `optimize_mir` query | oli | -17/+9 | |
| 2021-01-04 | Differentiate between the availability of ctfe MIR and runtime MIR | oli | -17/+18 | |
| 2021-01-04 | Keep an unoptimized duplicate of `const fn` around | oli | -3/+80 | |
| This allows CTFE to reliably detect UB, as otherwise optimizations may hide UB. | ||||
| 2021-01-04 | Stop optimizing promoteds | oli | -1/+0 | |
| 2021-01-04 | Auto merge of #80624 - RalfJung:place-ref, r=oli-obk | bors | -93/+45 | |
| use PlaceRef more consistently instead of loosely coupled local+projection Instead of working directly with the `projections` array, use `iter_projections` and `last_projection`. This avoids having to construct new `PlaceRef` from the pieces everywhere. I only did this for a few files, to see how people think about this. If y'all are happy with this, I'll open an E-mentor issue to complete this. I grepped for `Place::ty_from` to find the places that need adjusting -- this could miss some, but I am not sure what else to grep for. | ||||
| 2021-01-04 | Inlining enabled by -mir-opt-level > 1 is incompatible with coverage | Rich Kadel | -0/+9 | |
| Fixes: #80060 Also adds additional test cases for coverage of doctests. | ||||
| 2021-01-04 | Auto merge of #80418 - oli-obk:this_could_have_been_so_simple, r=RalfJung | bors | -5/+98 | |
| Allow references to interior mutable data behind a feature gate supercedes #80373 by simply not checking for interior mutability on borrows of locals that have `StorageDead` and thus can never be leaked to the final value of the constant tracking issue: https://github.com/rust-lang/rust/issues/80384 r? `@RalfJung` | ||||
| 2021-01-03 | Stylistic fixes to diagnostic messages | oli | -3/+3 | |
| 2021-01-03 | Refactor the non-transient cell borrow error diagnostic | oli | -3/+22 | |
| 2021-01-03 | Dangling pointers point to everything and nothing | Oli Scherer | -2/+1 | |
| Co-authored-by: Ralf Jung <post@ralfj.de> | ||||
| 2021-01-03 | Grammar fixes | Oli Scherer | -1/+1 | |
| Co-authored-by: Ralf Jung <post@ralfj.de> | ||||
| 2021-01-03 | Make `ExpnData` fields `krate` and `orig_id` private | Aaron Hill | -4/+4 | |
| These fields are only used by hygiene serialized, and should not be accessed by anything outside of `rustc_span`. | ||||
| 2021-01-03 | Update now-more-precise operation with a preciser message | oli | -2/+2 | |
| 2021-01-03 | Apply suggestions from code review | Oli Scherer | -4/+9 | |
| comment nits Co-authored-by: Ralf Jung <post@ralfj.de> | ||||
| 2021-01-03 | use PlaceRef more consistently instead of loosely coupled local+projection | Ralf Jung | -93/+45 | |
| 2021-01-03 | remove redundant closures (clippy::redundant_closure) | Matthias Krüger | -6/+6 | |
| 2021-01-02 | use hir::Place instead of Symbol in closure_kind_origin | Roxane | -4/+4 | |
| 2021-01-02 | reduce borrowing and (de)referencing around match patterns ↵ | Matthias Krüger | -3/+3 | |
| (clippy::match_ref_pats) | ||||
| 2021-01-01 | Don't mix feature gates and hard errors, decide on one per op and stick with it | oli | -15/+18 | |
| 2021-01-01 | Reinstate the error-code error over the feature gate error | oli | -9/+15 | |
| 2021-01-01 | Enhance some comments | oli | -0/+2 | |
| 2021-01-01 | Fix cell checks in const fn | oli | -0/+7 | |
| 2021-01-01 | The proper name for the rule is "enclosing scope" | oli | -1/+1 | |
| 2021-01-01 | Allow references to interior mutable data behind a feature gate | oli | -1/+53 | |
| 2020-12-31 | remove move_val_init leftovers | Ralf Jung | -8/+0 | |
| 2020-12-30 | Rollup merge of #80491 - RalfJung:dangling-of-val, r=oli-obk | Mara Bos | -3/+5 | |
| Miri: make size/align_of_val work for dangling raw ptrs This is needed for https://github.com/rust-lang/rust/issues/80365#issuecomment-752128105. r? `@oli-obk` | ||||
| 2020-12-30 | Rollup merge of #80458 - RalfJung:promotion-refactor, r=oli-obk | Mara Bos | -99/+115 | |
| Some Promotion Refactoring Clean up promotion a bit: * factor out some common code * more exhaustive matches This *should* not break anything... the only potentially-breaking change is that `BorrowKind::Shallow | BorrowKind::Unique` are now rejected for internal references. r? ``@oli-obk`` | ||||
| 2020-12-30 | Auto merge of #80510 - JohnTitor:rollup-gow7y0l, r=JohnTitor | bors | -12/+8 | |
| Rollup of 7 pull requests Successful merges: - #80185 (Fix ICE when pointing at multi bytes character) - #80260 (slightly more typed interface to panic implementation) - #80311 (Improvements to NatVis support) - #80337 (Use `desc` as a doc-comment for queries if there are no doc comments) - #80381 (Revert "Cleanup markdown span handling") - #80492 (remove empty wraps, don't return Results from from infallible functions) - #80509 (where possible, pass slices instead of &Vec or &String (clippy::ptr_arg)) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup | ||||
| 2020-12-30 | Auto merge of #79684 - usbalbin:const_copy, r=oli-obk | bors | -0/+23 | |
| Make copy[_nonoverlapping] const Constifies * `intrinsics::copy` and `intrinsics::copy_nonoverlapping` * `ptr::read` and `ptr::read_unaligned` * `*const T::read` and `*const T::read_unaligned` * `*mut T::read` and `*mut T::read_unaligned` * `MaybeUninit::assume_init_read` | ||||
| 2020-12-30 | where possible, pass slices instead of &Vec or &String (clippy::ptr_arg) | Matthias Krüger | -12/+8 | |
| 2020-12-29 | Miri: make size/align_of_val work for dangling raw ptrs | Ralf Jung | -3/+5 | |
| 2020-12-29 | Remove `compile-fail` test suite | Vadim Petrochenkov | -1/+1 | |
| 2020-12-29 | fix a comment | Ralf Jung | -1/+1 | |
| 2020-12-29 | Auto merge of #79084 - simonvandel:instcombine-perf, r=oli-obk | bors | -4/+24 | |
| Small perf changes for InstCombine | ||||
| 2020-12-28 | make more matches exhaustive | Ralf Jung | -20/+41 | |
| 2020-12-28 | use exhaustive pattern match to prevent future bugs | Simon Vandel Sillesen | -4/+13 | |
| 2020-12-28 | merge two match'es for more exhaustiveness | Ralf Jung | -39/+41 | |
| 2020-12-28 | promotion: factor some common code into validate_ref | Ralf Jung | -57/+50 | |
