rust/compiler/rustc_infer/src/errors
Nicholas Nethercote d6c63bdb21 Fix up DescriptionCtx::new.
The comment mentions that `ReBound` and `ReVar` aren't expected here.
Experimentation with the full test suite indicates this is true, and
that `ReErased` also doesn't occur. So the commit introduces `bug!` for
those cases. (If any of them show up later on, at least we'll have a
test case.)

The commit also remove the first sentence in the comment.
`RePlaceholder` is now handled in the match arm above this comment and
nothing is printed for it, so that sentence is just wrong. Furthermore,
issue #13998 was closed some time ago.
2024-05-09 20:15:44 +10:00
..
mod.rs Pass translation closure to add_to_diag_with() as reference 2024-04-21 07:45:03 +00:00
note_and_explain.rs Fix up DescriptionCtx::new. 2024-05-09 20:15:44 +10:00