]> git.lizzy.rs Git - rust.git/commit
Auto merge of #53002 - QuietMisdreavus:brother-may-i-have-some-loops, r=pnkfelix
authorbors <bors@rust-lang.org>
Mon, 6 Aug 2018 01:53:58 +0000 (01:53 +0000)
committerbors <bors@rust-lang.org>
Mon, 6 Aug 2018 01:53:58 +0000 (01:53 +0000)
commitaa1e6db70900cf5d11a843bc4234de0548677aba
tree84330e513f53e39adc19ecae49a64c843a658a44
parente9fa9f5a6a7dede07b71987b893065f290b7acf7
parent7e77d19905ebfcc76c19301587baf2c53acf2fd9
Auto merge of #53002 - QuietMisdreavus:brother-may-i-have-some-loops, r=pnkfelix

make `everybody_loops` preserve item declarations

First half of https://github.com/rust-lang/rust/issues/52545.

`everybody_loops` is used by rustdoc to ensure we don't contain erroneous references to platform APIs if one of its uses is pulled in by `#[doc(cfg)]`. However, you can also implement traits for public types inside of functions. This is used by Diesel (probably others, but they were the example that was reported) to get around a recent macro hygiene fix, which has caused their crate to fail to document. While this won't make the traits show up in documentation (that step comes later), it will at least allow files to be generated.
src/librustc_driver/lib.rs
src/librustc_driver/pretty.rs