about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-10-20 02:54:45 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-10-20 02:54:45 +0000
commit20de5c762db2a1fa637c25bd76772490eecc7a6f (patch)
tree46d9c6ebf07c1ea86555ed1208fb8231b68b6cc4 /compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
parentcc705b801236d064260bb67b3a0a25e4747fa7ec (diff)
downloadrust-20de5c762db2a1fa637c25bd76772490eecc7a6f.tar.gz
rust-20de5c762db2a1fa637c25bd76772490eecc7a6f.zip
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_codegen_llvm/src/coverageinfo/mod.rs')
0 files changed, 0 insertions, 0 deletions