Skip to content

Commit

Permalink
rustc_mir: don't throw away inlined locals' spans.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed Feb 9, 2020
1 parent 650412f commit c43d529
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/librustc_mir/transform/inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,6 @@ impl Inliner<'tcx> {
let mut local = callee_body.local_decls[loc].clone();

local.source_info.scope = scope_map[local.source_info.scope];
local.source_info.span = callsite.source_info.span;

let idx = caller_body.local_decls.push(local);
local_map.push(idx);
Expand Down

0 comments on commit c43d529

Please sign in to comment.