mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Add library
fixture meta
Additionally documents the syntax for fixture meta.
This commit is contained in:
parent
8769cd24bc
commit
d51536c242
5 changed files with 164 additions and 77 deletions
|
@ -138,12 +138,12 @@ impl ops::Deref for CrateName {
|
|||
}
|
||||
}
|
||||
|
||||
/// Origin of the crates. It is used in emitting monikers.
|
||||
/// Origin of the crates.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum CrateOrigin {
|
||||
/// Crates that are from the rustc workspace
|
||||
/// Crates that are from the rustc workspace.
|
||||
Rustc { name: String },
|
||||
/// Crates that are workspace members,
|
||||
/// Crates that are workspace members.
|
||||
Local { repo: Option<String>, name: Option<String> },
|
||||
/// Crates that are non member libraries.
|
||||
Library { repo: Option<String>, name: String },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue