-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Move almost all compiler crates to compiler/ #74862
Conversation
Some changes occurred in diagnostic error codes |
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @ghost for now |
LGTM. Do you plan to introduce the inner |
Yes, you beat me to it :) I just pushed a commit.
Yeah, I think those will be the big questions here... It might be reasonable to do those in a followup PR. |
This comment has been minimized.
This comment has been minimized.
ping @mark-i-m |
@petrochenkov sure, but this rebase will be rather painful. Would it make sense to get it nominated and fcp'ed first? It seems like we have general consensus on the changes made in this PR, and we can leave more controversial things like LLVM or tests for followup PRs. |
@petrochenkov I've finally managed to fix up the PR. Should we do an FCP? |
Hmm... well, it looks like we still need to fix tidy and other tools. @Dylan-DPC you had mentioned that you were interested in helping with this MCP? Do you happen to have a good machine where you can run ./x.py test until it works? |
I could help with 2700X based machine but I won't have time today for it. |
Again? This is already accepted. |
Similarly to #73265 the commits will need to be squashed before the merged. |
This comment has been minimized.
This comment has been minimized.
Oh, I guess I misunderstood the process. I was under the impression the MCP was on the general direction, rather than the specifics of this PR. What in particular do you want me to update in the op? |
Sadly I don't :/ |
Mhh. This change makes it really hard to view the history of a file through github. Because almost every file will have this change as their only “commit”. |
For blame, git sees these correctly as moves. See for example the correct blame information by line on https://github.com/rust-lang/rust/blame/85fbf49ce0e2274d0acf798f6e703747674feec3/compiler/rustc_ast/src/lib.rs. This is bare though: https://github.com/rust-lang/rust/commits/85fbf49ce0e2274d0acf798f6e703747674feec3/compiler/rustc_ast/src/lib.rs. That's not great. Feature request for GitHub: a "follow" link to the history of a file beyond a move, like Phabricator does: |
This is apparently a known issue: isaacs/github#900. |
Thanks for the help @petrochenkov! |
I think the auto-publish script needs adjustment: https://github.com/alexcrichton/rustc-auto-publish |
Is this documentation still accurate? |
@vandenheuvel I just made a PR to update that. It is accurate now. |
Not quite worthy of inclusion in this weeks perf triage report, but this PR caused a small regression on doc builds across all benchmarks and a very small regression on some check builds. Clearly we need to switch to shorter directory names. I propose that we switch to |
@mark-i-m |
yeah i try to reassign some of them especially the smaller ones :D |
I hope to fix highfive later today, I'm not sure why the change we made didn't work. Will need to debug. |
https://github.com/rust-lang/rust/blob/master/src/librustc_session/lint/builtin.rs returns page not found. The following is the background of the move. First rust-lang#74862 moves from src/librustc_session/lint/builtin.rs to compiler/rustc_session/src/lint/builtin.rs Then rust-lang@23018a5 moves from compiler/rustc_session/src/lint/builtin.rs to compiler/rustc_lint_defs/src/builtin.rs So, the current correct link is https://github.com/rust-lang/rust/blob/master/compiler/rustc_lint_defs/src/builtin.rs This PR fixes a broken link on the following page: https://doc.rust-lang.org/beta/unstable-book/language-features/plugin.html
…nstable_book, r=ehuss Fix an incorrect link in The Unstable Book https://github.com/rust-lang/rust/blob/master/src/librustc_session/lint/builtin.rs returns page not found. The following is the background of the move. First rust-lang#74862 moves from src/librustc_session/lint/builtin.rs to compiler/rustc_session/src/lint/builtin.rs. Then rust-lang@23018a5 moves from compiler/rustc_session/src/lint/builtin.rs to compiler/rustc_lint_defs/src/builtin.rs. So, the current correct link is https://github.com/rust-lang/rust/blob/master/compiler/rustc_lint_defs/src/builtin.rs. This PR fixes a broken link on the following page: https://doc.rust-lang.org/beta/unstable-book/language-features/plugin.html
…nstable_book, r=ehuss Fix an incorrect link in The Unstable Book https://github.com/rust-lang/rust/blob/master/src/librustc_session/lint/builtin.rs returns page not found. The following is the background of the move. First rust-lang#74862 moves from src/librustc_session/lint/builtin.rs to compiler/rustc_session/src/lint/builtin.rs. Then rust-lang@23018a5 moves from compiler/rustc_session/src/lint/builtin.rs to compiler/rustc_lint_defs/src/builtin.rs. So, the current correct link is https://github.com/rust-lang/rust/blob/master/compiler/rustc_lint_defs/src/builtin.rs. This PR fixes a broken link on the following page: https://doc.rust-lang.org/beta/unstable-book/language-features/plugin.html
Follow up rust-lang/rust#74862. https://github.com/rust-lang/rust/blob/master/src/librustc_errors/json.rs returns page not found. This PR fixes the incorrect URL.
This PR implements rust-lang/compiler-team#336 and moves all
rustc_*
crates fromsrc
to the newcompiler
directory.librustc_foo
directories are renamed torustc_foo
.src
directories are introduced insiderustc_*
directories to mirror the scheme already use forlibrary
crates.