mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-23 08:42:40 +00:00
Expand target info to include the architecture
And make it easier to expand it more in the future, if needed.
This commit is contained in:
parent
9edc9cbe5d
commit
6315e315ad
22 changed files with 188 additions and 78 deletions
|
@ -295,8 +295,6 @@ impl CrateDisplayName {
|
|||
}
|
||||
}
|
||||
|
||||
pub type TargetLayoutLoadResult = Result<Arc<str>, Arc<str>>;
|
||||
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
||||
pub enum ReleaseChannel {
|
||||
Stable,
|
||||
|
@ -929,7 +927,7 @@ mod tests {
|
|||
use super::{CrateGraphBuilder, CrateName, CrateOrigin, Edition::Edition2018, Env, FileId};
|
||||
|
||||
fn empty_ws_data() -> Arc<CrateWorkspaceData> {
|
||||
Arc::new(CrateWorkspaceData { data_layout: Err("".into()), toolchain: None })
|
||||
Arc::new(CrateWorkspaceData { target: Err("".into()), toolchain: None })
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue