-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Remove Item::kind, use tagged enum. Rename variants to match #82613
Conversation
Can you add a test for this, (probably in Also nit: To be more consistant with |
I'll add a test. I'm not sure I like that naming, I think 'kind' is a weird name for the inner values, and we don't really need consistency with clean when it's not harming functionality. Also, |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
See #80142, I don't think this is worth changing. |
This comment has been minimized.
This comment has been minimized.
@bors delegate=aDotInTheVoid |
✌️ @aDotInTheVoid can now approve this pull request |
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.
Mostly good, just a couple of things to do. Also you need to rebase on master
@rustbot modify labels: -S-waiting-on-review +S-waiting-on-author
@bors r+ squash |
📌 Commit 18841ec has been approved by |
Remove Item::kind, use tagged enum. Rename variants to match Fixes rust-lang#82299, by making the ItemEnum tagged. Doesn't remove ItemKind as it's still used in other places. r? `@jyn514` `@rustbot` label: +A-rustdoc-json +T-rustdoc
Remove Item::kind, use tagged enum. Rename variants to match Fixes rust-lang#82299, by making the ItemEnum tagged. Doesn't remove ItemKind as it's still used in other places. r? ``@jyn514`` ``@rustbot`` label: +A-rustdoc-json +T-rustdoc
Remove Item::kind, use tagged enum. Rename variants to match Fixes rust-lang#82299, by making the ItemEnum tagged. Doesn't remove ItemKind as it's still used in other places. r? ```@jyn514``` ```@rustbot``` label: +A-rustdoc-json +T-rustdoc
Remove Item::kind, use tagged enum. Rename variants to match Fixes rust-lang#82299, by making the ItemEnum tagged. Doesn't remove ItemKind as it's still used in other places. r? ````@jyn514```` ````@rustbot```` label: +A-rustdoc-json +T-rustdoc
Rollup of 10 pull requests Successful merges: - rust-lang#82047 (bypass auto_da_alloc for metadata files) - rust-lang#82415 (expand: Refactor module loading) - rust-lang#82557 (Add natvis for Result, NonNull, CString, CStr, and Cow) - rust-lang#82613 (Remove Item::kind, use tagged enum. Rename variants to match) - rust-lang#82642 (Fix jemalloc usage on OSX) - rust-lang#82682 (Implement built-in attribute macro `#[cfg_eval]` + some refactoring) - rust-lang#82684 (Disable destination propagation on all mir-opt-levels) - rust-lang#82755 (Refactor confirm_builtin_call, remove partial if) - rust-lang#82857 (Edit ructc_ast_lowering docs) - rust-lang#82862 (Generalize Write impl for Vec<u8> to Vec<u8, A>) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #82299, by making the ItemEnum tagged. Doesn't remove ItemKind as it's still used in other places.
r? @jyn514
@rustbot label: +A-rustdoc-json +T-rustdoc