Use impl restrictions in std, core#157170
Conversation
This comment has been minimized.
This comment has been minimized.
| /// Trait to determine if a descriptor/handle refers to a terminal/tty. | ||
| #[stable(feature = "is_terminal", since = "1.70.0")] | ||
| pub trait IsTerminal: crate::sealed::Sealed { | ||
| pub impl(crate) trait IsTerminal { |
There was a problem hiding this comment.
Don't we want to block this PR on rustdoc support?
IsTerminal is stable and AFAICT the docs don't mention anywhere that the trait is sealed, so if we were to merge your PR now, users would no longer know that the trait is sealed just by looking at the docs. That feels unfortunate.
There was a problem hiding this comment.
I'm not opposed to blocking it on such. I deliberately left any "this trait is sealed" comments for that reason. Once there's rustdoc support, all of those can be removed as well.
a6278c5 to
4bdbe8a
Compare
This comment has been minimized.
This comment has been minimized.
4bdbe8a to
ce88386
Compare
|
CI will certainly fail again. |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
☔ The latest upstream changes (presumably #157174) made this pull request unmergeable. Please resolve the merge conflicts. |
This should all be quite self-explanatory. I've used the tightest module permitted by current implementation, which is overwhelmingly
selfas I had expected.r? @Urgau