Use the registered def id (makes enum variants link to the enum page instead of not at all)

This commit is contained in:
Manish Goregaokar 2018-01-09 11:55:28 +05:30
parent 28805fd53e
commit d44910ceeb
1 changed files with 2 additions and 2 deletions

View File

@ -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();