-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Rollup of 6 pull requests #71059
Rollup of 6 pull requests #71059
Conversation
rustc_session exports it for other crates to avoid mismatching crate versions.
The code was broken because it printed "llvm-config" instead of the absolute path to the llvm-config executable, causing Cargo to always rebuild librustc_llvm if using system LLVM. Also, it's not the build system's job to rebuild when a system library changes, so we simply don't emit "rerun-if-changed" if a path to LLVM was not explicitly provided.
x.py sets it unconditionally, so want it for plain "cargo build". We need to load one of the panic runtimes that is in src (vs. pre-built in the compiler's sysroot) to ensure that we don't load libpanic_unwind from the sysroot. That would lead to a load of libcore, also from the sysroot, and create lots of errors about duplicate lang items.
The compiler normalizes source when reading files initially (removes BOMs, etc), but not when loading external sources. Fixes rust-lang#70874 by normalizing when loading external sources too. Adds a test to verify normalization.
I was looking into improving some Clippy documentation but was missing a place that explains the `kw` and `sym` modules from rustc.
…-Simulacrum Partial work on building with Cargo This cherry picks the commits I'm directly approving from rust-lang#70999, I want to land them so that that PR is smaller.
…an-DPC Clean up E0515 explanation r? @Dylan-DPC
…schievink Update links of `rustc guide` Picks up the things we left behind in the transition, hopefully they're last ones. r? @spastorino
Normalize source when loading external foreign source into SourceMap The compiler normalizes source when reading files initially (removes BOMs, etc), but not when loading external sources. This leads to the external source matching according to the `src_hash`, but differing internally because it was not normalized. Fixes rust-lang#70874.
…-DPC Add some basic docs to `sym` and `kw` modules I was looking into improving some Clippy documentation but was missing a place that explains the `kw` and `sym` modules from rustc. This adds some very basic usage documentation to these modules.
…an-DPC Clean up E0516 explanation r? @Dylan-DPC
@bors r+ rollup=never p=6 |
📌 Commit e684630 has been approved by |
⌛ Testing commit e684630 with merge 2398e5a0466495a8abb20962a0a62f1b64093b13... |
💔 Test failed - checks-azure |
spurious @bors retry |
☀️ Test successful - checks-azure |
📣 Toolstate changed by #71059! Tested on commit 3712e11. 💔 rls on windows: test-pass → build-fail (cc @Xanewok). |
Tested on commit rust-lang/rust@3712e11. Direct link to PR: <rust-lang/rust#71059> 💔 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). 💔 rustfmt on linux: test-pass → build-fail (cc @topecongiro).
Successful merges:
rustc guide
#71041 (Update links ofrustc guide
)sym
andkw
modules #71053 (Add some basic docs tosym
andkw
modules)Failed merges:
r? @ghost