Skip to content

Commit e25e0dd

Browse files
committed
Split out rustc_parse_format from rustc_dependencies
1 parent b97ab00 commit e25e0dd

File tree

7 files changed

+11
-20
lines changed

7 files changed

+11
-20
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" }
8080
vfs = { path = "./crates/vfs", version = "0.0.0" }
8181
rustc-dependencies = { path = "./crates/rustc-dependencies", version = "0.0.0" }
8282

83-
ra-ap-rustc_lexer = "0.21.0"
83+
ra-ap-rustc_lexer = { version = "0.21.0", default-features = false }
84+
ra-ap-rustc_parse_format = { version = "0.21.0", default-features = false }
8485

8586
# local crates that aren't published to crates.io. These should not have versions.
8687
sourcegen = { path = "./crates/sourcegen" }

crates/hir-def/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ smallvec.workspace = true
2929
hashbrown.workspace = true
3030
triomphe.workspace = true
3131

32+
ra-ap-rustc_parse_format.workspace = true
3233
rustc-dependencies.workspace = true
3334

3435
# local deps
@@ -56,4 +57,4 @@ test-fixture.workspace = true
5657
in-rust-tree = ["rustc-dependencies/in-rust-tree"]
5758

5859
[lints]
59-
workspace = true
60+
workspace = true

crates/hir-def/src/hir/format_args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
use std::mem;
33

44
use hir_expand::name::Name;
5-
use rustc_dependencies::parse_format as parse;
5+
use rustc_parse_format as parse;
66
use stdx::TupleExt;
77
use syntax::{
88
ast::{self, IsString},

crates/hir-def/src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
#![warn(rust_2018_idioms, unused_lifetimes)]
1111
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
1212

13-
#[allow(unused)]
14-
macro_rules! eprintln {
15-
($($tt:tt)*) => { stdx::eprintln!($($tt)*) };
16-
}
13+
#[cfg(feature = "in-rust-tree")]
14+
extern crate rustc_parse_format;
15+
16+
#[cfg(not(feature = "in-rust-tree"))]
17+
extern crate ra_ap_rustc_parse_format as rustc_parse_format;
1718

1819
pub mod db;
1920

crates/rustc-dependencies/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ authors.workspace = true
1111
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1212

1313
[dependencies]
14-
ra-ap-rustc_parse_format = { version = "0.21.0", default-features = false }
1514
ra-ap-rustc_index = { version = "0.21.0", default-features = false }
1615
ra-ap-rustc_abi = { version = "0.21.0", default-features = false }
1716

crates/rustc-dependencies/src/lib.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,6 @@
33
44
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
55

6-
#[cfg(feature = "in-rust-tree")]
7-
extern crate rustc_parse_format;
8-
9-
pub mod parse_format {
10-
#[cfg(not(feature = "in-rust-tree"))]
11-
pub use ::ra_ap_rustc_parse_format::*;
12-
13-
#[cfg(feature = "in-rust-tree")]
14-
pub use ::rustc_parse_format::*;
15-
}
16-
176
#[cfg(feature = "in-rust-tree")]
187
extern crate rustc_abi;
198

0 commit comments

Comments
 (0)