Correctly handle #[doc(alias = "...")] attribute on inlined reexports#153136
Correctly handle #[doc(alias = "...")] attribute on inlined reexports#153136rust-bors[bot] merged 3 commits intorust-lang:mainfrom
#[doc(alias = "...")] attribute on inlined reexports#153136Conversation
|
|
I agree with 1 and 2. As for 3, that's how we usually do: we give the same name as the test to the auxiliary one and rename it on import. |
…l be forced to take them into account when inlining
|
We already have a test for
I'll open an issue once this PR is merged to check them and add a regression test if they don't have one already. I also improved the code as you suggested (very good idea, love when code enforces that nothing is forgotten :3 ). Does that sound ok to you @lolbinarycat ? |
This comment has been minimized.
This comment has been minimized.
5ea7350 to
0ee5d47
Compare
|
Everything looks good, addressing the rest of those in a followup sounds fine to me, just one final nit: Once that's fixed, you can r=me. |
|
Arf, forgot to add it indeed. Fixing that right away. |
0ee5d47 to
ab9e1da
Compare
|
@bors r+ |
… r=lolbinarycat Correctly handle `#[doc(alias = "...")]` attribute on inlined reexports Fixes rust-lang#152939. During the doc attributing migration to the new API, this information got lost. At least now we have a test for it. :) r? @lolbinarycat
… r=lolbinarycat Correctly handle `#[doc(alias = "...")]` attribute on inlined reexports Fixes rust-lang#152939. During the doc attributing migration to the new API, this information got lost. At least now we have a test for it. :) r? @lolbinarycat
…uwer Rollup of 12 pull requests Successful merges: - #153211 (`rust-analyzer` subtree update) - #149027 (Improve cross-crate trait impl param mismatch suggestions ) - #152730 (add field representing types) - #153136 (Correctly handle `#[doc(alias = "...")]` attribute on inlined reexports) - #152165 (Normalize capture place `ty`s to prevent ICE) - #152615 (refactor 'valid for read/write' definition: exclude null) - #153109 (Fix LegacyKeyValueFormat report from docker build: aarch64-gnu-debug) - #153172 (Fix comment about placeholders) - #153187 (Fix ICE when macro-expanded extern crate shadows std) - #153190 (Don't allow subdiagnostic to use variables from their parent) - #153200 (Remove redundant clone) - #153216 (mark two polonius tests as known-bug)
Rollup merge of #153136 - GuillaumeGomez:reexport-doc-alias, r=lolbinarycat Correctly handle `#[doc(alias = "...")]` attribute on inlined reexports Fixes #152939. During the doc attributing migration to the new API, this information got lost. At least now we have a test for it. :) r? @lolbinarycat
…uwer Rollup of 12 pull requests Successful merges: - rust-lang/rust#153211 (`rust-analyzer` subtree update) - rust-lang/rust#149027 (Improve cross-crate trait impl param mismatch suggestions ) - rust-lang/rust#152730 (add field representing types) - rust-lang/rust#153136 (Correctly handle `#[doc(alias = "...")]` attribute on inlined reexports) - rust-lang/rust#152165 (Normalize capture place `ty`s to prevent ICE) - rust-lang/rust#152615 (refactor 'valid for read/write' definition: exclude null) - rust-lang/rust#153109 (Fix LegacyKeyValueFormat report from docker build: aarch64-gnu-debug) - rust-lang/rust#153172 (Fix comment about placeholders) - rust-lang/rust#153187 (Fix ICE when macro-expanded extern crate shadows std) - rust-lang/rust#153190 (Don't allow subdiagnostic to use variables from their parent) - rust-lang/rust#153200 (Remove redundant clone) - rust-lang/rust#153216 (mark two polonius tests as known-bug)
Fixes #152939.
During the doc attributing migration to the new API, this information got lost. At least now we have a test for it. :)
r? @lolbinarycat