• A
    Fix spurious 'value moved here in previous iteration of loop' messages · 953104e6
    Aaron Hill 提交于
    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.
    953104e6
issue-46099-move-in-macro.rs 296 字节