about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-05-29Rollup merge of #141675 - nnethercote:ItemKind-field-order, r=fee1-deadJacob Pratt-6/+6
Reorder `ast::ItemKind::{Struct,Enum,Union}` fields. So they match the order of the parts in the source code, e.g.: ``` struct Foo<T, U> { t: T, u: U } <-><----> <------------> / | \ ident generics variant_data ``` r? `@fee1-dead`
2025-05-29Rollup merge of #141675 - nnethercote:ItemKind-field-order, r=fee1-deadJacob Pratt-56/+54
Reorder `ast::ItemKind::{Struct,Enum,Union}` fields. So they match the order of the parts in the source code, e.g.: ``` struct Foo<T, U> { t: T, u: U } <-><----> <------------> / | \ ident generics variant_data ``` r? `@fee1-dead`
2025-05-29Rollup merge of #141643 - marcoieni:codebuild-check, r=KobzolJacob Pratt-1/+67
ci: verify that codebuild jobs use ghcr.io
2025-05-29Rollup merge of #141638 - oli-obk:builtin-index, r=lcnrJacob Pratt-8/+5
Use `builtin_index` instead of hand-rolling it Just using the dedicated method more
2025-05-29Rollup merge of #141638 - oli-obk:builtin-index, r=lcnrJacob Pratt-21/+11
Use `builtin_index` instead of hand-rolling it Just using the dedicated method more
2025-05-29Rollup merge of #141612 - jhpratt:phantom-docs, r=tgross35Jacob Pratt-0/+8
Call out possibility of invariant result in variance markers ref https://github.com/rust-lang/rust/issues/135806#issuecomment-2766191535
2025-05-29Rollup merge of #141533 - RalfJung:rintf, r=bjorn3Jacob Pratt-12/+0
clean up old rintf leftovers As usual stdarch needed special treatment due to https://github.com/rust-lang/stdarch/issues/1655, and apparently I forgot to clean up these leftovers here. They can be removed now.
2025-05-29Rollup merge of #141477 - tshepang:patch-1, r=ChrisDentonJacob Pratt-5/+20
Path::with_extension: show that it adds an extension where one did no… …t exist I think the times I encountered this, I had to check first if files without extensions were added, since all examples only had files with existing extensions. Also, this replaced example already has a similar example below.
2025-05-29Rollup merge of #141104 - PaulDance:fix-win7-test_eq_windows_file_type, ↵Jacob Pratt-1/+23
r=ChrisDenton Test(fs): Fix `test_eq_windows_file_type` for Windows 7 Would otherwise fail on: ``` thread 'fs::tests::test_eq_windows_file_type' panicked at library/std/src/test_helpers.rs:53:20: called `Result::unwrap()` on an `Err` value: Os { code: 5, kind: PermissionDenied, message: "Access is denied." } ``` This came from the read-only attribute set on the test file. In order to fix this, instead of simply disabling the test, the attribute is reset before the test's end so it may still run successfully. `@rustbot` label T-libs A-filesystem A-testsuite O-windows-7 O-windows-msvc
2025-05-29Rollup merge of #138139 - xizheyin:issue-137384, r=ChrisDentonJacob Pratt-0/+38
Emit warning while outputs is not exe and prints linkage info cc #137384 ```bash $ rustc +stage1 /dev/null --print native-static-libs --crate-type staticlib --emit metadata warning: skipping link step due to conflict: cannot output linkage information without emitting executable note: consider emitting executable to print link information warning: 1 warning emitted ```
2025-05-29Rollup merge of #136429 - fmease:gci-fix-def-site-checks, r=BoxyUwUJacob Pratt-38/+64
GCI: At their def site, actually wfcheck the where-clause & always eval free lifetime-generic constants * 1st commit: Partially addresses [#136204](https://github.com/rust-lang/rust/issues/136204) by turning const eval errors from post to pre-mono for free lifetime-generic constants. * As the linked issue/comment states, on master there's a difference between `const _: () = panic!();` (pre-mono error) and `const _<'a>: () = panic!();` (post-mono error) which feels wrong. * With this PR, both become pre-mono ones! * 2nd commit: Oof, yeah, I missed that in the initial impl! This doesn't fully address #136204 because I still haven't figured out how & where to properly & best suppress const eval of free constants whose predicates don't hold at the def site. The motivating example is `const _UNUSED: () = () where for<'_delay> String: Copy;` which can also be found over at the tracking issue #113521. r? compiler-errors or reassign
2025-05-29Auto merge of #141581 - lcnr:fold-clauses, r=compiler-errorsbors-18/+138
add additional `TypeFlags` fast paths Some crates, e.g. `diesel`, have items with a lot of where-clauses (more than 150). In these cases checking the `TypeFlags` of the whole `param_env` can be very beneficial. This adds `fn fold_clauses` to mirror the existing `fn visit_clauses` and then uses this in folders which fold `ParamEnv`s. Split out from rust-lang/rust#141451, depends on rust-lang/rust#141442. r? `@compiler-errors`
2025-05-29Add `loongarch64` with `d` feature to `f32::midpoint` fast pathWANG Rui-0/+1
This patch enables the optimized implementation of `f32::midpoint` for `loongarch64` targets that support the `d`feature. Targets with reliable 64-bit float support can safely use the faster and more accurate computation via `f64`, avoiding the fallback branchy version.
2025-05-29Remove unneeded featureOrson Peters-1/+0
2025-05-29Add testOrson Peters-0/+39
2025-05-28Auto merge of #141693 - lnicola:sync-from-ra, r=lnicolabors-956/+1513
Subtree update of `rust-analyzer` r? `@ghost`
2025-05-28Merge pull request #669 from FractalFir/y_cargo_testsantoyo-16/+44
modifed y.sh to allow for running cargo tests.
2025-05-28Merge pull request #688 from FractalFir/fuzz_supportantoyo-2/+246
Add support for easily fuzzing `cg_gcc` with rustlantis
2025-05-29Removed some env vars from the CImichal kostrubiec-8/+6
2025-05-29Added support for easy fuzzing with rustlantismichal kostrubiec-2/+246
2025-05-28modifed y.sh to allow for running cargo tests.michal kostrubiec-8/+38
2025-05-28jsondoclint: Extract `Command`/`CommandKind` into its own fileAlona Enraght-Moony-222/+233
2025-05-28aarch64: Add a note saying why we use `frintx` rather than `frintn`Trevor Gross-0/+6
2025-05-29Merge pull request #2420 from rust-lang/aDotInTheVoid-patch-1许杰友 Jieyou Xu (Joe)-1/+1
directives.md: Fix `//@ build_aux_docs` -> `//@ build-aux-docs`
2025-05-29Merge pull request #2421 from aDotInTheVoid/slashslashat许杰友 Jieyou Xu (Joe)-4/+4
Fix some old `// <directive>` to `//@ <directive>`
2025-05-28atomic_load intrinsic: use const generic parameter for orderingRalf Jung-1/+2
2025-05-28get rid of rustc_codegen_ssa::common::AtomicOrderingRalf Jung-5/+5
2025-05-28get rid of rustc_codegen_ssa::common::AtomicOrderingRalf Jung-42/+23
2025-05-28atomic_load intrinsic: use const generic parameter for orderingRalf Jung-74/+198
2025-05-28Remove unused arg_memory_ty methodbjorn3-15/+3
2025-05-28Remove unused arg_memory_ty methodbjorn3-26/+3
2025-05-28Mark all optimize methods and the codegen method as safebjorn3-3/+3
There is no safety contract and I don't think any of them can actually cause UB in more ways than passing malicious source code to rustc can. While LtoModuleCodegen::optimize says that the returned ModuleCodegen points into the LTO module, the LTO module has already been dropped by the time this function returns, so if the returned ModuleCodegen indeed points into the LTO module, we would have seen crashes on every LTO compilation, which we don't. As such the comment is outdated.
2025-05-28Mark all optimize methods and the codegen method as safebjorn3-34/+25
There is no safety contract and I don't think any of them can actually cause UB in more ways than passing malicious source code to rustc can. While LtoModuleCodegen::optimize says that the returned ModuleCodegen points into the LTO module, the LTO module has already been dropped by the time this function returns, so if the returned ModuleCodegen indeed points into the LTO module, we would have seen crashes on every LTO compilation, which we don't. As such the comment is outdated.
2025-05-28Remove methods from StaticCodegenMethods that are not called in cg_ssa itselfbjorn3-8/+3
2025-05-28Remove methods from StaticCodegenMethods that are not called in cg_ssa itselfbjorn3-37/+16
2025-05-28Make predefine methods take &mut selfbjorn3-3/+3
2025-05-28Make predefine methods take &mut selfbjorn3-10/+10
2025-05-28Remove a couple of uses of interior mutability around staticsbjorn3-3/+3
2025-05-28Move supports_parallel from CodegenBackend to ExtraBackendMethodsbjorn3-8/+8
It is only relevant when using cg_ssa for driving compilation.
2025-05-28Remove codegen_unit from MiscCodegenMethodsbjorn3-7/+8
2025-05-28Remove a couple of uses of interior mutability around staticsbjorn3-28/+33
2025-05-28Reduce amount of types that need to be PartialEqbjorn3-3/+3
2025-05-28The personality function is a Function, not a Valuebjorn3-4/+4
2025-05-28Remove codegen_unit from MiscCodegenMethodsbjorn3-42/+29
2025-05-28Remove checks that are run with `tidy`Guillaume Gomez-3/+0
2025-05-28Add `eslint` as part of tidy runGuillaume Gomez-0/+94
2025-05-28Typo in README.mdDario Damiani-1/+1
Link to Apache License changed from htps:// to https://
2025-05-28Fix some old `// <directive>` to `//@ <directive>`Alona Enraght-Moony-4/+4
2025-05-28directives.md: Fix `//@ build_aux_docs` -> `//@ build-aux-docs`Alona Enraght-Moony-1/+1
2025-05-28`zombie_processes`: do not complain about early early returnsSamuel Tardieu-15/+21
If an early return is found under the HIR local declaration node but before the child process is created, it should not trigger the lint because the child process has not yet been created.