diff options
| author | bors <bors@rust-lang.org> | 2020-12-12 19:41:56 +0000 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-12-12 19:41:56 +0000 | 
| commit | 7efc097c4fe6e97f54a44cee91c56189e9ddb41c (patch) | |
| tree | f8094e561a815df3c428d239f0e35d1f446325eb /compiler/rustc_macros | |
| parent | 388eb24b6c479088a83c1b094d79221a32dfc7ff (diff) | |
| parent | 9684557c8f1b9fd55cb6fcc27533044022b0ed22 (diff) | |
| download | rust-7efc097c4fe6e97f54a44cee91c56189e9ddb41c.tar.gz rust-7efc097c4fe6e97f54a44cee91c56189e9ddb41c.zip | |
Auto merge of #79957 - jyn514:smaller-span, r=GuillaumeGomez
[rustdoc] Calculate span information on demand instead of storing it ahead of time This brings `size_of<clean::types::Span>()` down from over 100 bytes (!!) to only 12, the same as rustc. It brings `Item` down even more, from `784` to `680`. ~~TODO: I need to figure out how to do this for the JSON backend too. That uses `From` impls everywhere, which don't allow passing in the `Session` as an argument. `@P1n3appl3,` `@tmandry,` maybe one of you have ideas?~~ Figured it out, fortunately only two functions needed to be changed. I like the `convert_x()` format better than `From` everywhere but I'm open to feedback. Helps with #79103
Diffstat (limited to 'compiler/rustc_macros')
0 files changed, 0 insertions, 0 deletions
