- self.with_lint_attrs(it.hir_id, &it.attrs, |cx| {
- cx.with_param_env(it.hir_id, |cx| {
+ let old_cached_typeck_results = self.context.cached_typeck_results.take();
+ let old_enclosing_body = self.context.enclosing_body.take();
+ self.with_lint_attrs(it.hir_id(), &it.attrs, |cx| {
+ cx.with_param_env(it.hir_id(), |cx| {