rust/compiler/rustc_mir_transform/src
Matthias Krüger 3e5be57de8
Rollup merge of #101111 - saethlin:better-fnentry-spans, r=RalfJung
Use the declaration's SourceInfo for FnEntry retags, not the outermost

This addresses a long-standing `// FIXME` in the pass that adds retags.

The changes to Miri's UI tests will look like this:
```
   --> $DIR/aliasing_mut1.rs:LL:CC
    |
 LL | pub fn safe(_x: &mut i32, _y: &mut i32) {}
<   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not granting access to tag <TAG> because incompatible item [Unique for <TAG>] is protected by call ID
>   |                           ^^ not granting access to tag <TAG> because incompatible item [Unique for <TAG>] is protected by call ID
    |
```

r? ````@RalfJung````
2022-08-29 06:34:48 +02:00
..
coverage Rollup merge of #99027 - tmiasko:basic-blocks, r=oli-obk 2022-08-29 06:34:43 +02:00
inline Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
abort_unwinding_calls.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
add_call_guards.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
add_moves_for_packed_drops.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
add_retag.rs Use the declaration's SourceInfo for FnEntry retags, not the outermost 2022-08-28 11:40:10 -04:00
check_const_item_mutation.rs lint: LintDiagnosticBuilder into rustc_errors 2022-07-05 16:00:20 +01:00
check_packed_ref.rs Remove erroneous E0133 code from an error message. 2022-07-26 12:54:24 +10:00
check_unsafety.rs update comment 2022-08-02 18:55:43 -04:00
cleanup_post_borrowck.rs Add option to mir::MutVisitor to not invalidate CFG. 2022-08-09 01:51:10 -07:00
const_debuginfo.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
const_goto.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
const_prop_lint.rs Rollup merge of #99027 - tmiasko:basic-blocks, r=oli-obk 2022-08-29 06:34:43 +02:00
const_prop.rs Rollup merge of #99027 - tmiasko:basic-blocks, r=oli-obk 2022-08-29 06:34:43 +02:00
dead_store_elimination.rs Make MIR basic blocks field public 2022-07-07 08:11:49 +02:00
deaggregator.rs Make MIR basic blocks field public 2022-07-07 08:11:49 +02:00
deduplicate_blocks.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
deref_separator.rs Elide storage markers when elaborating deref projections 2022-08-23 10:08:48 +02:00
dest_prop.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
dump_mir.rs Inline on_mir_pass and add inline to dump_mir 2021-10-14 15:26:59 -05:00
early_otherwise_branch.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
elaborate_box_derefs.rs Elaborate all box dereferences in ElaborateBoxDerefs 2022-08-25 10:38:00 +02:00
elaborate_drops.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
ffi_unwind_calls.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
function_item_references.rs Refactor call terminator to always hold a destination place 2022-05-23 17:49:04 -04:00
generator.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
inline.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
instcombine.rs Make MIR basic blocks field public 2022-07-07 08:11:49 +02:00
lib.rs Adjust cfgs 2022-08-12 16:28:15 -04:00
lower_intrinsics.rs Make MIR basic blocks field public 2022-07-07 08:11:49 +02:00
lower_slice_len.rs lint: add bad opt access internal lint 2022-07-27 11:24:27 +01:00
marker.rs Add pass for simple phase change 2021-12-02 17:31:38 -08:00
match_branches.rs Make MIR basic blocks field public 2022-07-07 08:11:49 +02:00
multiple_return_terminators.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
normalize_array_len.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
nrvo.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
pass_manager.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
remove_false_edges.rs Separate RemoveFalseEdges from SimplifyBranches 2021-11-30 17:14:48 -08:00
remove_noop_landing_pads.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
remove_storage_markers.rs Make MIR basic blocks field public 2022-07-07 08:11:49 +02:00
remove_uninit_drops.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
remove_unneeded_drops.rs Make MIR basic blocks field public 2022-07-07 08:11:49 +02:00
remove_zsts.rs Make MIR basic blocks field public 2022-07-07 08:11:49 +02:00
required_consts.rs Rename the ConstS::val field as kind. 2022-06-14 13:06:44 +10:00
reveal_all.rs Add option to mir::MutVisitor to not invalidate CFG. 2022-08-09 01:51:10 -07:00
separate_const_switch.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
shim.rs consistently use VTable over Vtable (matching stable stdlib API RawWakerVTable) 2022-07-20 17:12:07 -04:00
simplify_branches.rs Auto merge of #91279 - scottmcm:small-refactor, r=nagisa 2021-12-06 13:04:18 +00:00
simplify_comparison_integral.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
simplify_try.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
simplify.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
uninhabited_enum_branching.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
unreachable_prop.rs Fix typo in UnreachableProp 2022-08-23 08:18:18 +02:00