Skip to content

Commit 21bf8af

Browse files
committed
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.
1 parent 6516f94 commit 21bf8af

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/librustdoc/clean/mod.rs

-7
Original file line numberDiff line numberDiff line change
@@ -2284,13 +2284,6 @@ impl Clean<Item> for (&hir::MacroDef<'_>, Option<Symbol>) {
22842284
let vis = item.vis.clean(cx);
22852285
let def_id = item.def_id.to_def_id();
22862286

2287-
// Since this occurs in `clean()`, there are no cache entries for vis.print_with_space,
2288-
// so no links can be made.
2289-
//
2290-
// It's important that we maintain this invariant, because this is supposed to generate
2291-
// source code, not HTML.
2292-
assert!(cx.cache.paths.is_empty());
2293-
22942287
if matchers.len() <= 1 {
22952288
format!(
22962289
"{}macro {}{} {{\n ...\n}}",

0 commit comments

Comments
 (0)