1
Fork 0

Unify all uses of 'gcx and 'tcx.

This commit is contained in:
Eduard-Mihai Burtescu 2019-06-14 00:48:52 +03:00
parent 0e4a56b4b0
commit f3f9d6dfd9
341 changed files with 3109 additions and 3327 deletions

View file

@ -367,7 +367,7 @@ pub fn provide_extern(providers: &mut Providers<'_>) {
};
}
fn wasm_import_module(tcx: TyCtxt<'_, '_>, id: DefId) -> Option<CString> {
fn wasm_import_module(tcx: TyCtxt<'_>, id: DefId) -> Option<CString> {
tcx.wasm_import_module_map(id.krate)
.get(&id)
.map(|s| CString::new(&s[..]).unwrap())