]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #102639 - nnethercote:improve-spans-splitting, r=Aaron1011
authorMatthias Krüger <matthias.krueger@famsik.de>
Tue, 4 Oct 2022 04:14:13 +0000 (06:14 +0200)
committerGitHub <noreply@github.com>
Tue, 4 Oct 2022 04:14:13 +0000 (06:14 +0200)
Improve spans when splitting multi-char operator tokens for proc macros.

When a two-char (or three-char) operator token is split into single-char operator tokens before being passed to a proc macro, the single-char tokens are given the original span of length two (or three). This PR gives them more accurate spans.

r? `@Aaron1011`
cc `@petrochenkov`


Trivial merge