mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Rename is_member
to is_local
This commit is contained in:
parent
8a4c35a068
commit
e241015a75
3 changed files with 18 additions and 18 deletions
|
@ -135,8 +135,8 @@ pub struct PackageData {
|
|||
pub manifest: ManifestPath,
|
||||
/// Targets provided by the crate (lib, bin, example, test, ...)
|
||||
pub targets: Vec<Target>,
|
||||
/// Is this package a member of the current workspace
|
||||
pub is_member: bool,
|
||||
/// Does this package come from the local filesystem (and is editable)?
|
||||
pub is_local: bool,
|
||||
/// List of packages this package depends on
|
||||
pub dependencies: Vec<PackageDependency>,
|
||||
/// Rust edition for this package
|
||||
|
@ -308,7 +308,7 @@ impl CargoWorkspace {
|
|||
});
|
||||
// We treat packages without source as "local" packages. That includes all members of
|
||||
// the current workspace, as well as any path dependency outside the workspace.
|
||||
let is_member = meta_pkg.source.is_none();
|
||||
let is_local = meta_pkg.source.is_none();
|
||||
|
||||
let pkg = packages.alloc(PackageData {
|
||||
id: id.repr.clone(),
|
||||
|
@ -316,7 +316,7 @@ impl CargoWorkspace {
|
|||
version: version.clone(),
|
||||
manifest: AbsPathBuf::assert(PathBuf::from(&manifest_path)).try_into().unwrap(),
|
||||
targets: Vec::new(),
|
||||
is_member,
|
||||
is_local,
|
||||
edition,
|
||||
dependencies: Vec::new(),
|
||||
features: meta_pkg.features.clone().into_iter().collect(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue