Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 6 pull requests #115909

Merged
merged 20 commits into from
Sep 17, 2023
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
a38ea96
Remove Drop impl of mpsc Receiver and (Sync)Sender
benschulz Aug 18, 2023
9c0e5eb
fix `Debug` impl for `AsciiChar`
soqb Sep 1, 2023
0eb4133
Unimpl Shl, ShlAssign, Shr and ShrAssign for Saturating
kellerkindt Jul 26, 2023
ad54426
Stabilize the Saturating type (saturating_int_impl, gh-87920)
kellerkindt Jul 26, 2023
d990eee
add diagnostic for raw identifiers in format string
Sep 6, 2023
7740476
explain PassMode::Cast
RalfJung Sep 7, 2023
89139d4
clarify PassMode::Indirect as well
RalfJung Sep 8, 2023
29a4b7b
fix gcc, cranelift build
RalfJung Sep 9, 2023
3ee65c2
cannot have Direct for unsized types
RalfJung Sep 15, 2023
6e2adbf
Migrate 'explicit destructor call' diagnostic
clubby789 Sep 15, 2023
9edeb19
Allow internal untranslatable diagnostic
clubby789 Sep 15, 2023
b40f11c
Migrate 'rust-call incorrect arguments' diagnostic
clubby789 Sep 15, 2023
cb9f666
Migrate 'invalid callee' diagnostic
clubby789 Sep 15, 2023
8696ee8
Migrate 'missing fn lang items' diagnostic
clubby789 Sep 15, 2023
7cbe7fa
Rollup merge of #114965 - benschulz:mpsc-drop, r=dtolnay
Dylan-DPC Sep 17, 2023
584eb69
Rollup merge of #115434 - soqb:ascii-char-manual-debug, r=dtolnay
Dylan-DPC Sep 17, 2023
6011fd4
Rollup merge of #115477 - kellerkindt:stabilized_int_impl, r=dtolnay
Dylan-DPC Sep 17, 2023
0900712
Rollup merge of #115611 - lukas-code:format!("{r#ident}"), r=compiler…
Dylan-DPC Sep 17, 2023
0c5f5b6
Rollup merge of #115654 - RalfJung:pass-mode-cast, r=compiler-errors
Dylan-DPC Sep 17, 2023
f082f1d
Rollup merge of #115862 - clubby789:migrate-callee-translatable, r=co…
Dylan-DPC Sep 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Allow internal untranslatable diagnostic
  • Loading branch information
clubby789 committed Sep 15, 2023
commit 9edeb19f9609ba82e4a0401e70dd704abddea4bc
3 changes: 3 additions & 0 deletions compiler/rustc_hir_typeck/src/callee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down