Rollup merge of #95804 - GuillaumeGomez:empty-doc-comment-with-backline, r=notriddle
rustdoc: Fix empty doc comment with backline ICE Fixes #95800. r? ```@notriddle```
This commit is contained in:
commit
8f4680e37c
2 changed files with 26 additions and 1 deletions
22
src/test/rustdoc/empty-doc-comment.rs
Normal file
22
src/test/rustdoc/empty-doc-comment.rs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
// Ensure that empty doc comments don't panic.
|
||||
|
||||
/*!
|
||||
*/
|
||||
|
||||
///
|
||||
///
|
||||
pub struct Foo;
|
||||
|
||||
#[doc = "
|
||||
"]
|
||||
pub mod Mod {
|
||||
//!
|
||||
//!
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
pub mod Another {
|
||||
#![doc = "
|
||||
"]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue