diff options
| author | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-08-07 18:28:52 +0300 |
|---|---|---|
| committer | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-08-10 14:32:55 +0300 |
| commit | 43f3a218eaa3eb7f4724b064102ad3374092c813 (patch) | |
| tree | ec63e48b01bd305681200111e24942c2d79b173f /compiler/rustc_const_eval/src | |
| parent | f83b085a0c623652ec536e69fc98ae5ebffaca4c (diff) | |
| download | rust-43f3a218eaa3eb7f4724b064102ad3374092c813.tar.gz rust-43f3a218eaa3eb7f4724b064102ad3374092c813.zip | |
rustc_const_eval: remove redundant `#[allow(rustc::untranslatable_diagnostic)]`
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/check_consts/ops.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/check_consts/ops.rs b/compiler/rustc_const_eval/src/check_consts/ops.rs index f47a2ec8f75..063e12fc9ec 100644 --- a/compiler/rustc_const_eval/src/check_consts/ops.rs +++ b/compiler/rustc_const_eval/src/check_consts/ops.rs @@ -605,8 +605,6 @@ impl<'tcx> NonConstOp<'tcx> for StaticAccess { span, format!("referencing statics in {}s is unstable", ccx.const_kind(),), ); - // FIXME: make this translatable - #[allow(rustc::untranslatable_diagnostic)] err .note("`static` and `const` variables can refer to other `const` variables. A `const` variable, however, cannot refer to a `static` variable.") .help("to fix this, the value can be extracted to a `const` and then used."); |
