León Orell Valerian Liehr d7d7725b8c
rustdoc: Fully escape link section and export name
Escape "special characters" (e.g., double quotes `"` and line breaks `\n`).
Escape HTML.

Lastly, add regression tests and clean up existing tests.
2025-09-25 11:30:58 +02:00

12 lines
207 B
Rust

#[unsafe(no_mangle)]
pub fn no_mangle() {}
#[unsafe(link_section = ".here")]
pub fn link_section() {}
#[unsafe(export_name = "exonym")]
pub fn export_name() {}
#[non_exhaustive]
pub struct NonExhaustive;