Skip to content

Commit c76e47e

Browse files
authored
Merge pull request #20740 from rust-lang/rustc-pull
Rustc pull update
2 parents bbb6459 + 2e22e94 commit c76e47e

File tree

8 files changed

+11
-46
lines changed

8 files changed

+11
-46
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ jobs:
5656
# Install a pinned rustc commit to avoid surprises
5757
- name: Install Rust toolchain
5858
run: |
59-
RUSTC_VERSION=`cat rust-version`
60-
rustup-toolchain-install-master ${RUSTC_VERSION} -c rust-src -c rustfmt
59+
RUSTC_VERSION=$(cat rust-version)
60+
rustup-toolchain-install-master ${RUSTC_VERSION} -c cargo -c rust-src -c rustfmt
6161
rustup default ${RUSTC_VERSION}
6262
6363
# Emulate a nightly toolchain, because the toolchain installed above does not have "nightly"
@@ -98,9 +98,9 @@ jobs:
9898
run: |
9999
rustup update --no-self-update stable
100100
rustup default stable
101-
rustup component add --toolchain stable rust-src clippy
102-
# We always use a nightly rustfmt, regardless of channel, because we need
103-
# --file-lines.
101+
rustup component add --toolchain stable rust-src clippy rustfmt
102+
# We also install a nightly rustfmt, because we use `--file-lines` in
103+
# a test.
104104
rustup toolchain install nightly --profile minimal --component rustfmt
105105
# https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/rust.json
106106
- name: Install Rust Problem Matcher

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;

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
21a19c297d4f5a03501d92ca251bd7a17073c08a
1+
caccb4d0368bd918ef6668af8e13834d07040417

0 commit comments

Comments
 (0)