diff options
| author | George-lewis <george-lewis@user.noreply.github.com> | 2024-01-10 00:37:30 -0500 |
|---|---|---|
| committer | George-lewis <george-lewis@user.noreply.github.com> | 2024-01-13 12:11:13 -0500 |
| commit | 36a69e9d39b3dd49fefa2f84b2787a50230e0a32 (patch) | |
| tree | bf367cb5d5cd412e5c8a5602bdadc1a1d9b3185c /compiler/rustc_ast_lowering/src/lib.rs | |
| parent | b55faad3149ecf196a498ea1c0cf6195f22c9d89 (diff) | |
| download | rust-36a69e9d39b3dd49fefa2f84b2787a50230e0a32.tar.gz rust-36a69e9d39b3dd49fefa2f84b2787a50230e0a32.zip | |
Add check for ui_testing via promoting parameters from `ParseSess` to `Session`
Diffstat (limited to 'compiler/rustc_ast_lowering/src/lib.rs')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs index d2d42a15808..5387880b6e6 100644 --- a/compiler/rustc_ast_lowering/src/lib.rs +++ b/compiler/rustc_ast_lowering/src/lib.rs @@ -1043,7 +1043,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { { add_feature_diagnostics( &mut err, - &self.tcx.sess.parse_sess, + &self.tcx.sess, sym::return_type_notation, ); } @@ -2310,7 +2310,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { hir::ArrayLen::Infer(self.lower_node_id(c.id), self.lower_span(c.value.span)) } else { feature_err( - &self.tcx.sess.parse_sess, + &self.tcx.sess, sym::generic_arg_infer, c.value.span, "using `_` for array lengths is unstable", |
