Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Rename `optin_builtin_traits` to `auto_traits` #79336
Conversation
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
How extensive is the usage of the name? I think if we're doing the name change, we should do it everywhere |
Let me know what you want me to update!
|
0c79621
to
060f31d
They were originally called "opt-in, built-in traits" (OIBITs), but people realized that the name was too confusing and a mouthful, and so they were renamed to just "auto traits". The feature flag's name wasn't updated, though, so that's what this PR does. There are some other spots in the compiler that still refer to OIBITs, but I don't think changing those now is worth it since they are internal and not particularly relevant to this PR. Also see <https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/opt-in.2C.20built-in.20traits.20(auto.20traits).20feature.20name>.
413166b
to
810324d
Squashed. |
How to remove them and how to rename them. cc <rust-lang/rust#79336 (comment)> cc @varkor
Ideally all of it, even the filenames. Though it's also fine to just paste your list in an E-easy issue if you prefer. |
Should I change the name that the RFC is referenced by in the error codes? I feel like it might be confusing to see them called "auto traits" everywhere else, even though the RFC is called OIBIT. Maybe call it OIBIT, but mention that it's now called auto traits? Or something else? |
These are the remaining references:
By the way, should we mention that the name was changed in the relnotes? Probably not, mainly because it's a nightly feature. |
Goodbye, OIBIT!
95b5f90
to
82dc99b
Ah yes, that makes sense! Thanks @bors r+ |
|
Hmm, what do you mean? Were you referring to my suggestion that we mention this in the release notes? |
Sorry, I responded to what I thought was the general statement you made
No, let's not change history
You do mention that on the feature gate docs, so I think that's fine. We have lots of RFCs that don't make sense by their name anymore and that is fine. |
|
Tested on commit ec039bd.
|
Tested on commit rust-lang/rust@ec039bd. Direct link to PR: <rust-lang/rust#79336>💔 rls on windows: test-pass → build-fail (cc @Xanewok).💔 rls on linux: test-pass → build-fail (cc @Xanewok).💔 rustfmt on windows: test-pass → build-fail (cc @topecongiro @calebcartwright).💔 rustfmt on linux: test-pass → build-fail (cc @topecongiro @calebcartwright).
Okay, thanks for the explanation! |
How to remove them and how to rename them. cc <rust-lang/rust#79336 (comment)> cc @varkor
… r=oli-obk Rename `optin_builtin_traits` to `auto_traits` They were originally called "opt-in, built-in traits" (OIBITs), but people realized that the name was too confusing and a mouthful, and so they were renamed to just "auto traits". The feature flag's name wasn't updated, though, so that's what this PR does. There are some other spots in the compiler that still refer to OIBITs, but I don't think changing those now is worth it since they are internal and not particularly relevant to this PR. Also see <https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/opt-in.2C.20built-in.20traits.20(auto.20traits).20feature.20name>. r? `@oli-obk` (feel free to re-assign if you're not the right reviewer for this)
They were originally called "opt-in, built-in traits" (OIBITs), but
people realized that the name was too confusing and a mouthful, and so
they were renamed to just "auto traits". The feature flag's name wasn't
updated, though, so that's what this PR does.
There are some other spots in the compiler that still refer to OIBITs,
but I don't think changing those now is worth it since they are internal
and not particularly relevant to this PR.
Also see https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/opt-in.2C.20built-in.20traits.20(auto.20traits).20feature.20name.
r? @oli-obk (feel free to re-assign if you're not the right reviewer for this)