about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-06-21 21:27:34 -0400
committerAaron Hill <aa1ronham@gmail.com>2020-06-21 21:27:34 -0400
commit953104e60cac57929846a3c3b776f12135c4b398 (patch)
tree56e344f1b629e07ac3457f6197cc918134c982cf /src/libstd/sys/unix/stack_overflow.rs
parent1a4e2b6f9c75a0e21722c88a0e3b610d6ffc3ae3 (diff)
downloadrust-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