-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Use default field values in a few more cases #151172
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
base: main
Are you sure you want to change the base?
Conversation
Makes the use expressions significantly shorter.
|
r? @chenyukang rustbot has assigned @chenyukang. Use |
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
@bors r+ rollup
|
What’s the status of If we end up with more source files that can’t be opened without triggering unavoidable bogus IDE errors, that seems worse than any benefit gained from the shorter syntax. |
Use default field values in a few more cases Makes the use expressions significantly shorter.
Use default field values in a few more cases Makes the use expressions significantly shorter.
Oh, huh, it looks like it produces "missing struct field" errors on use. I thought I'd used it successfully in the past, but I guess I must have misremembered. |
|
Given that, if it's not too late, @bors r- |
|
Commit b4781c8 has been unapproved. |
Rollup of 4 pull requests Successful merges: - #151155 (THIR patterns: Always use type `str` for string-constant-value nodes) - #151166 (fix: Do not delay E0107 when there exists an assoc ty with the same name) - #151172 (Use default field values in a few more cases) - #151185 (Disable `dump-ice-to-disk` on `i686-pc-windows-msvc`) r? @ghost
To elaborate on the current status of rust-analyzer,
|
Nice! I'll happily re-approve this once the feature's supported. In the mean time, maybe let's say this is blocked so it's not labeled as waiting on author or review? @rustbot blocked |
Makes the use expressions significantly shorter.