-
Notifications
You must be signed in to change notification settings - Fork 241
Replace Date::day_of_week by Date::weekday
#7288
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
Conversation
| /// Marker for resolving the day-of-week input field. | ||
| type DayOfWeekInput: IntoOption<Weekday>; | ||
| /// Marker for resolving the weekday input field. | ||
| type WeekdayInput: IntoOption<Weekday>; |
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.
Depending on how we feel about our policy, this might not be semver compatible because clients can stably refer to an associated type of a scaffold trait. It requires the word "scaffold" but not "unstable" in source
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.
/// 🚧 This trait is considered unstable; it may change at any time, in breaking or non-breaking ways,
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.
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.
I don't see how a comment discussing the unstable feature is relevant here
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.
If anything, that comment says that this trait will live behind the unstable feature, so everything about it is unstable (as the comment currently says).
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 trait as it currently lives on main is UnstableSealed in a stable module* with stable methods. This implies that the trait is not implementable, and therefore we can add to it, but it is stably usable in bounds, and methods are stably callable.
* Unless we wish to categorize the module named "scaffold" to imply unstable.
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.
I don't see why they wouldn't be unstable. They are used for bounds on unstable constructors. When this was designed, I was under the impression that all of this was unstable, as it is documented as unstable
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.
I had intended them to be stably usable in bounds, unstably implementable, and unstably callable. But the draft policy for how to enforce that came after 2.0, which means we need to decide what to do here.
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.
Then the docs are wrong
#7228
Also replace other usages of "day of week" that are not the numeric day of the week (pretty much all of them).