diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-11-15 11:04:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-15 11:04:37 +0100 |
| commit | 6ca7bc0eb8648abc8673a971c85b777a6bc62e16 (patch) | |
| tree | e41d30f6c079806fa821aaa4bbddf74cb6fd9a5a /src/test/incremental/thinlto | |
| parent | 97d0d8964ecda2830d60f0c46c1ad8de24af539c (diff) | |
| parent | dd6398256ec0bde52722831d6b6cf604c9cdf1ed (diff) | |
| download | rust-6ca7bc0eb8648abc8673a971c85b777a6bc62e16.tar.gz rust-6ca7bc0eb8648abc8673a971c85b777a6bc62e16.zip | |
Rollup merge of #55781 - pnkfelix:issue-54382-more-precise-spans-for-temps-and-their-drops, r=davidtwco
More precise spans for temps and their drops This PR has two main enhancements: 1. when possible during code generation for a statement (like `expr();`), pass along the span of a statement, and then attribute the drops of temporaries from that statement to the statement's end-point (which will be the semicolon if it is a statement that is terminating by a semicolon). 2. when evaluating a block expression into a MIR temp, use the span of the block's tail expression (rather than the span of whole block including its statements and curly-braces) for the span of the temp. Each of these individually increases the precision of our diagnostic output; together they combine to make a much clearer picture about the control flow through the spans. Fix #54382
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
