-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Account for common impl Trait
/dyn Trait
return type errors
#68195
Merged
Commits on Jan 16, 2020
-
Specific error for unsized
dyn Trait
return typeSuggest `impl Trait` when possible, and `Box<dyn Trait>` otherwise.
Configuration menu - View commit details
-
Copy full SHA for 6fd5641 - Browse repository at this point
Copy the full SHA 6fd5641View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75eabb1 - Browse repository at this point
Copy the full SHA 75eabb1View commit details -
Elide E0308 errors in favor of E0746
When a type error involves a `dyn Trait` as the return type, do not emit the type error, as the "return type is not `Sized`" error will provide enough information to the user.
Configuration menu - View commit details
-
Copy full SHA for ea7e885 - Browse repository at this point
Copy the full SHA ea7e885View commit details -
Configuration menu - View commit details
-
Copy full SHA for b4bbe78 - Browse repository at this point
Copy the full SHA b4bbe78View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1dd8a9 - Browse repository at this point
Copy the full SHA e1dd8a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93293c5 - Browse repository at this point
Copy the full SHA 93293c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c13d25 - Browse repository at this point
Copy the full SHA 4c13d25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00c8272 - Browse repository at this point
Copy the full SHA 00c8272View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a75ef9 - Browse repository at this point
Copy the full SHA 4a75ef9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b36c18 - Browse repository at this point
Copy the full SHA 5b36c18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 509cb33 - Browse repository at this point
Copy the full SHA 509cb33View commit details -
Configuration menu - View commit details
-
Copy full SHA for c305ac3 - Browse repository at this point
Copy the full SHA c305ac3View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7a6212 - Browse repository at this point
Copy the full SHA d7a6212View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00e2626 - Browse repository at this point
Copy the full SHA 00e2626View commit details -
Configuration menu - View commit details
-
Copy full SHA for 029a9c6 - Browse repository at this point
Copy the full SHA 029a9c6View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.