diff options
Diffstat (limited to 'src/librustc_trans/back/linker.rs')
| -rw-r--r-- | src/librustc_trans/back/linker.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_trans/back/linker.rs b/src/librustc_trans/back/linker.rs index ec436bcb241..1eb3e86a15b 100644 --- a/src/librustc_trans/back/linker.rs +++ b/src/librustc_trans/back/linker.rs @@ -34,11 +34,11 @@ pub struct LinkerInfo { } impl<'a, 'tcx> LinkerInfo { - pub fn new(scx: &SharedCrateContext<'a, 'tcx>, - exports: &ExportedSymbols) -> LinkerInfo { + pub fn new(scx: &SharedCrateContext<'a, 'tcx>) -> LinkerInfo { + let exports = scx.tcx().exported_symbols(); LinkerInfo { exports: scx.sess().crate_types.borrow().iter().map(|&c| { - (c, exported_symbols(scx, exports, c)) + (c, exported_symbols(scx, &exports, c)) }).collect(), } } |
