mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
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:
parent
6516f9408e
commit
21bf8af873
@ -2284,13 +2284,6 @@ impl Clean<Item> for (&hir::MacroDef<'_>, Option<Symbol>) {
|
|||||||
let vis = item.vis.clean(cx);
|
let vis = item.vis.clean(cx);
|
||||||
let def_id = item.def_id.to_def_id();
|
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 {
|
if matchers.len() <= 1 {
|
||||||
format!(
|
format!(
|
||||||
"{}macro {}{} {{\n ...\n}}",
|
"{}macro {}{} {{\n ...\n}}",
|
||||||
|
Loading…
Reference in New Issue
Block a user