]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #82295 - jyn514:feature-gate, r=Manishearth
authorbors <bors@rust-lang.org>
Mon, 22 Feb 2021 00:04:09 +0000 (00:04 +0000)
committerbors <bors@rust-lang.org>
Mon, 22 Feb 2021 00:04:09 +0000 (00:04 +0000)
commit24bfcee941d9f6d9900d3a02b12f6b14d00e0ffe
tree0a27d2531afd1353ecb92eea4b4d406aa3c635b5
parent3e826bb11228508fbe749e594038d6727208aa94
parentfdb32e997bef725f538f66dcfd96b1c1e51d2c56
Auto merge of #82295 - jyn514:feature-gate, r=Manishearth

[intra-doc links] Don't check feature gates of items re-exported across crates

It should be never break another crate to re-export a public item.

Note that this doesn't check the feature gate at
*all* for other crates:

- Feature-gates aren't currently serialized, so the only way to check
  the gate is with ad-hoc attribute checking.
- Checking the feature gate twice (once when documenting the original
  crate and one when documenting the current crate) seems not great.

This should still catch using the feature most of the time though, since
people tend to document their own crates.

Closes https://github.com/rust-lang/rust/issues/82284.

r? `@Manishearth`
src/librustdoc/passes/collect_intra_doc_links.rs