rust/crates
bors[bot] b48aba0090
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>
2021-06-21 13:41:27 +00:00
..
base_db Cleanup insert_use tests 2021-06-19 22:33:29 +02:00
cfg Implement a config override for the default #[cfg(test)] in cargo crates 2021-06-19 01:09:19 -07:00
flycheck Use package root as cargo check working directory 2021-05-12 19:50:52 -07:00
hir Nest all the or-patterns! 2021-06-17 17:37:14 +02:00
hir_def Minor clippy perf fixes 2021-06-18 14:40:51 +03:00
hir_expand Minor clippy perf fixes 2021-06-18 14:40:51 +03:00
hir_ty Fix benchmark_include_macro 2021-06-20 19:37:45 +02:00
ide Don't insert } when typing { in string 2021-06-21 14:54:49 +02:00
ide_assists Cleanup insert_use tests 2021-06-19 22:33:29 +02:00
ide_completion Merge #9356 2021-06-21 13:15:12 +00:00
ide_db Cleanup insert_use tests 2021-06-19 22:33:29 +02:00
ide_diagnostics minor: use minicore 2021-06-18 23:48:18 +03:00
ide_ssr clippy::redundant_field_names 2021-06-13 09:40:22 +05:30
mbe Nest all the or-patterns! 2021-06-17 17:37:14 +02:00
parser Complete repr attribute parameters 2021-06-17 21:15:49 +02:00
paths tree-wide: make rustdoc links spiky so they are clickable 2021-06-13 21:58:05 -07:00
proc_macro_api Minor clippy perf fixes 2021-06-18 14:40:51 +03:00
proc_macro_srv Merge #9260 2021-06-14 07:16:48 +00:00
proc_macro_test Build test-macros in a build script 2021-06-09 17:16:52 +02:00
profile Merge #9260 2021-06-14 07:16:48 +00:00
project_model Merge #9227 2021-06-21 13:41:27 +00:00
rust-analyzer Implement a config override for the default #[cfg(test)] in cargo crates 2021-06-19 01:09:19 -07:00
stdx tree-wide: make rustdoc links spiky so they are clickable 2021-06-13 21:58:05 -07:00
syntax Don't insert imports outside of cfg attributed items 2021-06-18 23:56:43 +02:00
test_utils test_utils: Make overlapping annotations possible 2021-06-20 19:12:06 +02:00
text_edit Avoid turning completion objects into builders 2020-11-16 23:16:41 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt Merge #9260 2021-06-14 07:16:48 +00:00
vfs Nest all the or-patterns! 2021-06-17 17:37:14 +02:00
vfs-notify Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00