]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #54269 - PramodBisht:issue/53840, r=estebank
authorPietro Albini <pietro@pietroalbini.org>
Tue, 2 Oct 2018 20:54:27 +0000 (22:54 +0200)
committerGitHub <noreply@github.com>
Tue, 2 Oct 2018 20:54:27 +0000 (22:54 +0200)
#53840: Consolidate pattern check errors

#53840  on this PR we are aggregating `cannot bind by-move and by-ref in the same pattern` message present on the different lines into one diagnostic message. Here we are first gathering those `spans` on `vector` then we are throwing them with the help of `MultiSpan`
r? @estebank

Addresses: #53480


Trivial merge