-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
gate rustc_on_unimplemented under rustc_attrs #65794
Conversation
We should remove the feature gate too: otherwise it's possible to enable the feature without any effect. |
@varkor I don't know what you mean by "without any effect". The only technical change is the omission of the tracking issue. Would you prefer to move it to rustc_attrs? |
I mean that you can currently write: #![feature(on_unimplemented)] And there won't be any error, which there ought to be after this change. |
@varkor I didn't intend for that to be an error, only to remove any mention of the tracking issue. The attribute has to be gated by something, either the existing feature gate name or rustc_attrs. Do we want to gate all internal features with rustc_attrs? The current practice seems to be all over the place. |
What other |
Seems like it's a small minority:
( |
Do you know if there's any particular reason for those? I'll investigate later if not. I would have thought that all |
No idea but my guess is that it would be happenstance. |
As far as I can tell, So I think we should gate |
d161047
to
d3d7bf3
Compare
@varkor Moved |
This comment has been minimized.
This comment has been minimized.
d3d7bf3
to
0e817db
Compare
This comment has been minimized.
This comment has been minimized.
0e817db
to
d32b9b4
Compare
This comment has been minimized.
This comment has been minimized.
d32b9b4
to
2f3bf53
Compare
@varkor I think it's good to go now. |
This comment has been minimized.
This comment has been minimized.
r=me with typo fixed. |
2f3bf53
to
1c7595f
Compare
Typo fixed; @bors r=varkor rollup |
📌 Commit 1c7595f has been approved by |
gate rustc_on_unimplemented under rustc_attrs Move `rustc_on_implemented` from the `on_implemented` gate to `rustc_attrs` as it is internal. Closes rust-lang#29628 r? @varkor
gate rustc_on_unimplemented under rustc_attrs Move `rustc_on_implemented` from the `on_implemented` gate to `rustc_attrs` as it is internal. Closes rust-lang#29628 r? @varkor
gate rustc_on_unimplemented under rustc_attrs Move `rustc_on_implemented` from the `on_implemented` gate to `rustc_attrs` as it is internal. Closes rust-lang#29628 r? @varkor
Rollup of 12 pull requests Successful merges: - #65794 (gate rustc_on_unimplemented under rustc_attrs) - #65945 (Optimize long-linker-command-line test) - #66044 (Improve uninit/zeroed lint) - #66076 (HIR docs: mention how to resolve method paths) - #66084 (Do not require extra LLVM backends for `x.py test` to pass) - #66111 (improve from_raw_parts docs) - #66114 (Improve std::thread::Result documentation) - #66117 (Fixed PhantomData markers in Arc and Rc) - #66146 (Remove unused parameters in `__thread_local_inner`) - #66147 (Miri: Refactor to_scalar_ptr out of existence) - #66162 (Fix broken link in README) - #66171 (Update link on CONTRIBUTING.md) Failed merges: r? @ghost
Move
rustc_on_implemented
from theon_implemented
gate torustc_attrs
as it is internal.Closes #29628
r? @varkor