]> git.lizzy.rs Git - rust.git/commit
Simplify `Emitter::fix_multispan_in_std_macros`
authorAnthonyMikh <anthony.mikh@yandex.ru>
Wed, 25 Sep 2019 21:31:16 +0000 (00:31 +0300)
committerGitHub <noreply@github.com>
Wed, 25 Sep 2019 21:31:16 +0000 (00:31 +0300)
commitf93827f9e446e52619953c3ad2aa6604dfc9f986
treec741f63e2f503aa4625231291818510ae793d4dd
parent9b447e2f9fb9b0d3366de90b2de72541b195e99d
Simplify `Emitter::fix_multispan_in_std_macros`

1. Rewrite `if let` into `match` to return earl and avoid indenting giant block
2. Assign `spans_updated` only once
src/librustc_errors/emitter.rs