]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #91575 - compiler-errors:issue-91556, r=cjgillot
authorMatthias Krüger <matthias.krueger@famsik.de>
Fri, 10 Dec 2021 21:40:35 +0000 (22:40 +0100)
committerGitHub <noreply@github.com>
Fri, 10 Dec 2021 21:40:35 +0000 (22:40 +0100)
commit6cfe9af6a074b842198176d21170e49ee0cc6add
tree72d0adfc798b935a639b2cff690ada6975cdcd88
parentca352c45222dfc55c478d853b7057fcac1bd39ac
parent99bd24e9a3a812fcbaa82c3465f28dbe7a60667c
Rollup merge of #91575 - compiler-errors:issue-91556, r=cjgillot

Fix ICE on format string of macro with secondary-label

This generalizes the fix #86104 to also correctly skip `Span::from_inner` for the `secondary_label` of a format macro parsing error as well.

We can alternatively skip the `span_label` diagnostic call for the secondary label as well, since that label probably only makes sense when the _proper_ span is computed.

Fixes #91556