about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-11-10add test coverage for separate clippy prefixesonur-ozkan-0/+17
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-11-10handle separate prefixes in clippy argsonur-ozkan-1/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-11-11Remove MutexID listtiif-86/+111
2024-11-10Merge pull request #18492 from samestep/docs-dev-no-design-labelLaurențiu Nicola-1/+1
Replace Design label with C-Architecture
2024-11-10Replace with C-ArchitectureSam Estep-0/+4
2024-11-10Auto merge of #132863 - matthiaskrgr:rollup-1zbjz5f, r=matthiaskrgrbors-379/+964
Rollup of 3 pull requests Successful merges: - #132675 (coverage: Restrict empty-span expansion to only cover `{` and `}`) - #132849 (Miri subtree update) - #132858 (Update minifer version to `0.3.2`) r? `@ghost` `@rustbot` modify labels: rollup
2024-11-10Rollup merge of #132858 - GuillaumeGomez:update-minifier, r=aDotInTheVoidMatthias Krüger-1/+1
Update minifer version to `0.3.2` This version fixes a few lints but the main change is that it makes `clap` dependency optional since it's only used for the binary. r? `@notriddle`
2024-11-10Rollup merge of #132849 - RalfJung:miri-sync, r=RalfJungMatthias Krüger-378/+963
Miri subtree update r? `@ghost`
2024-11-10Update minifer version to `0.3.2`Guillaume Gomez-1/+1
2024-11-10do not trust download-rustc=if-unchanged on CI for nowRalf Jung-1/+3
2024-11-10Preparing for merge from rustcRalf Jung-1/+1
2024-11-10Revert "Rollup merge of #132772 - onur-ozkan:download-rustc-default, r=jieyouxu"Jieyou Xu-35/+32
This reverts commit c435fa8c4b55f0f8ef8e2e839ce7de960613267e, reversing changes made to 88acd493f9dbbc8228db2b123c9b4132a995de92. Seems to have unintentionally omitted commit hash leading to <https://github.com/rust-lang/rust/pull/132772>.
2024-11-10fix linux-futex test being accidentally disabledRalf Jung-3/+2
2024-11-10store futexes in per-allocation data rather than globallyRalf Jung-55/+122
2024-11-10ensure that all publicly reachable const fn have const stability infoRalf Jung-9/+3
2024-11-10Merge from rustcRalf Jung-535/+544
2024-11-10Preparing for merge from rustcRalf Jung-1/+1
2024-11-10Stabilize Arm64EC inline assemblyTaiki Endo-30/+2
2024-11-10still accurate (#2133)Tshepang Mbambo-1/+1
2024-11-09Rollup merge of #132824 - kadenlnelson:patch/wasi-c-abi-doc, r=workingjubileeJubilee-2/+2
Update grammar in wasm-c-abi's compiler flag documentation This PR adjusts the grammar of the `wasm-c-abi` compiler flag documentation. See the inline comments within the PR for details.
2024-11-09Rollup merge of #132801 - RalfJung:alloc-mutability, r=oli-obkJubilee-20/+20
interpret: get_alloc_info: also return mutability This will be needed for https://github.com/rust-lang/miri/pull/3971 This then tuned into a larger refactor where we introduce a new type for the `get_alloc_info` return data, and we move some code to methods on `GlobalAlloc` to avoid duplicating it between the validity check and `get_alloc_info`.
2024-11-09Rollup merge of #131258 - taiki-e:s390x-stabilize-asm, r=AmanieuJubilee-19/+2
Stabilize s390x inline assembly This stabilizes inline assembly for s390x (SystemZ). Corresponding reference PR: https://github.com/rust-lang/reference/pull/1643 --- From the requirements of stabilization mentioned in https://github.com/rust-lang/rust/issues/93335 > Each architecture needs to be reviewed before stabilization: > - It must have clobber_abi. Done in https://github.com/rust-lang/rust/pull/130630. > - It must be possible to clobber every register that is normally clobbered by a function call. Done in the PR that added support for clobber_abi. > - Generally review that the exposed register classes make sense. The followings can be used as input/output: - `reg` (`r[0-10]`, `r[12-14]`): General-purpose register - `reg_addr` (`r[1-10]`, `r[12-14]`): General-purpose register except `r0` which is evaluated as zero in an address context This class is needed because `r0`, which may be allocated when using the `reg` class, cannot be used as a register in certain contexts. This is identical to the `a` constraint in LLVM and GCC. See https://github.com/rust-lang/rust/pull/119431 for details. - `freg` (`f[0-15]`): Floating-point register The followings are clobber-only: - `vreg` (`v[0-31]`): Vector register Technically `vreg` should be able to accept `#[repr(simd)]` types as input/output if the unstable `vector` target feature added is enabled, but `core::arch` has no s390x vector type and both `#[repr(simd)]` and `core::simd` are unstable. Everything related is unstable, so the fact that this is currently a clobber-only should not be considered a stabilization blocker. (https://github.com/rust-lang/rust/issues/130869 tracks unstable stuff here) - `areg` (`a[2-15]`): Access register All of the above register classes except `reg_addr` are needed for `clobber_abi`. The followings cannot be used as operands for inline asm (see also [getReservedRegs](https://github.com/llvm/llvm-project/blob/llvmorg-19.1.0/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp#L258-L282) and [SystemZELFRegisters](https://github.com/llvm/llvm-project/blob/llvmorg-19.1.0/llvm/lib/Target/SystemZ/SystemZRegisterInfo.h#L107-L128) in LLVM): - `r11`: frame pointer - `r15`: stack pointer - `a0`, `a1`: Reserved for system use - `c[0-15]` (control register) Reserved by the kernel Although not listed in the above requirements, `preserves_flags` is implemented in https://github.com/rust-lang/rust/pull/111331. --- cc ``@uweigand`` r? ``@Amanieu`` ``@rustbot`` label +O-SystemZ +A-inline-assembly
2024-11-09Update grammar in wasm-c-abi's compiler flag documentationKaden Nelson-2/+2
Co-authored-by: Jubilee <workingjubilee@gmail.com>
2024-11-10typo (#2132)Tshepang Mbambo-1/+1
2024-11-10Auto merge of #132829 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 16 commits in 0310497822a7a673a330a5dd068b7aaa579a265e..4a2d8dc636445b276288543882e076f254b3ae95 2024-11-01 19:27:56 +0000 to 2024-11-09 19:10:33 +0000 - test: adjust `cargo_test_env` to unblock rust submodule update (rust-lang/cargo#14803) - feat(warnings): add build.warnings option (rust-lang/cargo#14388) - Revert "feat: Add `CARGO_RUSTC_CURRENT_DIR`" (rust-lang/cargo#14799) - CI: make the `lint-docs` job required (rust-lang/cargo#14797) - Switch CI from bors to merge queue (rust-lang/cargo#14718) - docs(test): Document Execs assertions based on port effort (rust-lang/cargo#14793) - fix(test): Make redactions consistent with snapbox (rust-lang/cargo#14790) - test(gc): Update remaining unordered tests to snapbox (rust-lang/cargo#14785) - Normalize the `target` paths (rust-lang/cargo#14497) - rustfix: replace special-case duplicate handling with error (rust-lang/cargo#14782) - test: Update some emaining unordered tests to snapbox (rust-lang/cargo#14781) - Change config paths to only check CARGO_HOME for cargo-script (rust-lang/cargo#14749) - Enable transfer feature in triagebot (rust-lang/cargo#14777) - Add transactional semantics to `rustfix` (rust-lang/cargo#14747) - doc: fix `GlobalContext` reference (rust-lang/cargo#14773) - chore: update handlebars to v6, fix build error (rust-lang/cargo#14772)
2024-11-09Update cargoWeihang Lo-0/+0
2024-11-09add valid date-check markerTshepang Mbambo-2/+3
2024-11-09Pass TyCtxt instead of Queries to the after_analysis callbacksbjorn3-44/+38
There is no other query that may need to be called at that point anyway.
2024-11-09Rollup merge of #132772 - onur-ozkan:download-rustc-default, r=jieyouxuMatthias Krüger-32/+35
use `download-rustc="if-unchanged"` as a global default If `download-rustc` isn't explicitly set and the source is Git-managed, it should be totally okay to utilize "if-unchanged" behaviour. The "dist" profile already sets `download-rustc` to `false`, so this shouldn’t impact anything on CI. This also resolves an unhandled case where `bootstrap` unexpectedly panics if `"if-unchanged"` was used with a non-Git source. Now we exits gracefully with an error message pointing the problem.
2024-11-09Rollup merge of #132754 - Zalathar:opts, r=GuillaumeGomez,jieyouxuMatthias Krüger-460/+466
Simplify the internal API for declaring command-line options The internal APIs for declaring command-line options are old, and intimidatingly complex. This PR replaces them with a single function that takes explicit `stability` and `kind` arguments, making it easier to see how each option is handled, and whether it is treated as stable or unstable. We also don't appear to have any tests for the output of `rustc --help` and similar, so I've added a run-make test to verify that this PR doesn't change any output. (There is already a similar run-make test for rustdoc's help output.) --- The librustdoc changes are simply adjusting to updated compiler APIs; no functional change intended. --- A side-effect of these changes is that rustfmt can once again format the entirety of these option declaration lists, which it was not doing before.
2024-11-09make return type of get_alloc_info a struct, and reduce some code ↵Ralf Jung-20/+20
duplication with validity checking
2024-11-09Merge pull request #4020 from RalfJung/thread-sopeRalf Jung-0/+24
pthread-sync test: use thread::scope for more reliable thread scoping
2024-11-09interpret: get_alloc_info: also return mutabilityRalf Jung-7/+7
2024-11-09pthread-sync: avoid confusing error when running with preemptionRalf Jung-0/+24
2024-11-09improve initial target libdir finding logiconur-ozkan-42/+15
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-11-09Merge from rustcThe Miri Cronjob Bot-2066/+7488
2024-11-09Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-11-09Use a separate dir for r-a builds consistently in helix configMaybe Lapkin-2/+15
2024-11-08Update mdbook to 0.4.42Eric Huss-4/+21
2024-11-08refactor initial-sysroot handlingonur-ozkan-12/+9
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-11-08fix `core::config::tests::override_toml`onur-ozkan-0/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-11-08Auto merge of #132746 - flip1995:clippy-subtree-update, r=Manishearthbors-899/+5023
Clippy subtree update r? `@Manishearth`
2024-11-08Merge pull request #4004 from YohDeadfall/thread-name-ice-fixRalf Jung-109/+192
Get/set thread name shims return errors for invalid handles
2024-11-08Get/set thread name shims return errors for invalid handlesYoh Deadfall-109/+192
2024-11-08respect to global `download-rustc` default in non-dist profilesonur-ozkan-8/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-11-08use `download-rustc="if-unchanged"` as default whenever possibleonur-ozkan-3/+13
"whenever possible" means applying it if `download-rustc` isn't explicitly set and the source is Git-managed. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-11-08read repository information configs at an earlier stageonur-ozkan-21/+18
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-11-08Clippy: cfg out validate_diag on release buildsPhilipp Krones-3/+4
2024-11-08Update parallel-rustc.md (#1926)Tbkhi-51/+70
Co-authored-by: SparrowLii <liyuan179@huawei.com> Co-authored-by: Jieyou Xu <jieyouxu@outlook.com>
2024-11-08remove support for rustc_safe_intrinsic attribute; use rustc_intrinsic ↵Ralf Jung-3/+3
functions instead