]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_ssa/src/back/symbol_export.rs
Auto merge of #2650 - RalfJung:rustup, r=RalfJung
[rust.git] / compiler / rustc_codegen_ssa / src / back / symbol_export.rs
index c2ecc41601c8c92bdddacb5b6fa592881d7946f3..752f6b1ef40c92fcdd64994d03c715f9ad6ee90b 100644 (file)
@@ -193,8 +193,11 @@ fn exported_symbols_provider_local<'tcx>(
     }
 
     if tcx.allocator_kind(()).is_some() {
-        for method in ALLOCATOR_METHODS {
-            let symbol_name = format!("__rust_{}", method.name);
+        for symbol_name in ALLOCATOR_METHODS
+            .iter()
+            .map(|method| format!("__rust_{}", method.name))
+            .chain(["__rust_alloc_error_handler".to_string(), OomStrategy::SYMBOL.to_string()])
+        {
             let exported_symbol = ExportedSymbol::NoDefId(SymbolName::new(tcx, &symbol_name));
 
             symbols.push((