{"record":{"id":"0937c72890db5359","repo":"jdx/mise","slug":"cached-rustc-action-descriptor-does-not-match-the","errorCode":null,"errorMessage":"cached rustc action descriptor does not match the invocation","messagePattern":"cached rustc action descriptor does not match the invocation","errorType":"exception","errorClass":"eyre::Report","httpStatus":null,"severity":"error","filePath":"src/cache/rustc.rs","lineNumber":308,"sourceCode":"        _ => bail!(\"cache agent returned an unexpected action lookup response\"),\n    };\n    if result.version != 1 || result.action != action.digest {\n        bail!(\"cached rustc action result has an invalid identity\");\n    }\n    let metadata_digest = result\n        .metadata\n        .ok_or_else(|| eyre::eyre!(\"cached rustc action result has no metadata\"))?;\n    let output_root_digest = result\n        .output_root\n        .ok_or_else(|| eyre::eyre!(\"cached rustc action result has no output root\"))?;\n    let roots = find_blobs(&[\n        action.digest.clone(),\n        metadata_digest.clone(),\n        output_root_digest.clone(),\n    ])?;\n    let cached_action = read_verified_blob(&roots[0], &action.digest, \"action descriptor\")?;\n    if cached_action != action.bytes {\n        bail!(\"cached rustc action descriptor does not match the invocation\");\n    }\n    let metadata: RustcMetadata =\n        read_canonical_blob(&roots[1], &metadata_digest, \"rustc metadata\")?;\n    if metadata.version != 1 || metadata.kind != \"rustc\" {\n        bail!(\"cached rustc metadata is unsupported\");\n    }\n    let directory: CacheDirectory =\n        read_canonical_blob(&roots[2], &output_root_digest, \"output directory\")?;\n    let files = validated_outputs(directory, outputs)?;\n    let cached_outputs = files\n        .iter()\n        .map(|(node, destination)| CachedOutput {\n            path: destination.clone(),\n            digest: node.digest.clone(),\n            mode: node.mode,\n        })\n        .collect();\n    let restored_output_files = files.len().try_into().unwrap_or(u64::MAX);","sourceCodeStart":290,"sourceCodeEnd":326,"githubUrl":"https://github.com/jdx/mise/blob/6f52dcdf99e282ef7a7db68c81301fa4618d0f79/src/cache/rustc.rs#L290-L326","documentation":"Error \"cached rustc action descriptor does not match the invocation\" thrown in jdx/mise.","triggerScenarios":"Thrown at src/cache/rustc.rs:308 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Evict the stale cached action result; it no longer matches the current rustc invocation.","Rebuild after clearing the local action cache."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6f52dcdf99e282ef7a7db68c81301fa4618d0f79","analyzedAt":"2026-08-22T10:14:23.840Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}