diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2023-09-15 01:07:28 +0000 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2023-09-15 14:24:58 +0000 |
| commit | 9edeb19f9609ba82e4a0401e70dd704abddea4bc (patch) | |
| tree | b1149a6595f9c48b1c4beaae252506aea1f52544 | |
| parent | 6e2adbf6a30334dabf20403bd0810f69972e5cf4 (diff) | |
| download | rust-9edeb19f9609ba82e4a0401e70dd704abddea4bc.tar.gz rust-9edeb19f9609ba82e4a0401e70dd704abddea4bc.zip | |
Allow internal untranslatable diagnostic
| -rw-r--r-- | compiler/rustc_hir_typeck/src/callee.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_hir_typeck/src/callee.rs b/compiler/rustc_hir_typeck/src/callee.rs index c5b2aaf2361..8c47eed05e9 100644 --- a/compiler/rustc_hir_typeck/src/callee.rs +++ b/compiler/rustc_hir_typeck/src/callee.rs @@ -380,6 +380,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { // Unit testing: function items annotated with // `#[rustc_evaluate_where_clauses]` trigger special output // to let us test the trait evaluation system. + // Untranslatable diagnostics are okay for rustc internals + #[allow(rustc::untranslatable_diagnostic)] + #[allow(rustc::diagnostic_outside_of_impl)] if self.tcx.has_attr(def_id, sym::rustc_evaluate_where_clauses) { let predicates = self.tcx.predicates_of(def_id); let predicates = predicates.instantiate(self.tcx, args); |
