We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db74e1f commit 9e3f94dCopy full SHA for 9e3f94d
compiler/rustc_session/src/config.rs
@@ -749,7 +749,9 @@ pub fn default_configuration(sess: &Session) -> CrateConfig {
749
let min_atomic_width = sess.target.target.min_atomic_width();
750
let max_atomic_width = sess.target.target.max_atomic_width();
751
let atomic_cas = sess.target.target.options.atomic_cas;
752
- let layout = TargetDataLayout::parse(&sess.target.target).unwrap();
+ let layout = TargetDataLayout::parse(&sess.target.target).unwrap_or_else(|err| {
753
+ sess.fatal(&err);
754
+ });
755
756
let mut ret = FxHashSet::default();
757
ret.reserve(6); // the minimum number of insertions
0 commit comments