Skip to content

Commit b0cfeec

Browse files
committed
translations(rustc_session): migrates session.rs and config.rs
1 parent 7200da0 commit b0cfeec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_session/src/config.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Contains infrastructure for configuring the compiler, including parsing
22
//! command-line options.
33
4+
use crate::errors::TargetDataLayoutParseError;
45
pub use crate::options::*;
56

67
use crate::search_paths::SearchPath;
@@ -898,7 +899,7 @@ fn default_configuration(sess: &Session) -> CrateConfig {
898899
let max_atomic_width = sess.target.max_atomic_width();
899900
let atomic_cas = sess.target.atomic_cas;
900901
let layout = TargetDataLayout::parse(&sess.target).unwrap_or_else(|err| {
901-
sess.emit_fatal(err);
902+
sess.emit_fatal(TargetDataLayoutParseError { err });
902903
});
903904

904905
let mut ret = CrateConfig::default();

0 commit comments

Comments
 (0)