-
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
Add DynSized trait (rebase of #44469) #46108
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
a18bd5a
Add a DynSized trait.
plietar 959e988
Make <*const T>::is_null() and al work with T: ?DynSized.
plietar e9639d1
Fix tests for DynSized
plietar ec6809d
Add DynSized related tests
plietar 537da97
Fix tidy errors
plietar 76c6636
Fix typo by me
mikeyhew 136cd10
add DynSized query variants to plumbing
mikeyhew 0531eb5
fix some auto_trait tests by removing the DynSized bound
mikeyhew fe40804
allow ?Trait bounds in auto traits
mikeyhew 38efc95
don't print `DynSized` in conflicting trait impl error messages
mikeyhew 76b2086
don't bug! if the unsized struct tail isn't [T], str, or a trait object
mikeyhew 83cffc8
shorten line for tidy
mikeyhew 76ab610
fix run-make/simd-ffi test
mikeyhew d308bee
add ?Dynsized support to rustic
mikeyhew a36e2fe
fix some rustdoc tests
mikeyhew 62b4c91
Update auto traits in the unstable book
mikeyhew b9a69c7
Fix src/test/rustdoc/foreigntype.rs
mikeyhew File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
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.
the new move to
auto trait
syntax would make this easier to do automatically, right?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.
@nikomatsakis by "do this automatically" do you mean automatically relaxing the default
DynSized
bound for auto traits? I guess so, because with the old way (impl Trait for .. {}
) there is no way to tell from the trait definition whether it is an auto trait or not, whereas withauto trait
it is obvious.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.
Yes, that is what I mean.