Skip to content

Commit 9edeb19

Browse files
committed
Allow internal untranslatable diagnostic
1 parent 6e2adbf commit 9edeb19

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_hir_typeck/src/callee.rs

+3
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
380380
// Unit testing: function items annotated with
381381
// `#[rustc_evaluate_where_clauses]` trigger special output
382382
// to let us test the trait evaluation system.
383+
// Untranslatable diagnostics are okay for rustc internals
384+
#[allow(rustc::untranslatable_diagnostic)]
385+
#[allow(rustc::diagnostic_outside_of_impl)]
383386
if self.tcx.has_attr(def_id, sym::rustc_evaluate_where_clauses) {
384387
let predicates = self.tcx.predicates_of(def_id);
385388
let predicates = predicates.instantiate(self.tcx, args);

0 commit comments

Comments
 (0)