Skip to content

Conversation

@dustypomerleau
Copy link
Contributor

Fixes #6281.

Previously, line comments were able to break block comments by essentially commenting out the closing */, resulting in a never-ending comment. This PR splits block comments into a separate repository group to fix this problem.

Since the comment scopes also include ignored parameters and inferred types, I've added the change proposed by @bnjjj in #6317, in order to close #6311 as well.

- prevent line comments inside block comments
- prevent underscore-prefixed functions and macros from receiving comment scope
@matklad
Copy link
Contributor

matklad commented Oct 22, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Oct 22, 2020

@bors bors bot merged commit ab53bb8 into rust-lang:master Oct 22, 2020
@dustypomerleau dustypomerleau deleted the comments branch November 2, 2020 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants