about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-02-26Rollup merge of #137660 - Kobzol:gcc-update, r=GuillaumeGomezLeón Orell Valerian Liehr-0/+0
Update gcc submodule To add support for the x87 feature (see https://github.com/rust-lang/rust/pull/137612#issuecomment-2683303111). r? `@antoyo`
2025-02-26Rollup merge of #137642 - BoxyUwU:rdg-push, r=KobzolLeón Orell Valerian Liehr-27/+121
Rustc dev guide subtree update r? ``@Kobzol`` ``@jieyouxu``
2025-02-26Add new `Rustdoc::emit` method in `run-make-support`Guillaume Gomez-0/+7
2025-02-26Add rustdoc support for `--emit=dep-info[=path]`Guillaume Gomez-14/+48
2025-02-26Use helper function instead of reimplementing the logic to check if rustdoc ↵Guillaume Gomez-1/+1
should emit crate
2025-02-26Merge pull request #19220 from Shourya742/2025-02-24-nit-setup-docLaurențiu Nicola-4/+10
doc: remove nit from setup.md
2025-02-26Also test coretests when running ./x.py test corebjorn3-8/+9
It is reasonable to expect that ./x.py test core is enough to run tests when you are working on core. In addition it seems like CI for wasm32 at least doesn't run coretests currently, which this commit fixes.
2025-02-26Stop passing --lib to cargo testbjorn3-59/+15
This overrides the test=false flag in Cargo.toml and it shouldn't be necessary as --tests is already passed.
2025-02-26linker: Fix escaping style for response files on WindowsVadim Petrochenkov-11/+31
If we use a С/С++ compiler as linker, then Posix-style escaping should be used.
2025-02-26revert accidental change in get_closest_merge_commitRalf Jung-0/+1
2025-02-26Use cargo zigbuild for releasesLaurențiu Nicola-40/+49
2025-02-26Merge pull request #19225 from Giga-Bowser/remove-assistsLukas Wirth-43/+253
internal: Migrate some low-hanging `remove_*` assists to `SyntaxEditor`
2025-02-26Update ui testOli Scherer-3/+3
2025-02-26Auto merge of #137036 - jieyouxu:drivers-license, r=Kobzolbors-0/+6
Include version number of libs being built in cargo lib metadata (esp. `librustc_driver*.so`) Previously, on a non-stable channel, it's possible for two builds from different versioned sources (e.g. 1.84.0 vs 1.84.1) to produce a `librustc_driver*.so` with the same filename hashes. This causes problems with side-by-side installs wrt. linker search paths because 1.84.1 rustc bin and 1.84.0 rustc bin may try to link to the "same" `librustc_driver*.so` (same filename hash) but fail because the contents of the so is actually different. We try to mitigate this by including the version number of artifacts being built via `__CARGO_DEFAULT_LIB_METADATA` (kind of an ugly hack, but I don't think cargo has a way for us to tell cargo to use a package version override). Fixes #136701 (mitigates, really). ### Testing Tested manually[^host] by: ```bash $ cat src/version 1.86.0 $ ./x build library # w/ compiler profile, (non-stable) dev channel $ lddtree build/host/stage1/bin/rustc rustc => build/host/stage1/bin/rustc (interpreter => /lib64/ld-linux-x86-64.so.2) librustc_driver-ea1b1b2291881cc4.so => build/host/stage1/bin/../lib/librustc_driver-ea1b1b2291881cc4.so [...] ``` and observing that changing `src/version` to bump a point release causes `librustc_driver*.so` to have a different hash while sources are unmodified otherwise. ```bash $ cat src/version 1.86.1 $ ./x build library # w/ compiler profile, (non-stable) dev channel $ lddtree build/host/stage1/bin/rustc rustc => build/host/stage1/bin/rustc (interpreter => /lib64/ld-linux-x86-64.so.2) librustc_driver-746badadbcb74721.so => build/host/stage1/bin/../lib/librustc_driver-746badadbcb74721.so [...] ``` cc `@clan` `@demize` could you check that if you backport this change against 1.84.{0,1} as reported in #136701, that the produced `rustc` binary works, under the context of the Gentoo build system setup? [^host]: on a `x86_64-unknown-linux-gnu` host, no cross
2025-02-26Update gcc submoduleJakub Beránek-0/+0
To add support for the x87 feature.
2025-02-26Merge pull request #4210 from tiif/small-fix-2Oli Scherer-6/+2
Resolve more FIXMEs
2025-02-26Auto merge of #137651 - fmease:rollup-s3s7m6f, r=fmeasebors-0/+33
Rollup of 14 pull requests Successful merges: - #136576 (pass optimization level to llvm-bitcode-linker) - #137154 (Add UTF-8 validation fast paths in `Wtf8Buf`) - #137311 (Enable `f16` for MIPS) - #137320 (fix(rustdoc): Fixed stability version in rustdoc) - #137529 (remove few unused args) - #137544 (tests: Add regression test for derive token invalidation (#81099)) - #137559 (run some tests on emscripten again) - #137601 (ssa/mono: deduplicate `type_has_metadata`) - #137603 (codegen_llvm: avoid `Deref` impls w/ extern type) - #137604 (trait_sel: resolve vars in host effects) - #137609 (Complete the list of resources used in rustdoc output) - #137613 (hir_analysis: skip self type of host effect preds in variances_of) - #137614 (fix doc in library/core/src/pin.rs) - #137622 (fix attribute-related ICE when parsing macro on the rhs of a name-value attribute) r? `@ghost` `@rustbot` modify labels: rollup
2025-02-26Merge pull request #19204 from kazatsuyu/allow-package-specific-featureChayim Refael Friedman-1/+3
Allow "package/feature" format feature flag
2025-02-26fmtThe Miri Cronjob Bot-1/+0
2025-02-26Merge from rustcThe Miri Cronjob Bot-48/+153
2025-02-26Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-02-26Resolve more FIXMEstiif-6/+2
2025-02-26Rollup merge of #137609 - ColinPitrat:master, r=GuillaumeGomezLeón Orell Valerian Liehr-0/+21
Complete the list of resources used in rustdoc output The Nanum Barun Gothic Font was missing in the list and should clearly be mentionned. Arguably referencing the Rust logos is not really necessary as the file mentions "third party resources" but it doesn't hurt and should make things clearer for anybody who wants to publish their Rust doc.
2025-02-26Rollup merge of #137320 - tapanprakasht:fix-doc-version-stability, r=notriddleLeón Orell Valerian Liehr-0/+12
fix(rustdoc): Fixed stability version in rustdoc Tries to fix https://github.com/rust-lang/rust/issues/137141 Fixed by adding checks glob exports
2025-02-26Auto merge of #136921 - Kobzol:gcc-build, r=onur-ozkanbors-61/+53
Build GCC on CI Previously, we have downloaded a specific commit of GCC and prebuilt it inside Docker using the `build-gccjit.sh` script. This PR removes that scripts and uses the bootstrap GCC step. This allows us to use the `src/gcc` submodule for determining which GCC should be built, and it also moves the logic closer to LLVM, which is also built by bootstrap. A few things to note: - The `sccache` option is currently in the `llvm` block, so the GCC build uses `llvm.ccache`, which is a bit weird :) We could either add `gcc.ccache`, or (what I think would be better) to just move `ccache` to the `build` section, as I don't think that it will be necessary to use ccache for LLVM, but not for GCC. - When the GCC codegen backend is built, it needs to depend on a step that first builds GCC. This is currently done in a hacky way. The proper solution is to create a separate step for the GCC codegen backend, but that is a larger change. Let me know what you think. r? `@onur-ozkan` try-job: i686-msvc-1 try-job: x86_64-mingw-1
2025-02-25Auto merge of #137594 - RalfJung:miri-sync, r=RalfJungbors-298/+714
Miri subtree update r? `@ghost` try-job: x86_64-gnu-aux
2025-02-25Merge from rustcBoxy-10991/+23148
2025-02-25Preparing for merge from rustcBoxy-1/+1
2025-02-25Auto merge of #137608 - fmease:rollup-h4siso6, r=fmeasebors-1/+1
Rollup of 8 pull requests Successful merges: - #137370 (adjust_abi: make fallback logic for ABIs a bit easier to read) - #137444 (Improve behavior of `IF_LET_RESCOPE` around temporaries and place expressions) - #137464 (Fix invalid suggestion from type error for derive macro) - #137539 ( Add rustdoc-gui regression test for #137082 ) - #137576 (Don't doc-comment BTreeMap<K, SetValZST, A>) - #137595 (remove `simd_fpow` and `simd_fpowi`) - #137600 (type_ir: remove redundant part of comment) - #137602 (feature: fix typo in attribute description) r? `@ghost` `@rustbot` modify labels: rollup
2025-02-25Fix posting message to ZulipJakub Beránek-1/+1
2025-02-25disable float non-determinism for now to be able to complete the syncRalf Jung-36/+47
2025-02-25internal: Migrate `remove_unused_param` assist to `SyntaxEditor`Giga Bowser-17/+71
2025-02-25fix: Properly handle removals in `SyntaxEditor`Giga Bowser-6/+18
2025-02-25internal: Migrate `remove_parentheses` assist to `SyntaxEditor`Giga Bowser-5/+14
2025-02-25internal: Migrate `remove_mut` assist to `SyntaxEditor`Giga Bowser-7/+8
2025-02-25internal: Improve reporting of intersecting changesGiga Bowser-8/+142
2025-02-25Skip `tidy` in pre-push hook if the user is deleting a remote branchYotam Ofek-0/+14
2025-02-25Rollup merge of #137597 - oli-obk:push-unkusxkoqrus, r=KobzolLeón Orell Valerian Liehr-0/+0
Revert accidental cargo submodule update This was accidentally introduced in #135726
2025-02-25Rollup merge of #137522 - onur-ozkan:137215-follow-ups, r=KobzolLeón Orell Valerian Liehr-6/+99
use stage 2 on cargo and clippy tests when possible Follow-up for #137215. For more context, read the discussion starting from https://github.com/rust-lang/rust/pull/137215#issuecomment-2674395959. r? Kobzol (Feel free to re-r if you are not available).
2025-02-25Rollup merge of #137460 - onur-ozkan:downgrade-cc, r=jieyouxuLeón Orell Valerian Liehr-3/+5
downgrade bootstrap `cc` Current `cc` version causing bootstrap to fail on custom targets. See https://github.com/rust-lang/cc-rs/issues/1317 for more context. Fixes (after beta and stable backports): https://github.com/rust-lang/rust/issues/137064 and https://github.com/rust-lang/rust/issues/135271
2025-02-25Update information about NanumBarunGothicColin Pitrat-1/+11
2025-02-25Rollup merge of #137539 - GuillaumeGomez:copy-content-tests, r=notriddleLeón Orell Valerian Liehr-1/+1
Add rustdoc-gui regression test for #137082 Fixes https://github.com/rust-lang/rust/issues/137082. Added new commands in `browser-ui-test` allowing us to add a regression test for #137082 and also another to copy code examples content. r? `@notriddle`
2025-02-25Complete the list of resources used in rustdoc outputColin Pitrat-0/+11
2025-02-25Revert accidental cargo submodule updateOli Scherer-0/+0
2025-02-25Merge from rustcRalf Jung-780/+1006
2025-02-25Preparing for merge from rustcRalf Jung-1/+1
2025-02-25Auto merge of #137571 - tgross35:rollup-i1tcnv1, r=tgross35bors-2/+1
Rollup of 8 pull requests Successful merges: - #134655 (Stabilize `hash_extract_if`) - #135933 (Explain how Vec::with_capacity is faithful) - #136668 (Stabilize `core::str::from_utf8_mut` as `const`) - #136775 (Update `String::from_raw_parts` safety requirements) - #137109 (stabilize extract_if) - #137349 (Implement `read_buf` for zkVM stdin) - #137493 (configure.py: don't instruct user to run nonexistent program) - #137516 (remove some unnecessary rustc_const_unstable) r? `@ghost` `@rustbot` modify labels: rollup
2025-02-25Disable typos checker for the target feature namesChayim Refael Friedman-0/+4
2025-02-25Support target features implications in target_feature 1.1Chayim Refael Friedman-36/+268
We vendor the list of implications, which isn't nice, but t-compiler doesn't want to make rustc_target available to us.
2025-02-25Auto merge of #137573 - compiler-errors:rollup-noq9yhp, r=compiler-errorsbors-10/+15
Rollup of 11 pull requests Successful merges: - #136522 (Remove `feature(dyn_compatible_for_dispatch)` from the compiler) - #137289 (Consolidate and improve error messaging for `CoerceUnsized` and `DispatchFromDyn`) - #137321 (Correct doc about `temp_dir()` behavior on Android) - #137417 (rustc_target: Add more RISC-V atomic-related features) - #137489 (remove `#[rustc_intrinsic_must_be_overridde]`) - #137530 (DWARF mixed versions with LTO on MIPS) - #137543 (std: Fix another new symlink test on Windows) - #137548 (Pass correct `TypingEnv` to `InlineAsmCtxt`) - #137550 (Don't immediately panic if dropck fails without returning errors) - #137552 (Update books) - #137556 (rename simd_shuffle_generic → simd_shuffle_const_generic) r? `@ghost` `@rustbot` modify labels: rollup