Unnecessary to_string
This commit is contained in:
parent
8296699fae
commit
4c1cb7534b
|
@ -206,9 +206,8 @@ fn exported_symbols_provider_local<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
if let Some(_) = *tcx.sess.entry_fn.borrow() {
|
if tcx.sess.entry_fn.borrow().is_some() {
|
||||||
let symbol_name = "main".to_string();
|
let exported_symbol = ExportedSymbol::NoDefId(SymbolName::new("main"));
|
||||||
let exported_symbol = ExportedSymbol::NoDefId(SymbolName::new(&symbol_name));
|
|
||||||
|
|
||||||
symbols.push((exported_symbol, SymbolExportLevel::C));
|
symbols.push((exported_symbol, SymbolExportLevel::C));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue