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_passes/src/check_const.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_passes/src/check_const.rs')
| -rw-r--r-- | compiler/rustc_passes/src/check_const.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/check_const.rs b/compiler/rustc_passes/src/check_const.rs index 3e3f2771f5f..3676eb92a3f 100644 --- a/compiler/rustc_passes/src/check_const.rs +++ b/compiler/rustc_passes/src/check_const.rs @@ -147,7 +147,7 @@ impl<'tcx> CheckConstVisitor<'tcx> { [missing_primary, ref missing_secondary @ ..] => { let msg = format!("{} is not allowed in a `{}`", expr.name(), const_kind.keyword_name()); - let mut err = feature_err(&tcx.sess.parse_sess, *missing_primary, span, msg); + let mut err = feature_err(&tcx.sess, *missing_primary, span, msg); // If multiple feature gates would be required to enable this expression, include // them as help messages. Don't emit a separate error for each missing feature gate. |
