Skip to content

Commit d44910c

Browse files
committed
Use the registered def id (makes enum variants link to the enum page instead of not at all)
1 parent 28805fd commit d44910c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -975,8 +975,8 @@ impl Clean<Attributes> for [ast::Attribute] {
975975
};
976976

977977

978-
register_def(cx, def);
979-
attrs.links.push((link, def.def_id()));
978+
let id = register_def(cx, def);
979+
attrs.links.push((link, id));
980980
}
981981

982982
cx.sess().abort_if_errors();

0 commit comments

Comments
 (0)