-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Fixed #17823 #30937
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
Fixed #17823 #30937
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Aatch (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
I have a few questions. I fixed but and I formatted |
Could the rustfmt changes be separated out? Unfortunately they're large enough that github doesn't display the diff :( |
@alexcrichton Yes. I can. Should I close this pull request? |
Nah feel free to just force-push this branch to one of the changes and open another for the other change |
@alexcrichton I don't understand you. I am new to git. May we chat somewhere? |
Ah yeah what's here is fine, you may want to also try an interactive git rebase to remove the first two commits so the PR only contains the last one. r? @nrc |
@@ -479,6 +479,14 @@ impl<'a, 'tcx> ErrorReporting<'tcx> for InferCtxt<'a, 'tcx> { | |||
trace: TypeTrace<'tcx>, | |||
terr: &TypeError<'tcx>) | |||
-> DiagnosticBuilder<'tcx> { | |||
fn is_simple_type<'tcx>(ty: Ty<'tcx>) -> bool { |
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.
This should be a method on TyS
rather than a function here - is_primitive
maybe
@alexcrichton I already pushed commits. How to remove it? |
The |
There is "all before you share your work with others." on that page. I already pushed changes to repository. |
That's moreso a message for when you've pushed to the branch of a repo, these haven't been published yet as they're just a PR. |
But my repository already has those commits. What should I do to erase them? Should I do another fork? |
I know how to do that. I must close PR and open new with correct changes. Is it right? |
#30953 New PR. |
@KalitaAlexey you don't need to close the PR, a branch on your repo doesn't count as 'public', only a branch on a repo other people use. So you can force push to your old branch, keeping the PR open. |
No description provided.