-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
chore: Rename Config
to GlobalContext
#13409
Conversation
r? @ehuss (rustbot has picked a reviewer for you, use r? to override) |
Bikeshedding: GlobalContext or Cargo Context which might be better and good for text search? |
Another bit of bikeshedding, I'm a little concerned that |
☔ The latest upstream changes (presumably #13410) made this pull request unmergeable. Please resolve the merge conflicts. |
I am fine with
I honestly don't know enough about |
It might be a bit odd if |
Maybe I'm a little confused, I don't think Or maybe my previous message wasn't clear. I was referring to the old |
Thanks for the clarification, Eric. Then |
315005a
to
d5a0f96
Compare
☔ The latest upstream changes (presumably #12861) made this pull request unmergeable. Please resolve the merge conflicts. |
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.
Finished the review! Thanks for the hard work 👍🏾
There might be some other places need updates, but let's get this merged asap to avoid conflicts.
563f6fc
to
42c645a
Compare
Config
to Context
Config
to GlobalContext
If there is anything else, we can patch it up over time @bors r+ |
🔒 Merge conflict This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again. How do I rebase?Assuming
You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial. Please avoid the "Resolve conflicts" button on GitHub. It uses Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Error message
|
42c645a
to
118afd0
Compare
@bors r+ |
☀️ Test successful - checks-actions |
1 similar comment
☀️ Test successful - checks-actions |
👀 Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request. |
Update cargo 9 commits in 7b7af3077bff8d60b7f124189bc9de227d3063a9..194a60b2952bd5d12ba15dd2577a97eed7d3c587 2024-02-17 14:13:00 +0000 to 2024-02-21 01:53:45 +0000 - fix: remove unused `sysroot_host_libdir` (rust-lang/cargo#13468) - feat: support `target.<triple>.rustdocflags` officially (rust-lang/cargo#13197) - Fix unused imports on Windows. (rust-lang/cargo#13469) - Fix more redundant imports. (rust-lang/cargo#13466) - test: Remove empty snapshots (rust-lang/cargo#13465) - chore: Rename `Config` to `GlobalContext` (rust-lang/cargo#13409) - Fix redundant imports. (rust-lang/cargo#13464) - feat: respect `rust-version` when generating lockfile (rust-lang/cargo#12861) - chore(ci): bump CI tools (rust-lang/cargo#13459) r? ghost
This PR :
Config
toGlobalContext
gctx
(including lifetimes)core::compiler::context::Context
tocore::compiler::build_runner::BuildRunner
I believe I got all references to
Config
removed, Everything is onGlobalContext
, but I could've missed renaming a variable or lifetime somewhere. I tried to find all references toconfig: &GlobalContext
and rename them and I think I did so successfully. I also renamed all'cfg
to'gctx
.Note: I explicitly did not rename any files or paths as I was unsure about the best way to do this.
How to Review this PR
Take your time (and many breaks)!
I am sorry.
I am also sorry for the very brief description, looking at words and thinking about them has become hard... I need to not look at words for a while...
As a complete side note, I honestly don't know if
config
,Config
,ctx
, orContext
are really words at this point.