Closed
Description
Sometimes, using the html macro inside an impl can cause rustc to crash with a stack overflow. A simplified example that reproduces the crash is
use maud::{html, Markup, Render, DOCTYPE};
pub struct Theme;
impl Render for Theme {
fn render(&self) -> Markup {
html! {}
}
}
pub struct Note;
impl Note {
pub fn render_html(&self) -> Markup {
html! {
(DOCTYPE)
}
}
}