-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Move some diagnostic-relevant methods from InferCtxt to TypeErrCtxt #127503
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
Move some diagnostic-relevant methods from InferCtxt to TypeErrCtxt #127503
Conversation
|
Some changes occurred in need_type_info.rs cc @lcnr |
This comment has been minimized.
This comment has been minimized.
|
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
lcnr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me after nit
| } | ||
|
|
||
| impl<'tcx> InferCtxt<'tcx> { | ||
| impl<'tcx> TypeErrCtxt<'_, 'tcx> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can merge the impl blocks here
| } | ||
| } | ||
|
|
||
| impl<'tcx> InferCtxt<'tcx> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here 🤔
|
☔ The latest upstream changes (presumably #127493) made this pull request unmergeable. Please resolve the merge conflicts. |
|
This is impossible to rebase! |
Self-explanatory. IDK why these weren't moved onto
TypeErrCtxtwhen that struct was created? Maybe just an oversight.cc #127492
r? lcnr