rust/compiler/rustc_mir/src
Jonas Schievink 9c486882e5
Rollup merge of #78847 - tmiasko:inline-return-place, r=matthewjasper
Assert that a return place is not used for indexing during integration

The inliner integrates call destination place with callee return place
by remapping the local and adding extra projections as necessary.

If a call destination place contains any projections (which is already
possible) and a return place is used in an indexing projection (most
likely doesn't happen yet) the end result would be incorrect.

Add an assertion to ensure that potential issue won't go unnoticed in
the presence of more sophisticated copy propagation scheme.
2020-11-10 14:45:17 +01:00
..
borrow_check Rollup merge of #76468 - SNCPlay42:lifetime-names, r=Mark-Simulacrum 2020-11-09 19:06:39 +01:00
const_eval Rollup merge of #78742 - vn-ki:fix-issue-78655, r=oli-obk 2020-11-05 10:29:59 +01:00
dataflow Fix typos 2020-10-28 19:32:28 +01:00
interpret inliner: Use substs_for_mir_body 2020-11-06 00:00:00 +00:00
monomorphize inliner: Use substs_for_mir_body 2020-11-06 00:00:00 +00:00
transform Rollup merge of #78847 - tmiasko:inline-return-place, r=matthewjasper 2020-11-10 14:45:17 +01:00
util use single char patterns for split() (clippy::single_char_pattern) 2020-11-07 07:27:44 +01:00
lib.rs TypeVisitor: use ControlFlow in rustc_{mir,privacy,traits,typeck} 2020-10-30 12:27:44 +01:00
shim.rs rustc_mir: support MIR-inlining #[track_caller] functions. 2020-10-21 04:43:56 +03:00