Auto merge of #52764 - sinkuu:cleanup, r=nikomatsakis

Misc cleanups
This commit is contained in:
bors 2018-07-29 06:32:24 +00:00
commit a5c2d0fffa
20 changed files with 50 additions and 73 deletions

View file

@ -206,9 +206,8 @@ fn exported_symbols_provider_local<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
})
.collect();
if let Some(_) = *tcx.sess.entry_fn.borrow() {
let symbol_name = "main".to_string();
let exported_symbol = ExportedSymbol::NoDefId(SymbolName::new(&symbol_name));
if tcx.sess.entry_fn.borrow().is_some() {
let exported_symbol = ExportedSymbol::NoDefId(SymbolName::new("main"));
symbols.push((exported_symbol, SymbolExportLevel::C));
}