diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index d4fa0f7d1f080..bbb32e58f12f5 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -2319,7 +2319,7 @@ mod tests { assert!(reference.dep_tracking_hash() != opts.dep_tracking_hash()); opts = reference.clone(); - opts.cg.panic = PanicStrategy::Abort; + opts.cg.panic = Some(PanicStrategy::Abort); assert!(reference.dep_tracking_hash() != opts.dep_tracking_hash()); }