about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-08-27Rollup merge of #128935 - lqd:needs-zstd, r=KobzolTrevor Gross-7/+133
More work on `zstd` compression r? ``@Kobzol`` as we've discussed this. This is a draft to show the current approach of supporting zstd in compiletest, and making the tests using it unconditional. Knowing whether llvm/lld was built with `LLVM_ENABLE_ZSTD` is quite hard, so there are two strategies. There are details in the code, and we can discuss this approach. Until we know the config used to build CI artifacts, it seems our options are somewhat limited in any case. zlib compression seems always enabled, so we only check this in its dedicated test, allowing the test to ignore errors due to zstd not being supported. The zstd test is made unconditional in what it tests, by relying on `needs-llvm-zstd` to be ignored when `llvm.libzstd` isn't enabled in `config.toml`. try-job: x86_64-gnu try-job: x86_64-msvc try-job: x86_64-gnu-distcheck
2024-08-27Rollup merge of #127922 - spastorino:unsafe-extern-blocks-in-style-guide, ↵Trevor Gross-2/+2
r=compiler-errors Add unsafe to extern blocks in style guide This goes after this is merged: - https://github.com/rust-lang/rust/pull/127921 r? ``@traviscross`` Tracking: - https://github.com/rust-lang/rust/issues/123743
2024-08-27Rollup merge of #126985 - Mrmaxmeier:dwarf-embed-source, r=davidtwcoTrevor Gross-0/+12
Implement `-Z embed-source` (DWARFv5 source code embedding extension) Implement https://github.com/rust-lang/compiler-team/issues/764 MCP which adds an unstable flag that exposes LLVM's [DWARFv5 source code embedding](https://dwarfstd.org/issues/180201.1.html) support.
2024-08-27Revert "feat: Implement `module_path` macro"Lukas Wirth-278/+71
2024-08-26rustdoc: fix missing resource suffix on `crates.js`Michael Howell-9/+15
Fixes a regression introduced in #128252.
2024-08-26Fix tidyMichael Goulet-4/+6
2024-08-26Stop using a special inner body for the coroutine by-move body for async ↵Michael Goulet-2/+5
closures
2024-08-27Rollup merge of #129560 - GuillaumeGomez:impl-assoc-type-source-link, ↵Matthias Krüger-0/+2
r=notriddle [rustdoc] Generate source link on impl associated types Currently, impl associated types are generated but don't get a source link. This PR fixes that. Before: ![image](https://github.com/user-attachments/assets/3a22adb5-8b66-4124-9267-7c26eed1aa5e) After: ![Screenshot from 2024-08-25 16-31-36](https://github.com/user-attachments/assets/6e9b35e7-4357-4ecf-8c49-1d8294051283) r? `@notriddle`
2024-08-26Document the broken C ABI of `wasm32-unknown-unknown`Alex Crichton-0/+113
Inspired by discussion on https://github.com/rust-lang/rust/issues/129486 this is intended to at least document the current state of the world in a more public location than throughout a series of issues.
2024-08-26Disable tree traversal optimization that is wrong due to lazy nodes.Johannes Hostert-5/+5
See #3846 for more information.
2024-08-26Note that std support is WIPNicole LeGare-5/+3
2024-08-26Add unsafe to extern blocks in style guideSantiago Pastorino-2/+2
2024-08-26Update src/tools/rustbook/Cargo.lockEric Huss-0/+1
2024-08-26Update booksrustbot-0/+0
2024-08-26Fix "Unwrap block" assist with block modifiersChayim Refael Friedman-3/+55
The assist just assumes the `{` will be the first character, which led to strange outputs such as `nsafe {`.
2024-08-26interpret: do not make const-eval query result depend on tcx.sessRalf Jung-6/+40
2024-08-26Fix x.py referenceMarc Poulhiès-1/+1
Trivial fix to change `x.py` into `x`
2024-08-26const-eval: do not make UbChecks behavior depend on current crate's flagsRalf Jung-0/+4
2024-08-26tidy: skip revision llvm-components check for run-make tests许杰友 Jieyou Xu (Joe)-2/+8
Since run-make tests do not support revisions.
2024-08-26Auto merge of #17963 - avrong:avrong/error-lifetimes, r=Veykrilbors-33/+17
Always show error lifetime arguments as `'_` Fixes #17947 Changed error lifetime argument presentation in non-test environment to `'_` and now showing them even if all of args are error lifetimes. This also influenced some of the other tests like `extract_function.rs`, `predicate.rs` and `type_pos.rs`. Not sure whether I need to refrain from adding lifetimes args there. Happy to fix if needed
2024-08-26Add a run-make test for checking that certain `rustc_` crates build on stableJakub Beránek-3/+16
2024-08-26Show lifetime args if there are only error onesAleksei Trifonov-12/+2
2024-08-26Show and render error lifetime args as `'_`Aleksei Trifonov-21/+15
2024-08-26Auto merge of #17941 - ChayimFriedman2:pre-closure-to-fn, r=Veykrilbors-166/+815
Preliminary work for #17940 I split the PR as requested, and made small commits.
2024-08-26silence an overreaching clippy lintRalf Jung-0/+1
2024-08-26add change entry for custom clippy supportonur-ozkan-0/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-08-26support custom clippyonur-ozkan-2/+17
Similar to cargo, rustc, and rustfmt, this adds the support of using custom clippy on bootstrap. It’s designed for those who want to test their own clippy builds or avoid downloading the stage0 clippy. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-08-26Merge from rustcThe Miri Cronjob Bot-4002/+5339
2024-08-26Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-08-26Rollup merge of #129525 - notriddle:notriddle/fake-variadic-tuple-array, ↵Matthias Krüger-40/+74
r=GuillaumeGomez rustdoc: clean up tuple <-> primitive conversion docs This adds a minor missing feature to `fake_variadic`, so that it can render `impl From<(T,)> for [T; 1]` correctly.
2024-08-26Fix Return Type Syntax to include `..` (i.e. `method(..)` and not ↵Chayim Refael Friedman-16/+183
`method()`) as specified in the RFC
2024-08-25allow `llvm.libzstd` with `download-ci-llvm = true`Rémy Rakic-1/+16
but warn about it
2024-08-25enable `llvm.libzstd` on test x64 linux builderRémy Rakic-1/+2
2024-08-25strip whitespace for ignored tests reason commentsRémy Rakic-1/+1
2024-08-25move and rename zstd scriptRémy Rakic-3/+3
move it where it's used, and name it like the other scripts
2024-08-25compiletest: implement `needs-lvm-zstd` directiveRémy Rakic-1/+111
2024-08-25Auto merge of #129563 - matthiaskrgr:rollup-t6bai2d, r=matthiaskrgrbors-13/+54
Rollup of 7 pull requests Successful merges: - #129091 (add Box::as_ptr and Box::as_mut_ptr methods) - #129134 (bootstrap: improve error recovery flags to curl) - #129416 (library: Move unstable API of new_uninit to new features) - #129459 (handle stage0 `cargo` and `rustc` separately) - #129487 (repr_transparent_external_private_fields: special-case some std types) - #129511 (Update minifier to 0.3.1) - #129523 (Make `rustc_type_ir` build on stable) r? `@ghost` `@rustbot` modify labels: rollup
2024-08-25explain the options curl passes to bootstrapbinarycat-2/+21
also fixes a discrepency where the rust side doesn't use -L must not be merged before #129134 docs are only on the rust side, since duplicated prose has a tendancy to get out-of-sync, and also because there are talks of removing the python script all together eventually.
2024-08-25Rollup merge of #129511 - GuillaumeGomez:update-minifier, r=notriddleMatthias Krüger-1/+1
Update minifier to 0.3.1 It adds support for escaped characters. PR is https://github.com/GuillaumeGomez/minifier-rs/pull/111. r? ````@notriddle````
2024-08-25Rollup merge of #129459 - onur-ozkan:separate-stage0-bins, r=KobzolMatthias Krüger-9/+17
handle stage0 `cargo` and `rustc` separately This change allows setting either `build.cargo` or `build.rustc` without requiring both to be set simultaneously, which was not possible previously. To try it, set `build.rustc` without setting `build.cargo`, and try to bootstrap on clean build. Blocker for https://github.com/rust-lang/rust/pull/129152
2024-08-25Rollup merge of #129416 - workingjubilee:partial-move-from-stabilization, ↵Matthias Krüger-2/+2
r=dtolnay library: Move unstable API of new_uninit to new features - `new_zeroed` variants move to `new_zeroed_alloc` - the `write` fn moves to `box_uninit_write` The remainder will be stabilized in upcoming patches, as it was decided to only stabilize `uninit*` and `assume_init`.
2024-08-25Rollup merge of #129134 - lolbinarycat:continue-at, r=KobzolMatthias Krüger-1/+34
bootstrap: improve error recovery flags to curl alternative to #128459 fixes #110178 r? ````@Kobzol````
2024-08-25Auto merge of #129295 - Zalathar:profiler-builtins, r=Kobzolbors-12/+37
Build `library/profiler_builtins` from `ci-llvm` if appropriate Running all of `tests/coverage` requires the LLVM profiler runtime, which requires setting `build.profiler = true`. Historically, doing that has required checking out the entire `src/llvm-project` submodule. For compiler contributors who otherwise don't need that submodule (thanks to `download-ci-vm`), that's quite inconvenient. However, thanks to #129116, the downloaded CI LLVM tarball now contains a copy of LLVM's `compiler-rt` directory, which includes all the files needed to build the profiler runtime. So with a little bit of extra logic in bootstrap, we can have `library/profiler_builtins` look for the `compiler-rt` files in `ci-llvm` instead of the `src/llvm-project` submodule.
2024-08-25Generate missing source link on impl associated typesGuillaume Gomez-0/+2
2024-08-25update macro rewrite functions to return RewriteResultding-young-110/+198
2024-08-25Auto merge of #129531 - Jarcho:clippyup, r=Manishearthbors-2961/+3044
Clippy subtree update r? `@Manishearth`
2024-08-25Auto merge of #17960 - duncanawoods:master, r=HKalbasibors-0/+8
fix: add extra_test_bin_args to test explorer test runner `@HKalbasi` I thought I included this in #17470 but it appears not so I have created a new issue #17959 for this fix.
2024-08-25Auto merge of #17961 - Veykril:autoderef-alloc, r=Veykrilbors-26/+60
internal: Don't allocate autoderef steps when not needed
2024-08-25internal: Don't allocate autoderef steps when not neededLukas Wirth-26/+60
2024-08-25fix: add extra_test_bin_args to test explorer test runnerduncan-0/+8
trim whitespace