Rollup merge of #112205 - GuillaumeGomez:double-hyphen-to-dash, r=notriddle

Add rustdoc test for double-hyphen to dash doc comment conversion

Fixes https://github.com/rust-lang/rust/issues/64081.

This PR adds a regression test for #64081 so the issue can be closed.

r? `@notriddle`
This commit is contained in:
Matthias Krüger 2023-06-02 18:12:46 +02:00 committed by GitHub
commit 5397b31744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,9 @@
// This test ensures that `--` (double-hyphen) is correctly converted into `` (dash).
#![crate_name = "foo"]
// @has 'foo/index.html' '//*[@class="desc docblock-short"]' ''
// @has 'foo/struct.Bar.html' '//*[@class="docblock"]' ''
/// --
pub struct Bar;