about summary refs log tree commit diff
path: root/compiler/rustc_mir_dataflow/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-10-20 13:02:11 +0000
committerbors <bors@rust-lang.org>2023-10-20 13:02:11 +0000
commit274455a9d1aae26b47d2757cdd41a74ec1b280f9 (patch)
tree6921caa7c394100d2a536efdc7d5706e87af4e49 /compiler/rustc_mir_dataflow/src
parentf31316f7a99785ae6958110af095beadb08038ea (diff)
parent20de5c762db2a1fa637c25bd76772490eecc7a6f (diff)
downloadrust-274455a9d1aae26b47d2757cdd41a74ec1b280f9.tar.gz
rust-274455a9d1aae26b47d2757cdd41a74ec1b280f9.zip
Auto merge of #116965 - estebank:issue-65329, r=cjgillot
Move where doc comment meant as comment check

The new place makes more sense and covers more cases beyond individual statements.

```
error: expected one of `.`, `;`, `?`, `else`, or an operator, found doc comment `//!foo
  --> $DIR/doc-comment-in-stmt.rs:25:22
   |
LL |     let y = x.max(1) //!foo
   |                      ^^^^^^ expected one of `.`, `;`, `?`, `else`, or an operator
   |
help: add a space before `!` to write a regular comment
   |
LL |     let y = x.max(1) // !foo
   |                        +
```

Fix #65329.
Diffstat (limited to 'compiler/rustc_mir_dataflow/src')
0 files changed, 0 insertions, 0 deletions