Skip to content

Fix pretty-printing of $crate (take 4)#62393

Merged
bors merged 4 commits intorust-lang:masterfrom
petrochenkov:notto-disu
Jul 10, 2019
Merged

Fix pretty-printing of $crate (take 4)#62393
bors merged 4 commits intorust-lang:masterfrom
petrochenkov:notto-disu

Conversation

@petrochenkov
Copy link
Copy Markdown
Contributor

Pretty-print $crate as crate or crate_name in unstructured tokens like a $crate c in foo!(a $crate c), but only if those tokens are printed as a part of AST pretty-printing, rather than as a standalone token stream.

Fixes #62325
Previous iterations - #56647, #57155, #57915.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

$crate incorrectly substituted in attribute macro invocation containing bang macro invocation

6 participants