Skip to content

Commit 7f659a3

Browse files
committed
Auto merge of #15494 - lnicola:sync-from-rust, r=lnicola
minor: Sync from downstream
2 parents 9b3d034 + b4576b5 commit 7f659a3

File tree

11 files changed

+24
-30
lines changed

11 files changed

+24
-30
lines changed

.github/workflows/ci.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ jobs:
8686
- name: Test
8787
run: cargo test ${{ env.USE_SYSROOT_ABI }} -- --nocapture --quiet
8888

89+
- name: Switch to stable toolchain
90+
run: |
91+
rustup update --no-self-update stable
92+
rustup component add --toolchain stable rust-src
93+
rustup default stable
94+
8995
- name: Run analysis-stats on rust-analyzer
9096
if: matrix.os == 'ubuntu-latest'
9197
run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats .

Cargo.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/hir-ty/src/mir.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ pub enum TerminatorKind {
368368
///
369369
/// Only permitted in cleanup blocks. `Resume` is not permitted with `-C unwind=abort` after
370370
/// deaggregation runs.
371-
Resume,
371+
UnwindResume,
372372

373373
/// Indicates that the landing pad is finished and that the process should abort.
374374
///
@@ -1057,7 +1057,7 @@ impl MirBody {
10571057
TerminatorKind::FalseEdge { .. }
10581058
| TerminatorKind::FalseUnwind { .. }
10591059
| TerminatorKind::Goto { .. }
1060-
| TerminatorKind::Resume
1060+
| TerminatorKind::UnwindResume
10611061
| TerminatorKind::GeneratorDrop
10621062
| TerminatorKind::Abort
10631063
| TerminatorKind::Return

crates/hir-ty/src/mir/borrowck.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ fn moved_out_of_ref(db: &dyn HirDatabase, body: &MirBody) -> Vec<MovedOutOfRef>
160160
TerminatorKind::FalseEdge { .. }
161161
| TerminatorKind::FalseUnwind { .. }
162162
| TerminatorKind::Goto { .. }
163-
| TerminatorKind::Resume
163+
| TerminatorKind::UnwindResume
164164
| TerminatorKind::GeneratorDrop
165165
| TerminatorKind::Abort
166166
| TerminatorKind::Return
@@ -280,7 +280,7 @@ fn ever_initialized_map(
280280
let targets = match &terminator.kind {
281281
TerminatorKind::Goto { target } => vec![*target],
282282
TerminatorKind::SwitchInt { targets, .. } => targets.all_targets().to_vec(),
283-
TerminatorKind::Resume
283+
TerminatorKind::UnwindResume
284284
| TerminatorKind::Abort
285285
| TerminatorKind::Return
286286
| TerminatorKind::Unreachable => vec![],
@@ -371,7 +371,7 @@ fn mutability_of_locals(
371371
};
372372
match &terminator.kind {
373373
TerminatorKind::Goto { .. }
374-
| TerminatorKind::Resume
374+
| TerminatorKind::UnwindResume
375375
| TerminatorKind::Abort
376376
| TerminatorKind::Return
377377
| TerminatorKind::Unreachable

crates/hir-ty/src/mir/monomorphization.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ impl Filler<'_> {
265265
self.fill_operand(discr)?;
266266
}
267267
TerminatorKind::Goto { .. }
268-
| TerminatorKind::Resume
268+
| TerminatorKind::UnwindResume
269269
| TerminatorKind::Abort
270270
| TerminatorKind::Return
271271
| TerminatorKind::Unreachable

crates/ide-completion/src/completions/attribute/cfg.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ pub(crate) fn complete_cfg(acc: &mut Completions, ctx: &CompletionContext<'_>) {
4242
};
4343
}
4444

45-
const KNOWN_ARCH: [&str; 19] = [
45+
const KNOWN_ARCH: [&str; 20] = [
4646
"aarch64",
4747
"arm",
4848
"avr",
49+
"csky",
4950
"hexagon",
5051
"mips",
5152
"mips64",

crates/ide-completion/src/completions/extern_abi.rs

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ const SUPPORTED_CALLING_CONVENTIONS: &[&str] = &[
3030
"efiapi",
3131
"avr-interrupt",
3232
"avr-non-blocking-interrupt",
33+
"riscv-interrupt-m",
34+
"riscv-interrupt-s",
3335
"C-cmse-nonsecure-call",
3436
"wasm",
3537
"system",

crates/ide-db/src/generated/lints.rs

-16
Original file line numberDiff line numberDiff line change
@@ -928,22 +928,6 @@ $ cat $(find -name '*.s')
928928
ret;
929929
}
930930
```
931-
"##,
932-
},
933-
Lint {
934-
label: "abi_thiscall",
935-
description: r##"# `abi_thiscall`
936-
937-
The tracking issue for this feature is: [#42202]
938-
939-
[#42202]: https://github.com/rust-lang/rust/issues/42202
940-
941-
------------------------
942-
943-
The MSVC ABI on x86 Windows uses the `thiscall` calling convention for C++
944-
instance methods by default; it is identical to the usual (C) calling
945-
convention on x86 Windows except that the first parameter of the method,
946-
the `this` pointer, is passed in the ECX register.
947931
"##,
948932
},
949933
Lint {

crates/proc-macro-api/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rust-version.workspace = true
1212
doctest = false
1313

1414
[dependencies]
15-
object = { version = "0.31.0", default-features = false, features = [
15+
object = { version = "0.32.0", default-features = false, features = [
1616
"std",
1717
"read_core",
1818
"elf",

crates/proc-macro-srv/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rust-version.workspace = true
1212
doctest = false
1313

1414
[dependencies]
15-
object = { version = "0.31.0", default-features = false, features = [
15+
object = { version = "0.32.0", default-features = false, features = [
1616
"std",
1717
"read_core",
1818
"elf",

crates/rust-analyzer/tests/slow-tests/main.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,7 @@ edition = "2021"
861861
bar = {path = "../bar"}
862862
863863
//- /foo/src/main.rs
864+
#![allow(internal_features)]
864865
#![feature(rustc_attrs, decl_macro)]
865866
use bar::Bar;
866867
@@ -938,7 +939,7 @@ pub fn foo(_input: TokenStream) -> TokenStream {
938939
let res = server.send_request::<HoverRequest>(HoverParams {
939940
text_document_position_params: TextDocumentPositionParams::new(
940941
server.doc_id("foo/src/main.rs"),
941-
Position::new(11, 9),
942+
Position::new(12, 9),
942943
),
943944
work_done_progress_params: Default::default(),
944945
});

0 commit comments

Comments
 (0)