-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to in-tree rustc dependencies with a cfg flag
- Loading branch information
Showing
18 changed files
with
118 additions
and
31 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[package] | ||
name = "rustc-dependencies" | ||
version = "0.0.0" | ||
rust-version.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
authors.workspace = true | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
ra-ap-rustc_lexer = { version = "0.10.0" } | ||
ra-ap-rustc_parse_format = { version = "0.10.0", default-features = false } | ||
|
||
# Upstream broke this for us so we can't update it | ||
hkalbasi-rustc-ap-rustc_abi = { version = "0.0.20221221", default-features = false } | ||
hkalbasi-rustc-ap-rustc_index = { version = "0.0.20221221", default-features = false } | ||
|
||
[features] | ||
in-rust-tree = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//! A wrapper around rustc internal crates, which enables switching between compiler provided | ||
//! ones and stable ones published in crates.io | ||
|
||
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))] | ||
|
||
#[cfg(feature = "in-rust-tree")] | ||
extern crate rustc_lexer; | ||
|
||
#[cfg(feature = "in-rust-tree")] | ||
pub mod lexer { | ||
pub use ::rustc_lexer::*; | ||
} | ||
|
||
#[cfg(not(feature = "in-rust-tree"))] | ||
pub mod lexer { | ||
pub use ::ra_ap_rustc_lexer::*; | ||
} | ||
|
||
#[cfg(feature = "in-rust-tree")] | ||
extern crate rustc_parse_format; | ||
|
||
#[cfg(feature = "in-rust-tree")] | ||
pub mod parse_format { | ||
pub use ::rustc_parse_format::*; | ||
} | ||
|
||
#[cfg(not(feature = "in-rust-tree"))] | ||
pub mod parse_format { | ||
pub use ::ra_ap_rustc_parse_format::*; | ||
} | ||
|
||
// Upstream broke this for us so we can't update it | ||
pub mod abi { | ||
pub use ::hkalbasi_rustc_ap_rustc_abi::*; | ||
} | ||
|
||
pub mod index { | ||
pub use ::hkalbasi_rustc_ap_rustc_index::*; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters