diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-21 13:41:27 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-21 13:41:27 +0000 |
| commit | b48aba009025701c4adb45e2042f0bcdb9d949a7 (patch) | |
| tree | 9c311ee5e9058a3db66134368c8b84c30ed94f81 /docs/dev | |
| parent | 4402f2b280f58896ed0696f4243d88a58fd970ca (diff) | |
| parent | 8b77e2692cd97552b1b8d66eb51cec69695b3a5b (diff) | |
| download | rust-b48aba009025701c4adb45e2042f0bcdb9d949a7.tar.gz rust-b48aba009025701c4adb45e2042f0bcdb9d949a7.zip | |
Merge #9227
9227: Add a config setting to disable the 'test' cfg in specified crates r=matklad a=lf- If you are opening libcore from rust-lang/rust as opposed to e.g. goto definition from some other crate which would use the sysroot instance of libcore, a `#![cfg(not(test))]` would previously have made all the code excluded from the module tree, breaking the editor experience. Core does not need to ever be edited with `#[cfg(test)]` enabled, as the tests are in another crate. This PR puts in a slight hack that checks for the crate name "core" and turns off `#[cfg(test)]` for that crate. Fixes #9203 Fixes #9226 Co-authored-by: Jade <software@lfcode.ca>
Diffstat (limited to 'docs/dev')
0 files changed, 0 insertions, 0 deletions
