]> git.lizzy.rs Git - rust.git/commit
Auto merge of #76585 - Aaron1011:ignore-vert-plus, r=petrochenkov
authorbors <bors@rust-lang.org>
Sun, 13 Sep 2020 05:16:36 +0000 (05:16 +0000)
committerbors <bors@rust-lang.org>
Sun, 13 Sep 2020 05:16:36 +0000 (05:16 +0000)
commitdd33766e4a9a918058c3447d42491e874e21f7cc
treedf723bb28d00423ba8732523ffb549277f235f83
parent04b72b469781b811655b0d5eb7d4c3c53fe1241d
parent283d4c4d148c8c53a8b197c4ff0a9f79a1690eb2
Auto merge of #76585 - Aaron1011:ignore-vert-plus, r=petrochenkov

Ignore `|` and `+` tokens during proc-macro pretty-print check

Fixes #76182

This is an alternative to PR #76188

These tokens are not preserved in the AST in certain cases
(e.g. a leading `|` in a pattern or a trailing `+` in a trait bound).

This PR ignores them entirely during the pretty-print/reparse check
to avoid spuriously using the re-parsed tokenstream.
compiler/rustc_parse/src/lib.rs