diff --git a/Cargo.lock b/Cargo.lock index f1ea5ac..e524734 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -268,9 +268,9 @@ dependencies = [ [[package]] name = "fastrand" -version = "2.1.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" +checksum = "e8c02a5121d4ea3eb16a80748c74f5549a5665e4c21333c6098f283870fbdea6" [[package]] name = "float-cmp" @@ -455,9 +455,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.36" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" +checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" dependencies = [ "proc-macro2", ] @@ -523,9 +523,9 @@ checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" [[package]] name = "rustix" -version = "0.38.34" +version = "0.38.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" +checksum = "a85d50532239da68e9addb745ba38ff4612a242c1c7ceea689c4bc7c2f43c36f" dependencies = [ "bitflags", "errno", @@ -545,18 +545,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.208" +version = "1.0.209" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cff085d2cb684faa248efb494c39b68e522822ac0de72ccf08109abde717cfb2" +checksum = "99fce0ffe7310761ca6bf9faf5115afbc19688edd00171d81b1bb1b116c63e09" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.208" +version = "1.0.209" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24008e81ff7613ed8e5ba0cfaf24e2c2f1e5b8a0495711e44fcd4882fca62bcf" +checksum = "a5831b979fd7b5439637af1752d535ff49f4860c0f341d1baeb6faf0f4242170" dependencies = [ "proc-macro2", "quote", @@ -571,9 +571,9 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "syn" -version = "2.0.75" +version = "2.0.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6af063034fc1935ede7be0122941bafa9bacb949334d090b77ca98b5817c7d9" +checksum = "578e081a14e0cefc3279b0472138c513f37b41a08d5a3cca9b6e4e8ceb6cd525" dependencies = [ "proc-macro2", "quote", diff --git a/rust-toolchain.toml b/rust-toolchain.toml index b9f9991..3ca0e50 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ # Documentation: https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file [toolchain] -channel = "nightly-2024-07-16" +channel = "nightly-2024-08-30" components = ["llvm-tools-preview", "rustc-dev", "rust-src"] \ No newline at end of file diff --git a/src/bin/check-deadlock/main.rs b/src/bin/check-deadlock/main.rs index 9595d60..4c2672d 100644 --- a/src/bin/check-deadlock/main.rs +++ b/src/bin/check-deadlock/main.rs @@ -1,3 +1,9 @@ +// This feature gate is necessary to access the internal crates of the compiler. +// It has existed for a long time and since the compiler internals will never be stabilized, +// the situation will probably stay like this. +// +#![feature(rustc_private)] + mod cargo_result; mod check_deadlock; mod cli; diff --git a/src/utils.rs b/src/utils.rs index 53abe76..32e8132 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -30,7 +30,7 @@ pub fn extract_def_id_of_called_function_from_operand<'tcx>( rustc_middle::mir::Operand::Constant(constant) => constant.ty(), }; match function_type.kind() { - rustc_middle::ty::TyKind::FnPtr(_) => { + rustc_middle::ty::TyKind::FnPtr(_, _) => { unimplemented!( "TyKind::FnPtr not implemented yet. Function pointers are present in the MIR" );