mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 23:06:23 +00:00
Use the registered def id (makes enum variants link to the enum page instead of not at all)
This commit is contained in:
parent
28805fd53e
commit
d44910ceeb
@ -975,8 +975,8 @@ impl Clean<Attributes> for [ast::Attribute] {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
register_def(cx, def);
|
let id = register_def(cx, def);
|
||||||
attrs.links.push((link, def.def_id()));
|
attrs.links.push((link, id));
|
||||||
}
|
}
|
||||||
|
|
||||||
cx.sess().abort_if_errors();
|
cx.sess().abort_if_errors();
|
||||||
|
Loading…
Reference in New Issue
Block a user