mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 14:57:14 +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);
|
||||
attrs.links.push((link, def.def_id()));
|
||||
let id = register_def(cx, def);
|
||||
attrs.links.push((link, id));
|
||||
}
|
||||
|
||||
cx.sess().abort_if_errors();
|
||||
|
Loading…
Reference in New Issue
Block a user