diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index f5cd298dac4..7d33cf21013 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -2284,13 +2284,6 @@ impl Clean for (&hir::MacroDef<'_>, Option) { let vis = item.vis.clean(cx); let def_id = item.def_id.to_def_id(); - // Since this occurs in `clean()`, there are no cache entries for vis.print_with_space, - // so no links can be made. - // - // It's important that we maintain this invariant, because this is supposed to generate - // source code, not HTML. - assert!(cx.cache.paths.is_empty()); - if matchers.len() <= 1 { format!( "{}macro {}{} {{\n ...\n}}",