-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
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 |
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
@@ -398,7 +398,7 @@ pub fn unexpected_hidden_region_diagnostic<'a, 'tcx>( | |||
err | |||
} | |||
|
|||
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
@@ -2792,7 +2792,7 @@ impl<'tcx> TypeRelation<TyCtxt<'tcx>> for SameTypeModuloInfer<'_, 'tcx> { | |||
} | |||
} | |||
|
|||
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
TypeErrCtxt
when that struct was created? Maybe just an oversight.cc #127492
r? lcnr