diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-10-03 20:06:30 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-10-08 00:29:34 -0400 |
| commit | fa1b15f6279a95923b8a19046f45f27f243d49d2 (patch) | |
| tree | de8765437d0af99459b288bdb1e2c5810fb67a4e /compiler/rustc_codegen_llvm/src | |
| parent | 4437b4b1509c3c15b41a05489c4bddd2fe30e33f (diff) | |
| download | rust-fa1b15f6279a95923b8a19046f45f27f243d49d2.tar.gz rust-fa1b15f6279a95923b8a19046f45f27f243d49d2.zip | |
Preserve the parent module of `DocFragment`s
- Add `parent_module` to `DocFragment` - Require the `parent_module` of the item being inlined - Preserve the hir_id for ExternCrates so rustdoc can find the parent module later - Take an optional `parent_module` for `build_impl` and `merge_attrs`. Preserve the difference between parent modules for each doc-comment. - Support arbitrarily many re-exports in from_ast. In retrospect this is probably not used and could be simplified to a single `Option<(Attrs, DefId)>`. - Don't require the parent_module for all `impl`s, just inlined items In particular, this will be `None` whenever the attribute is not on a re-export. - Only store the parent_module, not the HirId When re-exporting a re-export, the HirId is not available. Fortunately, `collect_intra_doc_links` doesn't actually need all the info from a HirId, just the parent module.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
