1
Fork 0

Rollup merge of #64781 - Mark-Simulacrum:no-global-tcx, r=eddyb

Remove stray references to the old global tcx
This commit is contained in:
Mazdak Farrokhzad 2019-09-28 05:37:43 +02:00 committed by GitHub
commit 4db233e454
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 97 additions and 209 deletions

View file

@ -1462,7 +1462,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
// type-checking closure types are in local tables only.
if !self.in_progress_tables.is_some() || !ty.has_closure_types() {
if !(param_env, ty).has_local_value() {
return ty.is_copy_modulo_regions(self.tcx.global_tcx(), param_env, span);
return ty.is_copy_modulo_regions(self.tcx, param_env, span);
}
}