about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-11-03Auto merge of #132526 - bjorn3:sync_cg_clif-2024-11-02, r=bjorn3bors-5/+2
Subtree sync for rustc_codegen_cranelift The highlight this time is an update to Cranelift 0.113, r? `@ghost` `@rustbot` label +A-codegen +A-cranelift +T-compiler
2024-11-03Auto merge of #132458 - RalfJung:rustc-const-unstable, r=Amanieubors-6/+0
get rid of a whole bunch of unnecessary rustc_const_unstable attributes In general, when a `const fn` is still unstable, it doesn't need a `#[rustc_const_unstable]` attribute. The only exception is functions that internally use things that can't be used in stable const fn yet. So this gets rid of a whole bunch of `#[rustc_const_unstable]` in libcore.
2024-11-02Auto merge of #125579 - Noratrieb:print-host, r=davidtwcobors-28/+29
Add `--print host-tuple` to print host target tuple People often parse `-vV` output to get to the host tuple, which is annoying to do. It's easier to just get it directly. I called it "host-tuple" instead of "host" because it's clearer that it's just the target name. I'm open to different names, but I think this one is fine. a quick GitHub search for `'^host` reveals many instances of people doing the parsing, for example: https://github.com/japaric/xargo/blob/68e0ca57cd90837fe02f262f074182f9cfeb6227/README.md?plain=1#L369 https://github.com/taiki-e/setup-cross-toolchain-action/blob/0e38473b0c562d6db19a98d3ec20a80f7ac189ae/main.sh#L96 https://github.com/taiki-e/cargo-llvm-cov/blob/8a3553b86551eabf9c30c060b1f72a5bbccb98c6/README.md?plain=1#L625 https://github.com/SiliconLabs/cpc-nvm3/blob/43f3ec39709b30700ef7f39d91fa647974323bf1/do.sh#L35 needs a compiler FCP. I could also do an MCP but I think just an FCP here makes the most sense.
2024-11-02teach clippy about IeeeFloat, and make all 'allow' into 'expect'Ralf Jung-39/+28
2024-11-02Merge from rustcRalf Jung-648/+788
2024-11-02Preparing for merge from rustcRalf Jung-1/+1
2024-11-02Ok now linkifyMichael Goulet-38/+39
2024-11-02Add `--print host-triple`Noratrieb-2/+3
People often parse `-vV` output to get to the host triple, which is annoying to do. It's easier to just get it directly.
2024-11-02Rename target triple to target tuple in many places in the compilerNoratrieb-26/+26
This changes the naming to the new naming, used by `--print target-tuple`. It does not change all locations, but many.
2024-11-02Do not format generic constsMichael Goulet-6/+46
2024-11-02Try to fix footnotesMichael Goulet-2/+37
2024-11-02Auto merge of #132512 - workingjubilee:update-miri-for-rustc-abi, r=RalfJungbors-485/+526
miri: Directly use rustc_abi I tried to make this a PR to the miri repo for funsies. Ironically, the integration flow meant that it would use a too-old toolchain hash, and I didn't understand the build system there enough to want to manually fiddle with the hashes.
2024-11-02Update tidy license exceptions and allowed dependenciesbjorn3-5/+2
2024-11-02Improve error message for too new proc-macro serverbenluiwj-2/+2
2024-11-02chore(style): sync submodule exclusion list between tidy and rustfmtismailarilik-1/+0
As asked in the FIXME comments
2024-11-02Fix rustc-related links that are 404 right now (#2112)Martin Liška-18/+18
2024-11-02Allow static initializers to be const evaluatedLukas Wirth-28/+87
2024-11-02Support clobber_abi and vector registers (clobber-only) in PowerPC inline ↵Taiki Endo-6/+16
assembly
2024-11-02Rollup merge of #132494 - onur-ozkan:library-profile-default, r=jieyouxuMatthias Krüger-1/+9
make `download-rustc="if-unchanged"` default for library profile Since `download-rustc` is tested on CI and https://github.com/rust-lang/rust/pull/132267 makes it effective for library development, we can now make it default for the library profile. Implements the 3rd item from [this tracking issue](https://github.com/rust-lang/rust/issues/131744).
2024-11-02Rollup merge of #132481 - lukas-code:doc-stab3, r=GuillaumeGomezMatthias Krüger-17/+57
rustdoc: skip stability inheritance for some item kinds For some item kinds it's incorrect to inherit their parent's stability, because they might be accessible without referring to the parent directly -- This PR removes the stability inheritance for these items and reverts their displayed stability to that before https://github.com/rust-lang/rust/pull/130798. Impl items, both inherent and trait impls, have a stability, but it is ignored when checking for enabled features. However, impl items are automatically unstable if they're nested inside an unstable module -- this caused the children of impl to inherit the instability and lead to https://github.com/rust-lang/rust/issues/132440. Furthermore, for associated items only the stability of the associated item itself is checked and not that of its parent impl. This is true even for trait impls and we have [relied on this behavior in the standard library in the past](https://doc.rust-lang.org/1.37.0/std/slice/trait.SliceConcatExt.html#tymethod.concat), so these also shouldn't inherit the impl's stability. I've also removed the stability inheritance for primitives and keywords so that viewing e.g. [the `i32` docs on `core`](https://doc.rust-lang.org/nightly/core/primitive.i32.html) will no longer show "since 1.6.0". Note that we currently don't annotate stability for the keyword docs, but if we start doing so in the future then this is probably more correct. fixes (after backport) https://github.com/rust-lang/rust/issues/132440
2024-11-02miri: Directly use rustc_abiJubilee Young-485/+526
2024-11-02make char::is_whitespace unstably constRalf Jung-1/+1
2024-11-02unicode_data.rs: show command for generating fileRalf Jung-1/+1
2024-11-02get rid of a whole bunch of unnecessary rustc_const_unstable attributesRalf Jung-6/+0
2024-11-02Auto merge of #132497 - matthiaskrgr:rollup-gaskcn0, r=matthiaskrgrbors-4/+5
Rollup of 11 pull requests Successful merges: - #131037 (Move versioned Apple LLVM targets from `rustc_target` to `rustc_codegen_ssa`) - #132170 (Add a Few Codegen Tests) - #132333 (rust_analyzer_helix.toml: add library/ manifest) - #132398 (Add a couple of intra-doc links to str) - #132411 (CI: switch dist-x86_64-musl to free runner) - #132453 (Also treat `impl` definition parent as transparent regarding modules) - #132457 (Remove needless #![feature(asm_experimental_arch)] from loongarch64 inline assembly test) - #132465 (refactor(config): remove FIXME statement in comment of `omit-git-hash`) - #132466 (Account for late-bound depth when capturing all opaque lifetimes.) - #132471 (Add a bunch of mailmap entries) - #132488 (Remove or fix some more `FIXME(async_closure)`) r? `@ghost` `@rustbot` modify labels: rollup
2024-11-02Rollup merge of #132411 - MarcoIeni:ci-switch-to-free-runners, r=KobzolMatthias Krüger-1/+1
CI: switch dist-x86_64-musl to free runner try-job: dist-x86_64-musl
2024-11-02Rollup merge of #132333 - tshepang:patch-4, r=workingjubileeMatthias Krüger-3/+4
rust_analyzer_helix.toml: add library/ manifest
2024-11-02fix permalinksMichael Goulet-2/+2
2024-11-02Async closures chapterMichael Goulet-0/+258
2024-11-02add change entry for library profile updateonur-ozkan-0/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-11-02make `download-rustc="if-unchanged"` default for library profileonur-ozkan-1/+4
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-11-02Auto merge of #132352 - DianQK:llvm/19.1.3, r=nikicbors-0/+0
Update LLVM to 19.1.3 Closes #131031. r? nikic
2024-11-02Auto merge of #132475 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 18 commits in e75214ea4936d2f2c909a71a1237042cc0e14b07..0310497822a7a673a330a5dd068b7aaa579a265e 2024-10-25 16:34:32 +0000 to 2024-11-01 19:27:56 +0000 - Add more metadata to `rustc_fingerprint` (rust-lang/cargo#14761) - test(rustfix): switch to a simpler case for dedup-suggestions (rust-lang/cargo#14765) - chore(deps): update rust crate security-framework to v3 (rust-lang/cargo#14766) - chore(deps): update rust crate gix to 0.67.0 (rust-lang/cargo#14762) - fix(util): Respect all `..`s in `normalize_path` (rust-lang/cargo#14750) - test(doc): Resolve flaky test (rust-lang/cargo#14760) - refactor(test): Remove dead 'expect_stdout_contains_n' check (rust-lang/cargo#14759) - add unstable -Zroot-dir flag to configure the path from which rustc should be invoked (rust-lang/cargo#14752) - docs(resolver): Further v3 prep (rust-lang/cargo#14753) - fix: track version in fingerprint dep-info files (rust-lang/cargo#14751) - test: Remove unused msrv-policy (rust-lang/cargo#14748) - download targeted transitive deps of with artifact deps' target platform (rust-lang/cargo#14723) - Remove requirement for --target when invoking Cargo with -Zbuild-std (rust-lang/cargo#14317) - docs(fingerprint): document the encoding of Cargo's depinfo (rust-lang/cargo#14745) - Allow build scripts to report error messages through `cargo::error` (rust-lang/cargo#14743) - fix(publish): Downgrade version-exists error to warning on dry-run (rust-lang/cargo#14742) - fix: clean up for deprecated and removed commands (rust-lang/cargo#14739) - Deprecate `cargo verify-project` (rust-lang/cargo#14736)
2024-11-02rustdoc: skip stability inheritance for some item kindsLukas Markeffsky-17/+57
2024-11-01Update cargoWeihang Lo-0/+0
2024-11-01CI: switch dist-x86_64-musl to free runnerMarcoIeni-1/+1
2024-11-02Rollup merge of #132444 - workingjubilee:rustdoc-my-abi, r=GuillaumeGomezGuillaume Gomez-20/+19
rustdoc: Directly use rustc_abi instead of reexports rustc_target reexports a lot of things that are in rustc_abi, but that will be over soon and now is probably a good time to switch. Uses of rustc_target remain where they inquire about the target tuple.
2024-11-02Rollup merge of #132438 - chenyukang:yukang-fix-analyzer_settings, r=jieyouxuGuillaume Gomez-2/+1
Remove unncessary option for default rust-analyzer setting In favor of https://github.com/rust-lang/rust-analyzer/pull/17888
2024-11-02Rollup merge of #132369 - ↵Guillaume Gomez-11/+6
joshtriplett:style-guide-binop-heuristic-assignment-only, r=calebcartwright style-guide: Only use the new binop heuristic for assignments This avoids pathological cases where chains of binops get progressively deeper.
2024-11-02Rollup merge of #131829 - Zalathar:goodbye-zprofile, r=chenyukangGuillaume Gomez-33/+2
Remove support for `-Zprofile` (gcov-style coverage instrumentation) Tracking issue: #42524 MCP: https://github.com/rust-lang/compiler-team/issues/798 --- This PR removes the unstable `-Zprofile` flag, which enables ”gcov-style” coverage instrumentation, along with its associated `-Zprofile-emit` configuration flag. (The profile flag predates and is almost entirely separate from the stable `-Cinstrument-coverage` flag.) Notably, the `-Zprofile` flag: - Is largely untested in-tree, having only one run-make test that does not check whether its output is correct or useful. - Has no known maintainer. - Has seen no push towards stabilization. - Has at least one severe regression reported in 2022 that apparently remains unaddressed. - #100125 - Is confusingly named, since it appears to be more about coverage than performance profiling, and has nothing to do with PGO. - Is fundamentally limited by relying on counters auto-inserted by LLVM, with no knowledge of Rust beyond debuginfo.
2024-11-01Use snippet placeholders for generated match armsGiga Bowser-108/+114
2024-11-01rustdoc: Directly use rustc_abi instead of reexportsJubilee Young-20/+19
rustc_target reexports a lot of things that are in rustc_abi, but that will be over soon and now is probably a good time to switch. Uses of rustc_target remain where they inquire about the target tuple.
2024-11-01Add benchmark showing effectivity of subtree skippingJohannes Hostert-0/+23
2024-11-01Format codeLaurențiu Nicola-7/+9
2024-11-01Bump rustc cratesLaurențiu Nicola-18/+17
2024-11-01Merge from rust-lang/rustLaurențiu Nicola-301/+452
2024-11-01Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2024-11-01Auto merge of #132402 - bjorn3:remove_snap_decompression, r=jieyouxu,Veykrilbors-25/+4
Remove support for decompressing dylib metadata We haven't been compressing dylib metadata for a while now. Removing decompression support will regress error messages about an incompatible rustc version being used, but dylibs are pretty rare anyway. Fixes https://github.com/rust-lang/rust-analyzer/issues/18451
2024-11-01Auto merge of #131634 - davidlattimore:lld-protected, r=Kobzolbors-0/+8
Use protected visibility when building rustc with LLD https://github.com/rust-lang/compiler-team/issues/782 I wasn't sure about having two commits in a PR, but I figured, at least initially it might make sense to discuss these commits together. Happy to squash, or move the second commit to a separate PR. I contemplated trying to enable protected visibility for more cases when LLD will be used other than just `-Zlinker-features=+lld`, but that would be more a complex change that probably still wouldn't cover all cases when LLD is used, so went with the simplest option of just checking if the linker-feature is enabled. r? lqd
2024-11-01Remove unncessary option for default rust-analyzer settingyukang-2/+1