]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #74272 - davidtwco:issue-73626-multiline-mixed-comments, r=Mark-Simul...
authorManish Goregaokar <manishsmail@gmail.com>
Tue, 14 Jul 2020 20:19:32 +0000 (13:19 -0700)
committerGitHub <noreply@github.com>
Tue, 14 Jul 2020 20:19:32 +0000 (13:19 -0700)
commit92e90f943cf6b62346074b3a17669c3a7c1637b4
tree5e2d6ac0731853b1d29b04a41cd834560d3dabdd
parent7b1247c34fe40f397053344b2f98a51fcc45f2a2
parent083c2f6ceb82b75ec04c73f2b39a414985fd9a92
Rollup merge of #74272 - davidtwco:issue-73626-multiline-mixed-comments, r=Mark-Simulacrum

pprust: support multiline comments within lines

Fixes #73626.

This PR adds support to `rustc_ast_pretty` for multiline comments that start and end within a line of source code.

Fun fact: [the commit which added this assert](https://github.com/rust-lang/rust/commit/d12ea3989649616437a7c1434f5c5a6438235eb7) was from 2011!
https://github.com/rust-lang/rust/blob/d12ea3989649616437a7c1434f5c5a6438235eb7/src/comp/pretty/pprust.rs#L1146-L1150