mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Merge commit '37f84c101b
' into sync-from-ra
This commit is contained in:
parent
6502421771
commit
4704881b64
311 changed files with 13700 additions and 9110 deletions
|
@ -61,7 +61,9 @@ impl CommentBlock {
|
|||
let mut blocks = CommentBlock::extract_untagged(text);
|
||||
blocks.retain_mut(|block| {
|
||||
let first = block.contents.remove(0);
|
||||
let Some(id) = first.strip_prefix(&tag) else { return false; };
|
||||
let Some(id) = first.strip_prefix(&tag) else {
|
||||
return false;
|
||||
};
|
||||
|
||||
if block.is_doc {
|
||||
panic!("Use plain (non-doc) comments with tags like {tag}:\n {first}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue