mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Implement opt-in (and opt-out) rustc_private
This commit is contained in:
parent
cd60c4f76c
commit
1076d21fc0
2 changed files with 26 additions and 3 deletions
|
@ -499,7 +499,11 @@ fn cargo_to_crate_graph(
|
|||
|
||||
if let Some(&to) = pkg_to_lib_crate.get(&dep) {
|
||||
for pkg in cargo.packages() {
|
||||
if !cargo[pkg].is_member {
|
||||
let package = &cargo[pkg];
|
||||
if matches!(
|
||||
(package.is_member, package.metadata.rustc_private),
|
||||
(true, Some(false)) | (false, Some(false)) | (false, None)
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
for &from in pkg_crates.get(&pkg).into_iter().flatten() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue