forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new
bckerr_code
variant for my warning-cycled error for rust-la…
…ng#31567. My new variant, for better or worse, is carrying data that needs the `'tcx` lifetime, so I am threading that onto `bckerr_code`, for better or worse. One might reasonably aruge that the `BckError` already carries a `mc::cmt<'tcx>`, but I claim that distinguishing the identified destructor type is important for the quality of the presented error message. (I am also passing along the identified `owner` lvalue, which is probably of more use for internal debugging and less for error reporting, but we may still want to try to work it into the user-facing message as well.)
- Loading branch information
Showing
1 changed file
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters