-
Couldn't load subscription status.
- Fork 13.9k
str: Stabilize round_char_boundary feature
#145756
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| #![feature(round_char_boundary)] | ||
| #![warn(clippy::char_indices_as_byte_indices)] | ||
|
|
||
| trait StrExt { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| #![feature(round_char_boundary)] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You need to run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed in c5c6520 |
||
| #![warn(clippy::char_indices_as_byte_indices)] | ||
|
|
||
| trait StrExt { | ||
|
|
||
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.
Won't you need to
cfg_attr(bootstrap, …)the feature in the compiler itself (two instances)?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.
You'll need to do this in Clippy's
clippy_lintscrate as well, since it can now be built by the stage0 compiler.Uh oh!
There was an error while loading. Please reload this page.
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.
Thanks, I haven't stabilized a feature that touched these other parts of the compiler before.
I manually reordered the
cfg_attrfeatures because tidy check complained about alphabetic ordering, but it didn't suggest what line to place it. I couldn't find an automatic--fixoption either. Running./x fmtdidn't seem to adjust it either but maybe I have the setup configured wrong (I have it set to the library contributing mode, not sure if that changes anything).Uh oh!
There was an error while loading. Please reload this page.
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.
x fmtdoesn't reorder AFAICT, you have to put the inner attributes in order by hand (as you did).Clippy using stage 0 is new and doesn't care about inner attributes order, what you did (order by feature name) is fine as well there.