mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Correctly handle comments in attributes in doctests source code
This commit is contained in:
@@ -520,6 +520,8 @@ fn handle_attr(mod_attr_pending: &mut String, source_info: &mut SourceInfo, edit
|
||||
mod_attr_pending.clear();
|
||||
} else if mod_attr_pending.ends_with('\\') {
|
||||
mod_attr_pending.push('n');
|
||||
} else {
|
||||
mod_attr_pending.push_str("\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user