diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2018-01-09 11:55:28 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2018-01-22 15:24:31 +0530 |
| commit | d44910ceeb03b053a8ff641395c4aff505caaaa6 (patch) | |
| tree | c0c77f7bdf955f33a4a6c2ae40f03395b378db0a /src | |
| parent | 28805fd53e0fcff3e552e1fb90f8ab20bab68c5b (diff) | |
| download | rust-d44910ceeb03b053a8ff641395c4aff505caaaa6.tar.gz rust-d44910ceeb03b053a8ff641395c4aff505caaaa6.zip | |
Use the registered def id (makes enum variants link to the enum page instead of not at all)
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 4bc7b81b3f6..97b60e931bc 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -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(); |
