]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_ssa/src/lib.rs
Auto merge of #104947 - cjgillot:verify-hir-nest, r=oli-obk
[rust.git] / compiler / rustc_codegen_ssa / src / lib.rs
index ade33b6c77728defec98a0e57bfc8d3e8b20c869..def6390f6a36bcbd15d9610ceaa412eef883eeda 100644 (file)
@@ -116,7 +116,7 @@ pub struct NativeLib {
     pub name: Option<Symbol>,
     pub filename: Option<Symbol>,
     pub cfg: Option<ast::MetaItem>,
-    pub verbatim: Option<bool>,
+    pub verbatim: bool,
     pub dll_imports: Vec<cstore::DllImport>,
 }
 
@@ -127,7 +127,7 @@ fn from(lib: &cstore::NativeLib) -> Self {
             filename: lib.filename,
             name: lib.name,
             cfg: lib.cfg.clone(),
-            verbatim: lib.verbatim,
+            verbatim: lib.verbatim.unwrap_or(false),
             dll_imports: lib.dll_imports.clone(),
         }
     }