about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-06-23 03:16:26 +0200
committerGitHub <noreply@github.com>2020-06-23 03:16:26 +0200
commitb3d99cb63f3125a7b7a5c7cdaa99b7561517d11b (patch)
treefb2f3925ed6bc4f04acd83dcef22c85f2592180d /src/libstd/sys/unix/stack_overflow.rs
parent490d820a25a37369f67a44fecf3805560835c527 (diff)
parent953104e60cac57929846a3c3b776f12135c4b398 (diff)
downloadrust-b3d99cb63f3125a7b7a5c7cdaa99b7561517d11b.tar.gz
rust-b3d99cb63f3125a7b7a5c7cdaa99b7561517d11b.zip
Rollup merge of #73600 - Aaron1011:fix/move-in-macro, r=ecstatic-morse
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