We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d86e6a commit ba46b68Copy full SHA for ba46b68
compiler/rustc_middle/src/ty/context.rs
@@ -192,7 +192,9 @@ impl<'tcx> CtxtInterners<'tcx> {
192
193
// It's impossible to hash inference variables (and will ICE), so we don't need to try to cache them.
194
// Without incremental, we rarely stable-hash types, so let's not do it proactively.
195
- let stable_hash = if flags.flags.intersects(TypeFlags::NEEDS_INFER) {
+ let stable_hash = if flags.flags.intersects(TypeFlags::NEEDS_INFER)
196
+ || sess.opts.incremental.is_none()
197
+ {
198
Fingerprint::ZERO
199
} else {
200
let mut hasher = StableHasher::new();
0 commit comments