diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-06-21 21:27:34 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-06-21 21:27:34 -0400 |
| commit | 953104e60cac57929846a3c3b776f12135c4b398 (patch) | |
| tree | 56e344f1b629e07ac3457f6197cc918134c982cf /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 1a4e2b6f9c75a0e21722c88a0e3b610d6ffc3ae3 (diff) | |
| download | rust-953104e60cac57929846a3c3b776f12135c4b398.tar.gz rust-953104e60cac57929846a3c3b776f12135c4b398.zip | |
Fix spurious 'value moved here in previous iteration of loop' messages
Fixes #46099 Previously, we would check the 'move' and 'use' spans to see if we should emit this message. However, this can give false positives when macros are involved, since two distinct expressions may end up with the same span. Instead, we check the actual MIR `Location`, which eliminates false positives.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
