rust/src/librustc_mir/dataflow
Tyler Mandry bbcf66a4a1
Rollup merge of #65389 - ecstatic-morse:zero-sized-array-no-drop, r=eddyb
Return `false` from `needs_drop` for all zero-sized arrays.

Resolves #65348.

This changes the result of the `needs_drop` query from `true` to `false` for types such as `[Box<i32>; 0]`. I believe this change to be sound because a zero-sized array can never actually hold a value. This is an elegant way of resolving #65348 and #64945, but obviously it has much broader implications.
2019-10-15 16:07:53 -07:00
..
generic Update example table to match current output 2019-10-01 15:23:04 -07:00
impls Remove special case for zero-sized arrays from indirectly mut locals 2019-10-13 14:39:57 -07:00
move_paths remove indexed_vec re-export from rustc_data_structures 2019-09-29 16:48:31 +00:00
at_location.rs remove bit_set re-export from rustc_data_structures 2019-09-29 16:11:30 +00:00
drop_flag_effects.rs Remove global_tcx from TyCtxt 2019-09-27 13:33:48 -04:00
generic.rs Add graphviz debug output for generic dataflow 2019-09-30 11:24:27 -07:00
graphviz.rs Auto merge of #61787 - ecstatic-morse:dataflow-split-block-sets, r=pnkfelix 2019-06-24 20:44:18 +00:00
mod.rs ast: remove implicit pprust dependency via Display. 2019-10-13 06:58:51 +02:00