Github shrink doctree::Module by tdelabro · Pull Request #84763 · rust-lang/rust...
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.
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
-
33
Shrink Me - 图片压缩工具 - NEXT
-
36
One of the oldest ideas in Western political thought is the analogy between the individual human and the body politic – think only of Abraham Bosse’s j...
-
8
Home / Articles / Understanding flex-grow, flex-shrink, and flex-basis Author
-
10
Pass around Symbols instead of Idents in doctree #79623
-
7
New issue Shrink the CrateStore dynamic interface. #87117
-
3
Copy link Contributor YohDeadfall commented
-
8
Conversation Copy link Member
-
9
Copy link Collaborator
-
4
Conversation Contributor...
-
3
Conversation Shrink the spans of clippy::missing_*_doc to match missing_docs
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK