Skip to content

Commit 0a82958

Browse files
committed
feat: update to nightly-2024-08-30
Now we need `#![feature(rustc_private)]` in the `main.rs` See the original PR rust-lang/rust#122362 And the PR in another tool that requires the same change trailofbits/dylint#1298 Update lock file too
1 parent 5cc2d5c commit 0a82958

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

Cargo.lock

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

rust-toolchain.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Documentation: https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file
22

33
[toolchain]
4-
channel = "nightly-2024-07-16"
4+
channel = "nightly-2024-08-30"
55
components = ["llvm-tools-preview", "rustc-dev", "rust-src"]

src/bin/check-deadlock/main.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// This feature gate is necessary to access the internal crates of the compiler.
2+
// It has existed for a long time and since the compiler internals will never be stabilized,
3+
// the situation will probably stay like this.
4+
// <https://doc.rust-lang.org/unstable-book/language-features/rustc-private.html>
5+
#![feature(rustc_private)]
6+
17
mod cargo_result;
28
mod check_deadlock;
39
mod cli;

src/utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub fn extract_def_id_of_called_function_from_operand<'tcx>(
3030
rustc_middle::mir::Operand::Constant(constant) => constant.ty(),
3131
};
3232
match function_type.kind() {
33-
rustc_middle::ty::TyKind::FnPtr(_) => {
33+
rustc_middle::ty::TyKind::FnPtr(_, _) => {
3434
unimplemented!(
3535
"TyKind::FnPtr not implemented yet. Function pointers are present in the MIR"
3636
);

0 commit comments

Comments
 (0)