Skip to content

Commit f69f3a6

Browse files
author
The rustc-josh-sync Cronjob Bot
committed
Merge ref 'caccb4d0368b' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: caccb4d Filtered ref: 0f345ed Upstream diff: rust-lang/rust@21a19c2...caccb4d This merge was created using https://github.com/rust-lang/josh-sync.
2 parents 8030da1 + 0f345ed commit f69f3a6

File tree

6 files changed

+5
-40
lines changed

6 files changed

+5
-40
lines changed

crates/hir-def/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ extern crate rustc_parse_format;
1515
#[cfg(not(feature = "in-rust-tree"))]
1616
extern crate ra_ap_rustc_parse_format as rustc_parse_format;
1717

18-
#[cfg(feature = "in-rust-tree")]
19-
extern crate rustc_abi;
20-
21-
#[cfg(not(feature = "in-rust-tree"))]
2218
extern crate ra_ap_rustc_abi as rustc_abi;
2319

2420
pub mod db;

crates/hir-ty/src/lib.rs

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

6-
#[cfg(feature = "in-rust-tree")]
7-
extern crate rustc_index;
6+
// FIXME: We used to import `rustc_*` deps from `rustc_private` with `feature = "in-rust-tree" but
7+
// temporarily switched to crates.io versions due to hardships that working on them from rustc
8+
// demands corresponding changes on rust-analyzer at the same time.
9+
// For details, see the zulip discussion below:
10+
// https://rust-lang.zulipchat.com/#narrow/channel/185405-t-compiler.2Frust-analyzer/topic/relying.20on.20in-tree.20.60rustc_type_ir.60.2F.60rustc_next_trait_solver.60/with/541055689
811

9-
#[cfg(not(feature = "in-rust-tree"))]
1012
extern crate ra_ap_rustc_index as rustc_index;
1113

12-
#[cfg(feature = "in-rust-tree")]
13-
extern crate rustc_abi;
14-
15-
#[cfg(not(feature = "in-rust-tree"))]
1614
extern crate ra_ap_rustc_abi as rustc_abi;
1715

18-
#[cfg(feature = "in-rust-tree")]
19-
extern crate rustc_pattern_analysis;
20-
21-
#[cfg(not(feature = "in-rust-tree"))]
2216
extern crate ra_ap_rustc_pattern_analysis as rustc_pattern_analysis;
2317

24-
#[cfg(feature = "in-rust-tree")]
25-
extern crate rustc_ast_ir;
26-
27-
#[cfg(not(feature = "in-rust-tree"))]
2818
extern crate ra_ap_rustc_ast_ir as rustc_ast_ir;
2919

30-
#[cfg(feature = "in-rust-tree")]
31-
extern crate rustc_type_ir;
32-
33-
#[cfg(not(feature = "in-rust-tree"))]
3420
extern crate ra_ap_rustc_type_ir as rustc_type_ir;
3521

36-
#[cfg(feature = "in-rust-tree")]
37-
extern crate rustc_next_trait_solver;
38-
39-
#[cfg(not(feature = "in-rust-tree"))]
4022
extern crate ra_ap_rustc_next_trait_solver as rustc_next_trait_solver;
4123

42-
#[cfg(feature = "in-rust-tree")]
43-
extern crate rustc_data_structures as ena;
44-
4524
mod builder;
4625
mod chalk_db;
4726
mod chalk_ext;

crates/hir-ty/src/next_solver/consts.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ impl<'db> Const<'db> {
3636
internee: kind,
3737
flags: flags.flags,
3838
outer_exclusive_binder: flags.outer_exclusive_binder,
39-
#[cfg(feature = "in-rust-tree")]
40-
stable_hash: ena::fingerprint::Fingerprint::ZERO,
4139
};
4240
Const::new_(interner.db(), InternedWrapperNoDebug(cached))
4341
}

crates/hir-ty/src/next_solver/predicate.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ impl<'db> Predicate<'db> {
227227
internee: kind,
228228
flags: flags.flags,
229229
outer_exclusive_binder: flags.outer_exclusive_binder,
230-
#[cfg(feature = "in-rust-tree")]
231-
stable_hash: ena::fingerprint::Fingerprint::ZERO,
232230
};
233231
Predicate::new_(interner.db(), InternedWrapperNoDebug(cached))
234232
}

crates/hir-ty/src/next_solver/ty.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ impl<'db> Ty<'db> {
6161
internee: kind,
6262
flags: flags.flags,
6363
outer_exclusive_binder: flags.outer_exclusive_binder,
64-
#[cfg(feature = "in-rust-tree")]
65-
stable_hash: ena::fingerprint::Fingerprint::ZERO,
6664
};
6765
Ty::new_(interner.db(), InternedWrapperNoDebug(cached))
6866
}

crates/hir/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
2121
#![recursion_limit = "512"]
2222

23-
#[cfg(feature = "in-rust-tree")]
24-
extern crate rustc_type_ir;
25-
26-
#[cfg(not(feature = "in-rust-tree"))]
2723
extern crate ra_ap_rustc_type_ir as rustc_type_ir;
2824

2925
mod attrs;

0 commit comments

Comments
 (0)