rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
96.45k stars 12.45k forks source link

Sudden compiler error after another recompilation with slight changes to the code #97678

Open megahomyak opened 2 years ago

megahomyak commented 2 years ago

I haven't modified anything in my environment, just added two macro calls on the line 73, recompiled and got this. And now I'm getting the same output every time I am compiling this project, no matter what it contains. Even fn main() {} causes the compiler to crash. Other projects compile nicely. On other projects with the similar stack the problem persists, forcing me to recompile all the dependencies for almost every two compilations.

cargo clean fixed the issue, but it keeps appearing from time to time and each time I have to use cargo clean and recompile all of my dependencies

Code (actually doesn't matter)

```Rust #![allow(clippy::unused_async)] use actix_web::{get, web, App, HttpResponse, HttpServer}; use log::error; use num::BigUint; use redis::{aio::Connection, AsyncCommands, RedisResult}; use serde::Deserialize; use tokio::sync::Mutex; type FactorialInputType = u32; pub struct Seconds { pub seconds: usize, } pub struct State { pub redis_connection: Mutex, pub upper_factorial_limit: FactorialInputType, pub default_cache_expiration_time: Seconds, } #[get("/")] async fn index() -> HttpResponse { HttpResponse::Ok().body(include_str!("index.html")) } #[derive(Deserialize)] pub struct FactorialProcessingQueryParams { pub input_number: FactorialInputType, } #[get("/")] async fn calculate_factorial<'output>( state: web::Data, query: web::Query, ) -> HttpResponse { let input_number = query.input_number; if input_number > state.upper_factorial_limit { return HttpResponse::Ok().body("The input number is too big!"); } let cached_number: RedisResult = state .redis_connection .lock() .await .get(input_number.to_string()) .await; let result = match cached_number { Ok(result) => result, Err(error) => { if error.kind() != redis::ErrorKind::TypeError { error!("{}", error); } let mut result = BigUint::new(vec![1]); for factor in 2..=input_number { result *= factor; } let result = result.to_string(); if let Err(err) = state .redis_connection .lock() .await .set_ex::( input_number.to_string(), result.clone(), state.default_cache_expiration_time.seconds, ) .await { error!("{}", err); } result } }; HttpResponse::Ok().body(format!(include_str!("number.html"), result)) } #[actix_web::main] async fn main() -> std::io::Result<()> { let redis_client = redis::Client::open("redis://127.0.0.1:6379/").unwrap(); let state = web::Data::new(State { redis_connection: Mutex::new(redis_client.get_tokio_connection().await.unwrap()), upper_factorial_limit: 10000, default_cache_expiration_time: Seconds { seconds: 10 * 60 * 60 }, }); HttpServer::new(move || { App::new().service( web::scope("") .app_data(state.clone()) .service(calculate_factorial) ) .service(index) }) .bind(("127.0.0.1", 8080))? .run() .await } ```

`Cargo.lock` (probably, related to the problem) (WARNING, WILL MAKE YOUR PAGE TWENTY TIMES TALLER)

``` # This file is automatically @generated by Cargo. # It is not intended for manual editing. version = 3 [[package]] name = "actix-codec" version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57a7559404a7f3573127aab53c08ce37a6c6a315c374a31070f3c91cd1b4a7fe" dependencies = [ "bitflags", "bytes", "futures-core", "futures-sink", "log", "memchr", "pin-project-lite", "tokio", "tokio-util 0.7.2", ] [[package]] name = "actix-http" version = "3.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a5885cb81a0d4d0d322864bea1bb6c2a8144626b4fdc625d4c51eba197e7797a" dependencies = [ "actix-codec", "actix-rt", "actix-service", "actix-utils", "ahash", "base64", "bitflags", "brotli", "bytes", "bytestring", "derive_more", "encoding_rs", "flate2", "futures-core", "h2", "http", "httparse", "httpdate", "itoa 1.0.2", "language-tags", "local-channel", "log", "mime", "percent-encoding", "pin-project-lite", "rand", "sha-1", "smallvec", "zstd", ] [[package]] name = "actix-macros" version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "465a6172cf69b960917811022d8f29bc0b7fa1398bc4f78b3c466673db1213b6" dependencies = [ "quote", "syn", ] [[package]] name = "actix-router" version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eb60846b52c118f2f04a56cc90880a274271c489b2498623d58176f8ca21fa80" dependencies = [ "bytestring", "firestorm", "http", "log", "regex", "serde", ] [[package]] name = "actix-rt" version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ea16c295198e958ef31930a6ef37d0fb64e9ca3b6116e6b93a8bdae96ee1000" dependencies = [ "futures-core", "tokio", ] [[package]] name = "actix-server" version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0da34f8e659ea1b077bb4637948b815cd3768ad5a188fdcd74ff4d84240cd824" dependencies = [ "actix-rt", "actix-service", "actix-utils", "futures-core", "futures-util", "mio", "num_cpus", "socket2", "tokio", "tracing", ] [[package]] name = "actix-service" version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3b894941f818cfdc7ccc4b9e60fa7e53b5042a2e8567270f9147d5591893373a" dependencies = [ "futures-core", "paste", "pin-project-lite", ] [[package]] name = "actix-utils" version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e491cbaac2e7fc788dfff99ff48ef317e23b3cf63dbaf7aaab6418f40f92aa94" dependencies = [ "local-waker", "pin-project-lite", ] [[package]] name = "actix-web" version = "4.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f4e5ebffd51d50df56a3ae0de0e59487340ca456f05dd0b90c0a7a6dd6a74d31" dependencies = [ "actix-codec", "actix-http", "actix-macros", "actix-router", "actix-rt", "actix-server", "actix-service", "actix-utils", "actix-web-codegen", "ahash", "bytes", "bytestring", "cfg-if", "cookie", "derive_more", "encoding_rs", "futures-core", "futures-util", "itoa 1.0.2", "language-tags", "log", "mime", "once_cell", "pin-project-lite", "regex", "serde", "serde_json", "serde_urlencoded", "smallvec", "socket2", "time", "url", ] [[package]] name = "actix-web-codegen" version = "4.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7525bedf54704abb1d469e88d7e7e9226df73778798a69cea5022d53b2ae91bc" dependencies = [ "actix-router", "proc-macro2", "quote", "syn", ] [[package]] name = "adler" version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "ahash" version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" dependencies = [ "getrandom", "once_cell", "version_check", ] [[package]] name = "aho-corasick" version = "0.7.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" dependencies = [ "memchr", ] [[package]] name = "alloc-no-stdlib" version = "2.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "35ef4730490ad1c4eae5c4325b2a95f521d023e5c885853ff7aca0a6a1631db3" [[package]] name = "alloc-stdlib" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "697ed7edc0f1711de49ce108c541623a0af97c6c60b2f6e2b65229847ac843c2" dependencies = [ "alloc-no-stdlib", ] [[package]] name = "async-trait" version = "0.1.53" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed6aa3524a2dfcf9fe180c51eae2b58738348d819517ceadf95789c51fff7600" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "autocfg" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "base64" version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" [[package]] name = "bitflags" version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "block-buffer" version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0bf7fe51849ea569fd452f37822f606a5cabb684dc918707a0193fd4664ff324" dependencies = [ "generic-array", ] [[package]] name = "brotli" version = "3.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1a0b1dbcc8ae29329621f8d4f0d835787c1c38bb1401979b49d13b0b305ff68" dependencies = [ "alloc-no-stdlib", "alloc-stdlib", "brotli-decompressor", ] [[package]] name = "brotli-decompressor" version = "2.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59ad2d4653bf5ca36ae797b1f4bb4dbddb60ce49ca4aed8a2ce4829f60425b80" dependencies = [ "alloc-no-stdlib", "alloc-stdlib", ] [[package]] name = "bytes" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8" [[package]] name = "bytestring" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90706ba19e97b90786e19dc0d5e2abd80008d99d4c0c5d1ad0b5e72cec7c494d" dependencies = [ "bytes", ] [[package]] name = "cc" version = "1.0.73" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" dependencies = [ "jobserver", ] [[package]] name = "cfg-if" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "combine" version = "4.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a604e93b79d1808327a6fca85a6f2d69de66461e7620f5a4cbf5fb4d1d7c948" dependencies = [ "bytes", "futures-core", "memchr", "pin-project-lite", "tokio", "tokio-util 0.7.2", ] [[package]] name = "convert_case" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" [[package]] name = "cookie" version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94d4706de1b0fa5b132270cddffa8585166037822e260a944fe161acd137ca05" dependencies = [ "percent-encoding", "time", "version_check", ] [[package]] name = "cpufeatures" version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59a6001667ab124aebae2a495118e11d30984c3a653e99d86d58971708cf5e4b" dependencies = [ "libc", ] [[package]] name = "crc32fast" version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" dependencies = [ "cfg-if", ] [[package]] name = "crypto-common" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57952ca27b5e3606ff4dd79b0020231aaf9d6aa76dc05fd30137538c50bd3ce8" dependencies = [ "generic-array", "typenum", ] [[package]] name = "derive_more" version = "0.99.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321" dependencies = [ "convert_case", "proc-macro2", "quote", "rustc_version", "syn", ] [[package]] name = "digest" version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f2fb860ca6fafa5552fb6d0e816a69c8e49f0908bf524e30a90d97c85892d506" dependencies = [ "block-buffer", "crypto-common", ] [[package]] name = "dtoa" version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "56899898ce76aaf4a0f24d914c97ea6ed976d42fec6ad33fcbb0a1103e07b2b0" [[package]] name = "encoding_rs" version = "0.8.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9852635589dc9f9ea1b6fe9f05b50ef208c85c834a562f0c6abb1c475736ec2b" dependencies = [ "cfg-if", ] [[package]] name = "firestorm" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c5f6c2c942da57e2aaaa84b8a521489486f14e75e7fa91dab70aba913975f98" [[package]] name = "flate2" version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f82b0f4c27ad9f8bfd1f3208d882da2b09c301bc1c828fd3a00d0216d2fbbff6" dependencies = [ "crc32fast", "miniz_oxide", ] [[package]] name = "fnv" version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "form_urlencoded" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" dependencies = [ "matches", "percent-encoding", ] [[package]] name = "futures-core" version = "0.3.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3" [[package]] name = "futures-sink" version = "0.3.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21163e139fa306126e6eedaf49ecdb4588f939600f0b1e770f4205ee4b7fa868" [[package]] name = "futures-task" version = "0.3.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57c66a976bf5909d801bbef33416c41372779507e7a6b3a5e25e4749c58f776a" [[package]] name = "futures-util" version = "0.3.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d8b7abd5d659d9b90c8cba917f6ec750a74e2dc23902ef9cd4cc8c8b22e6036a" dependencies = [ "futures-core", "futures-sink", "futures-task", "pin-project-lite", "pin-utils", ] [[package]] name = "generic-array" version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd48d33ec7f05fbfa152300fdad764757cbded343c1aa1cff2fbaf4134851803" dependencies = [ "typenum", "version_check", ] [[package]] name = "getrandom" version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9be70c98951c83b8d2f8f60d7065fa6d5146873094452a1008da8c2f1e4205ad" dependencies = [ "cfg-if", "libc", "wasi 0.10.2+wasi-snapshot-preview1", ] [[package]] name = "h2" version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "37a82c6d637fc9515a4694bbf1cb2457b79d81ce52b3108bdeea58b07dd34a57" dependencies = [ "bytes", "fnv", "futures-core", "futures-sink", "futures-util", "http", "indexmap", "slab", "tokio", "tokio-util 0.7.2", "tracing", ] [[package]] name = "hashbrown" version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" [[package]] name = "hermit-abi" version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" dependencies = [ "libc", ] [[package]] name = "http" version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff8670570af52249509a86f5e3e18a08c60b177071826898fde8997cf5f6bfbb" dependencies = [ "bytes", "fnv", "itoa 1.0.2", ] [[package]] name = "httparse" version = "1.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "496ce29bb5a52785b44e0f7ca2847ae0bb839c9bd28f69acac9b99d461c0c04c" [[package]] name = "httpdate" version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" [[package]] name = "idna" version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" dependencies = [ "matches", "unicode-bidi", "unicode-normalization", ] [[package]] name = "indexmap" version = "1.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6012d540c5baa3589337a98ce73408de9b5a25ec9fc2c6fd6be8f0d39e0ca5a" dependencies = [ "autocfg", "hashbrown", ] [[package]] name = "itoa" version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" [[package]] name = "itoa" version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d" [[package]] name = "jobserver" version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af25a77299a7f711a01975c35a6a424eb6862092cc2d6c72c4ed6cbc56dfc1fa" dependencies = [ "libc", ] [[package]] name = "language-tags" version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4345964bb142484797b161f473a503a434de77149dd8c7427788c6e13379388" [[package]] name = "lazy_static" version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" [[package]] name = "local-channel" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f303ec0e94c6c54447f84f3b0ef7af769858a9c4ef56ef2a986d3dcd4c3fc9c" dependencies = [ "futures-core", "futures-sink", "futures-util", "local-waker", ] [[package]] name = "local-waker" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e34f76eb3611940e0e7d53a9aaa4e6a3151f69541a282fd0dad5571420c53ff1" [[package]] name = "lock_api" version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "327fa5b6a6940e4699ec49a9beae1ea4845c6bab9314e4f84ac68742139d8c53" dependencies = [ "autocfg", "scopeguard", ] [[package]] name = "log" version = "0.4.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" dependencies = [ "cfg-if", ] [[package]] name = "matches" version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" [[package]] name = "memchr" version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "mime" version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" [[package]] name = "miniz_oxide" version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f5c75688da582b8ffc1f1799e9db273f32133c49e048f614d22ec3256773ccc" dependencies = [ "adler", ] [[package]] name = "mio" version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "713d550d9b44d89174e066b7a6217ae06234c10cb47819a88290d2b353c31799" dependencies = [ "libc", "log", "wasi 0.11.0+wasi-snapshot-preview1", "windows-sys", ] [[package]] name = "num" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43db66d1170d347f9a065114077f7dccb00c1b9478c89384490a3425279a4606" dependencies = [ "num-bigint", "num-complex", "num-integer", "num-iter", "num-rational", "num-traits", ] [[package]] name = "num-bigint" version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f93ab6289c7b344a8a9f60f88d80aa20032336fe78da341afc91c8a2341fc75f" dependencies = [ "autocfg", "num-integer", "num-traits", ] [[package]] name = "num-complex" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fbc387afefefd5e9e39493299f3069e14a140dd34dc19b4c1c1a8fddb6a790" dependencies = [ "num-traits", ] [[package]] name = "num-integer" version = "0.1.45" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9" dependencies = [ "autocfg", "num-traits", ] [[package]] name = "num-iter" version = "0.1.43" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d03e6c028c5dc5cac6e2dec0efda81fc887605bb3d884578bb6d6bf7514e252" dependencies = [ "autocfg", "num-integer", "num-traits", ] [[package]] name = "num-rational" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d41702bd167c2df5520b384281bc111a4b5efcf7fbc4c9c222c815b07e0a6a6a" dependencies = [ "autocfg", "num-bigint", "num-integer", "num-traits", ] [[package]] name = "num-traits" version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" dependencies = [ "autocfg", ] [[package]] name = "num_cpus" version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1" dependencies = [ "hermit-abi", "libc", ] [[package]] name = "num_threads" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2819ce041d2ee131036f4fc9d6ae7ae125a3a40e97ba64d04fe799ad9dabbb44" dependencies = [ "libc", ] [[package]] name = "once_cell" version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7709cef83f0c1f58f666e746a08b21e0085f7440fa6a29cc194d68aac97a4225" [[package]] name = "parking_lot" version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" dependencies = [ "lock_api", "parking_lot_core", ] [[package]] name = "parking_lot_core" version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09a279cbf25cb0757810394fbc1e359949b59e348145c643a939a525692e6929" dependencies = [ "cfg-if", "libc", "redox_syscall", "smallvec", "windows-sys", ] [[package]] name = "paste" version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c520e05135d6e763148b6426a837e239041653ba7becd2e538c076c738025fc" [[package]] name = "percent-encoding" version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" [[package]] name = "pin-project-lite" version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" [[package]] name = "pin-utils" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "ppv-lite86" version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" [[package]] name = "proc-macro2" version = "1.0.39" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c54b25569025b7fc9651de43004ae593a75ad88543b17178aa5e1b9c4f15f56f" dependencies = [ "unicode-ident", ] [[package]] name = "quote" version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1feb54ed693b93a84e14094943b84b7c4eae204c512b7ccb95ab0c66d278ad1" dependencies = [ "proc-macro2", ] [[package]] name = "rand" version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", "rand_chacha", "rand_core", ] [[package]] name = "rand_chacha" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", "rand_core", ] [[package]] name = "rand_core" version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" dependencies = [ "getrandom", ] [[package]] name = "redis" version = "0.21.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a80b5f38d7f5a020856a0e16e40a9cfabf88ae8f0e4c2dcd8a3114c1e470852" dependencies = [ "async-trait", "bytes", "combine", "dtoa", "futures-util", "itoa 0.4.8", "percent-encoding", "pin-project-lite", "sha1", "tokio", "tokio-util 0.6.10", "url", ] [[package]] name = "redis_practice" version = "0.1.0" dependencies = [ "actix-web", "log", "num", "redis", "serde", "tokio", ] [[package]] name = "redox_syscall" version = "0.2.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "62f25bc4c7e55e0b0b7a1d43fb893f4fa1361d0abe38b9ce4f323c2adfe6ef42" dependencies = [ "bitflags", ] [[package]] name = "regex" version = "1.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d83f127d94bdbcda4c8cc2e50f6f84f4b611f69c902699ca385a39c3a75f9ff1" dependencies = [ "aho-corasick", "memchr", "regex-syntax", ] [[package]] name = "regex-syntax" version = "0.6.26" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49b3de9ec5dc0a3417da371aab17d729997c15010e7fd24ff707773a33bddb64" [[package]] name = "rustc_version" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ "semver", ] [[package]] name = "ryu" version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f3f6f92acf49d1b98f7a81226834412ada05458b7364277387724a237f062695" [[package]] name = "scopeguard" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" [[package]] name = "semver" version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8cb243bdfdb5936c8dc3c45762a19d12ab4550cdc753bc247637d4ec35a040fd" [[package]] name = "serde" version = "1.0.137" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" version = "1.0.137" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "serde_json" version = "1.0.81" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b7ce2b32a1aed03c558dc61a5cd328f15aff2dbc17daad8fb8af04d2100e15c" dependencies = [ "itoa 1.0.2", "ryu", "serde", ] [[package]] name = "serde_urlencoded" version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" dependencies = [ "form_urlencoded", "itoa 1.0.2", "ryu", "serde", ] [[package]] name = "sha-1" version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "028f48d513f9678cda28f6e4064755b3fbb2af6acd672f2c209b62323f7aea0f" dependencies = [ "cfg-if", "cpufeatures", "digest", ] [[package]] name = "sha1" version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c1da05c97445caa12d05e848c4a4fcbbea29e748ac28f7e80e9b010392063770" dependencies = [ "sha1_smol", ] [[package]] name = "sha1_smol" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae1a47186c03a32177042e55dbc5fd5aee900b8e0069a8d70fba96a9375cd012" [[package]] name = "signal-hook-registry" version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" dependencies = [ "libc", ] [[package]] name = "slab" version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eb703cfe953bccee95685111adeedb76fabe4e97549a58d16f03ea7b9367bb32" [[package]] name = "smallvec" version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83" [[package]] name = "socket2" version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "66d72b759436ae32898a2af0a14218dbf55efde3feeb170eb623637db85ee1e0" dependencies = [ "libc", "winapi", ] [[package]] name = "syn" version = "1.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fbaf6116ab8924f39d52792136fb74fd60a80194cf1b1c6ffa6453eef1c3f942" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] [[package]] name = "time" version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2702e08a7a860f005826c6815dcac101b19b5eb330c27fe4a5928fec1d20ddd" dependencies = [ "itoa 1.0.2", "libc", "num_threads", "time-macros", ] [[package]] name = "time-macros" version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42657b1a6f4d817cda8e7a0ace261fe0cc946cf3a80314390b22cc61ae080792" [[package]] name = "tinyvec" version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" dependencies = [ "tinyvec_macros", ] [[package]] name = "tinyvec_macros" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" version = "1.18.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4903bf0427cf68dddd5aa6a93220756f8be0c34fcfa9f5e6191e103e15a31395" dependencies = [ "bytes", "libc", "memchr", "mio", "once_cell", "parking_lot", "pin-project-lite", "signal-hook-registry", "socket2", "winapi", ] [[package]] name = "tokio-util" version = "0.6.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "36943ee01a6d67977dd3f84a5a1d2efeb4ada3a1ae771cadfaa535d9d9fc6507" dependencies = [ "bytes", "futures-core", "futures-sink", "log", "pin-project-lite", "tokio", ] [[package]] name = "tokio-util" version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f988a1a1adc2fb21f9c12aa96441da33a1728193ae0b95d2be22dbd17fcb4e5c" dependencies = [ "bytes", "futures-core", "futures-sink", "pin-project-lite", "tokio", "tracing", ] [[package]] name = "tracing" version = "0.1.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d0ecdcb44a79f0fe9844f0c4f33a342cbcbb5117de8001e6ba0dc2351327d09" dependencies = [ "cfg-if", "log", "pin-project-lite", "tracing-attributes", "tracing-core", ] [[package]] name = "tracing-attributes" version = "0.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cc6b8ad3567499f98a1db7a752b07a7c8c7c7c34c332ec00effb2b0027974b7c" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "tracing-core" version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f54c8ca710e81886d498c2fd3331b56c93aa248d49de2222ad2742247c60072f" dependencies = [ "lazy_static", ] [[package]] name = "typenum" version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987" [[package]] name = "unicode-bidi" version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992" [[package]] name = "unicode-ident" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d22af068fba1eb5edcb4aea19d382b2a3deb4c8f9d475c589b6ada9e0fd493ee" [[package]] name = "unicode-normalization" version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9" dependencies = [ "tinyvec", ] [[package]] name = "url" version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c" dependencies = [ "form_urlencoded", "idna", "matches", "percent-encoding", ] [[package]] name = "version_check" version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "wasi" version = "0.10.2+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "winapi" version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" dependencies = [ "winapi-i686-pc-windows-gnu", "winapi-x86_64-pc-windows-gnu", ] [[package]] name = "winapi-i686-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" [[package]] name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windows-sys" version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2" dependencies = [ "windows_aarch64_msvc", "windows_i686_gnu", "windows_i686_msvc", "windows_x86_64_gnu", "windows_x86_64_msvc", ] [[package]] name = "windows_aarch64_msvc" version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" [[package]] name = "windows_i686_gnu" version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" [[package]] name = "windows_i686_msvc" version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" [[package]] name = "windows_x86_64_gnu" version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" [[package]] name = "windows_x86_64_msvc" version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" [[package]] name = "zstd" version = "0.10.2+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f4a6bd64f22b5e3e94b4e238669ff9f10815c27a5180108b849d24174a83847" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" version = "4.1.6+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94b61c51bb270702d6167b8ce67340d2754b088d0c091b06e593aa772c3ee9bb" dependencies = [ "libc", "zstd-sys", ] [[package]] name = "zstd-sys" version = "1.6.3+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc49afa5c8d634e75761feda8c592051e7eeb4683ba827211eb0d731d3402ea8" dependencies = [ "cc", "libc", ] ```

`Cargo.toml` (probably, related to the problem)

``` [package] name = "redis_practice" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] actix-web = "4.0.1" log = "0.4.17" num = "0.4.0" redis = { version = "0.21.5", features = ["tokio-comp"] } serde = { version = "1.0.137", features = ["derive"] } tokio = "1.18.2" ```

Meta

`rustc --version --verbose`

``` rustc 1.61.0 (fe5b13d68 2022-05-18) binary: rustc commit-hash: fe5b13d681f25ee6474be29d748c65adcd91f69e commit-date: 2022-05-18 host: x86_64-pc-windows-msvc release: 1.61.0 LLVM version: 14.0.0 ```

Error output

``` thread 'rustc' panicked at 'invalid enum variant tag while decoding `TyKind`, expected 0..27', /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\compiler\rustc_middle\src \ty\sty.rs:85:68 stack backtrace: 0: 0x7ff95078988f - ::fmt::h50aa8caf753a2b27 1: 0x7ff9507b4c3a - core::fmt::write::h838fc71521d9a769 2: 0x7ff95077c709 - ::fmt::h36f954dfa88567a7 3: 0x7ff95078ceab - std::panicking::default_hook::h14f77031689d5a65 4: 0x7ff95078ca9e - std::panicking::default_hook::h14f77031689d5a65 5: 0x7ff90c6f2ee6 - rustc_driver[644f353906beda0e]::pretty::print_after_hir_lowering 6: 0x7ff95078d78a - std::panicking::rust_panic_with_hook::h093296cdc6b43259 7: 0x7ff95078d4a2 - ::get::h87de4eb99e2d660b 8: 0x7ff95078a197 - ::fmt::h50aa8caf753a2b27 9: 0x7ff95078d1b9 - rust_begin_unwind 10: 0x7ff9507f2d15 - core::panicking::panic_fmt::h9a20e90cefbba781 11: 0x7ff90fdb63b0 - rustc_query_impl[5f7022dda011ac8e]::profiling_support::alloc_self_profile_query_strings 12: 0x7ff90fe9e817 - <&rustc_index[97636d93679bf2e8]::vec::IndexVec as r ustc_serialize[584b75d47abe7bd3]::serialize::Decodable>::decode 13: 0x7ff90fe291a2 - ::load_side_effects 14: 0x7ff90fe9e8e8 - <&rustc_index[97636d93679bf2e8]::vec::IndexVec as r ustc_serialize[584b75d47abe7bd3]::serialize::Decodable>::decode 15: 0x7ff90fe24a88 - ::load_side_effects 16: 0x7ff90fe38680 - ::fmt 17: 0x7ff9100fbec1 - >::describe 18: 0x7ff9100582e6 - >::describe 19: 0x7ff910166b3b - >::describe 20: 0x7ff90f304f71 - ::visi t_item 21: 0x7ff90f304b6f - rustc_typeck[d01742f453e9ddd4]::check::method::provide 22: 0x7ff90f23791a - ::fold_region 23: 0x7ff90fe378b5 - ::fmt 24: 0x7ff90ff1d41b - >::describe 25: 0x7ff90ffeafb6 - >::describe 26: 0x7ff90ff8fbca - >::describe 27: 0x7ff90ff37757 - >::describe 28: 0x7ff910d46d73 - ::try_force_from_dep_node 29: 0x7ff90fee784f - >::describe 30: 0x7ff90fee7827 - >::describe 31: 0x7ff90fee7827 - >::describe 32: 0x7ff90fee7827 - >::describe 33: 0x7ff90ff9e2ca - >::describe 34: 0x7ff910147f50 - >::describe 35: 0x7ff90f240bef - ::fmt 36: 0x7ff90f3299c0 - ::into_diagno stic 37: 0x7ff90f1b6545 - rustc_typeck[d01742f453e9ddd4]::check_crate 38: 0x7ff90c86752f - rustc_interface[897cdb8f2c10f1bf]::passes::analysis 39: 0x7ff90fe3776e - ::fmt 40: 0x7ff90ff197ef - >::describe 41: 0x7ff9100b0d9b - >::describe 42: 0x7ff910166c66 - >::describe 43: 0x7ff90c6b65df - ::increment 44: 0x7ff90c71c5cd - ::fmt 45: 0x7ff90c6a87b0 - ::fmt 46: 0x7ff90c73b390 - ::fmt 47: 0x7ff90c6a9ca7 - ::fmt 48: 0x7ff90c718396 - ::fmt 49: 0x7ff90c6b4c68 - ::increment 50: 0x7ff95079cb4c - std::sys::windows::thread::Thread::new::h866e729703db88c5 51: 0x7ff99d047034 - BaseThreadInitThunk 52: 0x7ff99d182651 - RtlUserThreadStart error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md note: rustc 1.61.0 (fe5b13d68 2022-05-18) running on x86_64-pc-windows-msvc note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental note: some of the compiler flags provided by cargo are hidden query stack during panic: thread 'rustc' panicked at 'Illegal read of: 951', /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e\compiler\rustc_query_system\src\dep_graph\graph.rs:436:25 stack backtrace: 0: 0x7ff95078988f - ::fmt::h50aa8caf753a2b27 1: 0x7ff9507b4c3a - core::fmt::write::h838fc71521d9a769 2: 0x7ff95077c709 - ::fmt::h36f954dfa88567a7 3: 0x7ff95078ceab - std::panicking::default_hook::h14f77031689d5a65 4: 0x7ff95078ca9e - std::panicking::default_hook::h14f77031689d5a65 5: 0x7ff90c6f2ee6 - rustc_driver[644f353906beda0e]::pretty::print_after_hir_lowering 6: 0x7ff95078d78a - std::panicking::rust_panic_with_hook::h093296cdc6b43259 7: 0x7ff95078d4dd - ::get::h87de4eb99e2d660b 8: 0x7ff95078a197 - ::fmt::h50aa8caf753a2b27 9: 0x7ff95078d1b9 - rust_begin_unwind 10: 0x7ff9507f2d15 - core::panicking::panic_fmt::h9a20e90cefbba781 11: 0x7ff90fe32ea4 - ::fmt 12: 0x7ff9101260c1 - >::describe 13: 0x7ff90fdd1e65 - <&[rustc_middle[f8c5bc87ecf9dc9e]::thir::abstract_const::Node] as rustc_serialize[584b75d47abe7bd3]::serialize::Decodable>::decode 14: 0x7ff90fea6874 - >::describe 15: 0x7ff90ff42dd9 - >::describe 16: 0x7ff90ff7152b - >::describe 17: 0x7ff90fe0fd74 - ::new 18: 0x7ff90fdd0d85 - ::try_print_query_stack 19: 0x7ff90c7f7ad9 - rustc_interface[897cdb8f2c10f1bf]::interface::try_print_query_stack 20: 0x7ff90c6fece2 - rustc_driver[644f353906beda0e]::report_ice 21: 0x7ff95078d78a - std::panicking::rust_panic_with_hook::h093296cdc6b43259 22: 0x7ff95078d4a2 - ::get::h87de4eb99e2d660b 23: 0x7ff95078a197 - ::fmt::h50aa8caf753a2b27 24: 0x7ff95078d1b9 - rust_begin_unwind 25: 0x7ff9507f2d15 - core::panicking::panic_fmt::h9a20e90cefbba781 26: 0x7ff90fdb63b0 - rustc_query_impl[5f7022dda011ac8e]::profiling_support::alloc_self_profile_query_strings 27: 0x7ff90fe9e817 - <&rustc_index[97636d93679bf2e8]::vec::IndexVec as r ustc_serialize[584b75d47abe7bd3]::serialize::Decodable>::decode 28: 0x7ff90fe291a2 - ::load_side_effects 29: 0x7ff90fe9e8e8 - <&rustc_index[97636d93679bf2e8]::vec::IndexVec as r ustc_serialize[584b75d47abe7bd3]::serialize::Decodable>::decode 30: 0x7ff90fe24a88 - ::load_side_effects 31: 0x7ff90fe38680 - ::fmt 32: 0x7ff9100fbec1 - >::describe 33: 0x7ff9100582e6 - >::describe 34: 0x7ff910166b3b - >::describe 35: 0x7ff90f304f71 - ::visi t_item 36: 0x7ff90f304b6f - rustc_typeck[d01742f453e9ddd4]::check::method::provide 37: 0x7ff90f23791a - ::fold_region 38: 0x7ff90fe378b5 - ::fmt 39: 0x7ff90ff1d41b - >::describe 40: 0x7ff90ffeafb6 - >::describe 41: 0x7ff90ff8fbca - >::describe 42: 0x7ff90ff37757 - >::describe 43: 0x7ff910d46d73 - ::try_force_from_dep_node 44: 0x7ff90fee784f - >::describe 45: 0x7ff90fee7827 - >::describe 46: 0x7ff90fee7827 - >::describe 47: 0x7ff90fee7827 - >::describe 48: 0x7ff90ff9e2ca - >::describe 49: 0x7ff910147f50 - >::describe 50: 0x7ff90f240bef - ::fmt 51: 0x7ff90f3299c0 - ::into_diagno stic 52: 0x7ff90f1b6545 - rustc_typeck[d01742f453e9ddd4]::check_crate 53: 0x7ff90c86752f - rustc_interface[897cdb8f2c10f1bf]::passes::analysis 54: 0x7ff90fe3776e - ::fmt 55: 0x7ff90ff197ef - >::describe 56: 0x7ff9100b0d9b - >::describe 57: 0x7ff910166c66 - >::describe 58: 0x7ff90c6b65df - ::increment 59: 0x7ff90c71c5cd - ::fmt 60: 0x7ff90c6a87b0 - ::fmt 61: 0x7ff90c73b390 - ::fmt 62: 0x7ff90c6a9ca7 - ::fmt 63: 0x7ff90c718396 - ::fmt 64: 0x7ff90c6b4c68 - ::increment 65: 0x7ff95079cb4c - std::sys::windows::thread::Thread::new::h866e729703db88c5 66: 0x7ff99d047034 - BaseThreadInitThunk 67: 0x7ff99d182651 - RtlUserThreadStart error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md note: rustc 1.61.0 (fe5b13d68 2022-05-18) running on x86_64-pc-windows-msvc note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental note: some of the compiler flags provided by cargo are hidden query stack during panic: end of query stack thread panicked while panicking. aborting. error: could not compile `redis_practice` Caused by: process didn't exit successfully: `rustc --crate-name redis_practice --edition=2021 src\main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-i ncompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=b5e47f51c70c0554 --out-dir C:\Users\megahomyak\YandexDisk\projects\rust\red is_practice\target\debug\deps -C incremental=C:\Users\megahomyak\YandexDisk\projects\rust\redis_practice\target\debug\incremental -L dependency=C:\Users\megahomyak\Yand exDisk\projects\rust\redis_practice\target\debug\deps --extern actix_web=C:\Users\megahomyak\YandexDisk\projects\rust\redis_practice\target\debug\deps\libactix_web-807a 4089cfc838f8.rlib --extern log=C:\Users\megahomyak\YandexDisk\projects\rust\redis_practice\target\debug\deps\liblog-8226a3a70c37b94b.rlib --extern num=C:\Users\megahomy ak\YandexDisk\projects\rust\redis_practice\target\debug\deps\libnum-09abed49f86861e0.rlib --extern redis=C:\Users\megahomyak\YandexDisk\projects\rust\redis_practice\tar get\debug\deps\libredis-4070fd16b399e66a.rlib --extern serde=C:\Users\megahomyak\YandexDisk\projects\rust\redis_practice\target\debug\deps\libserde-6d4e2e7c986e8a84.rli b --extern tokio=C:\Users\megahomyak\YandexDisk\projects\rust\redis_practice\target\debug\deps\libtokio-204429db7557b707.rlib -L native=C:\Users\megahomyak\.cargo\regis try\src\github.com-1ecc6299db9ec823\windows_x86_64_msvc-0.36.1\lib -L native=C:\Users\megahomyak\YandexDisk\projects\rust\redis_practice\target\debug\build\zstd-sys-f80 10d52876bd633\out` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN) ```
cjgillot commented 2 years ago

This is very weird. The backtrace points to incremental compilation, but the error comes from serialization/deserialization. Did this bug start to appear just after a compiler upgrade? (This might be related to the fact that you upgraded, not to the version itself.)

megahomyak commented 2 years ago

Did this bug start to appear just after a compiler upgrade?

Probably yes, I don't remember seeing it before. Right now I accidentally moved my target/ directory from C:\Users\megahomyak\YandexDisk\projects\rust\redis_practice\target to C:\root\rustc_target_dirs\blog\target\, while trying to speed up builds on WSL and the problem seem to disappear (on WSL, this problem wasn't appearing, or I just don't remember it; on WSL, going to the Windows filesystem is very slow, and this workaround makes compilation much faster). YandexDisk is not just a regular directory, it's a directory that is being synced to the cloud, and I don't know how this is implemented, but I think that it is the cause of the problem.