Remove assert that no longer matters

The function `to_src_with_space` doesn't even accept the cache as a parameter,
so it doesn't matter any more what's in it.
This commit is contained in:
Michael Howell 2021-04-16 10:06:48 -07:00
parent 6516f9408e
commit 21bf8af873

View File

@ -2284,13 +2284,6 @@ impl Clean<Item> for (&hir::MacroDef<'_>, Option<Symbol>) {
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}}",