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:
Dylan DPC 2022-04-09 05:58:46 +02:00 committed by GitHub
commit 8f4680e37c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 1 deletions

View file

@ -0,0 +1,22 @@
// Ensure that empty doc comments don't panic.
/*!
*/
///
///
pub struct Foo;
#[doc = "
"]
pub mod Mod {
//!
//!
}
/**
*/
pub mod Another {
#![doc = "
"]
}