12

Github shrink doctree::Module by tdelabro · Pull Request #84763 · rust-lang/rust...

 3 years ago
source link: https://github.com/rust-lang/rust/pull/84763
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Contributor

Author

tdelabro commented 12 days ago

edited

So I went with a provisional change to hir::map and now it's all good, except for one test: src/test/rustdoc/redirect-rename.rs.

On solution that come to my mind is to store a field renamed: Option<Symbol> into Module, and have the name method return self.renamed.unwrap_or_else(tcx.hir().name(self.id)). But there is maybe a smart workaround I don't see here that allow us not to store anything in Module


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK