about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-05-29Merge pull request #19888 from Veykril/push-wylsryzpnnopLukas Wirth-3/+6
fix: Recognize salsa cycles in `thread_result_to_response`
2025-05-29fix: Recognize salsa cycles in `thread_result_to_response`Lukas Wirth-3/+6
2025-05-29Rollup merge of #141656 - ehuss:cargo-aarch64-macos, r=marcoieni,jieyouxuJacob Pratt-1/+3
CI: Add cargo tests to aarch64-apple-darwin This adds running of cargo's tests to the aarch64-apple-darwin job. The reason for this is that tier-1 targets are ostensibly supposed to run tests for host tools, but we are not doing that here. We do have fairly good coverage in Cargo's CI, but we don't cover the beta or stable branches here. I think it would be good to have a fallback here. I think this should only add about 7 minutes of CI time, but I have not measured it. The current job is about 1.5 hours. In summary of the tier-1 targets: | Target | rust-lang/cargo | rust-lang/rust | |--------|-----------------|----------------| | aarch64-apple-darwin | stable/nightly | ❌ (this PR) | | aarch64-unknown-linux-gnu | stable/nightly | ✓ | | x86_64-apple-darwin | nightly | ❌ | | x86_64-pc-windows-gnu | nightly | ❌ | | x86_64-pc-windows-msvc | stable | ✓ | | x86_64-unknown-linux-gnu | stable/beta/nightly | ✓ | | i686-pc-windows-msvc | ❌ | ❌ | | i686-unknown-linux-gnu | ❌ | ❌ | try-job: aarch64-apple
2025-05-29Rollup merge of #138285 - beetrees:repr128-stable, r=traviscross,bjorn3Jacob Pratt-120/+94
Stabilize `repr128` ## Stabilisation report The `repr128` feature ([tracking issue](https://github.com/rust-lang/rust/issues/56071)) allows the use of `#[repr(u128)]` and `#[repr(i128)]` on enums in the same way that other primitive representations such as `#[repr(u64)]` can be used. For example: ```rust #[repr(u128)] enum Foo { One = 1, Two, Big = u128::MAX, } #[repr(i128)] enum Bar { HasThing(u16) = 42, HasSomethingElse(i64) = u64::MAX as i128 + 1, HasNothing, } ``` This is the final part of adding 128-bit integers to Rust ([RFC 1504](https://rust-lang.github.io/rfcs/1504-int128.html)); all other parts of 128-bit integer support were stabilised in #49101 back in 2018. From a design perspective, `#[repr(u128)]`/`#[repr(i128)]` function like `#[repr(u64)]`/`#[repr(i64)]` but for 128-bit integers instead of 64-bit integers. The only differences are: - FFI safety: as `u128`/`i128` are not currently considered FFI safe, neither are `#[repr(u128)]`/`#[repr(i128)]` enums (I discovered this wasn't the case while drafting this stabilisation report, so I have submitted #138282 to fix this). - Debug info: while none of the major debuggers currently support 128-bit integers, as of LLVM 20 `rustc` will emit valid debuginfo for both DWARF and PDB (PDB makes use of the same natvis that is also used for all enums with fields, whereas DWARF has native support). Tests for `#[repr(u128)]`/`#[repr(i128)]` enums include: - [ui/enum-discriminant/repr128.rs](https://github.com/rust-lang/rust/blob/385970f0c1fd0c09bac426b02f38300c0b1ba9a2/tests/ui/enum-discriminant/repr128.rs): checks that 128-bit enum discriminants have the correct values. - [debuginfo/msvc-pretty-enums.rs](https://github.com/rust-lang/rust/blob/385970f0c1fd0c09bac426b02f38300c0b1ba9a2/tests/debuginfo/msvc-pretty-enums.rs): checks the PDB debuginfo is correct. - [run-make/repr128-dwarf](https://github.com/rust-lang/rust/blob/385970f0c1fd0c09bac426b02f38300c0b1ba9a2/tests/run-make/repr128-dwarf/rmake.rs): checks the DWARF debuginfo is correct. Stabilising this feature does not require any changes to the Rust Reference as [the documentation on primitive representations](https://doc.rust-lang.org/nightly/reference/type-layout.html#r-layout.repr.primitive.intro) already includes `u128` and `i128`. Closes #56071 Closes https://github.com/rust-lang/reference/issues/1368 r? lang ```@rustbot``` label +I-lang-nominated +T-lang
2025-05-29Rollup merge of #141684 - petrochenkov:bumponig, r=ehussJacob Pratt-5/+5
rustbook: Bump versions of `onig` and `onig_sys` This fixes the build on GCC 15.
2025-05-29Rollup merge of #141680 - davidjsonn:master, r=oli-obkJacob Pratt-1/+1
replace TraitRef link memory.md Hi, I fixed broken links in the documentation and replaced them with working ones. https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TraitRef.html - old link https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/type.TraitRef.html - new link
2025-05-29Rollup merge of #141675 - nnethercote:ItemKind-field-order, r=fee1-deadJacob Pratt-9/+9
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-28Auto merge of #141693 - lnicola:sync-from-ra, r=lnicolabors-956/+1513
Subtree update of `rust-analyzer` r? `@ghost`
2025-05-28jsondoclint: Extract `Command`/`CommandKind` into its own fileAlona Enraght-Moony-222/+233
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-28atomic_load intrinsic: use const generic parameter for orderingRalf Jung-5/+25
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-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-28Auto merge of #141696 - tgross35:rollup-fhpj180, r=tgross35bors-8/+28
Rollup of 7 pull requests Successful merges: - rust-lang/rust#140369 (Add data_ptr method to Mutex and RwLock) - rust-lang/rust#140697 (Split `autodiff` into `autodiff_forward` and `autodiff_reverse`) - rust-lang/rust#141404 (Improve intrinsic handling in cg_ssa) - rust-lang/rust#141411 (rustdoc: linking to a local proc macro no longer warns) - rust-lang/rust#141548 (consider glob imports in cfg suggestion) - rust-lang/rust#141627 (Drop-build cleanups) - rust-lang/rust#141670 (Fix ICE in tokenstream with contracts from parser recovery) r? `@ghost` `@rustbot` modify labels: rollup
2025-05-28Merge pull request #4354 from RalfJung/before_stack_popRalf Jung-1/+1
fix comment in before_stack_pop
2025-05-28fix comment in before_stack_popRalf Jung-1/+1
2025-05-28docs:deleting duplicate documentationvremyavnikuda-70/+0
2025-05-28tidy: Skip pal and `#[test]` checks in compiler-builtinsTrevor Gross-0/+2
2025-05-28Add cfg for FormatShortCmdMu001999-0/+3
2025-05-28Rollup merge of #141411 - lolbinarycat:rustdoc-link-proc-macro-91274, ↵Trevor Gross-8/+28
r=GuillaumeGomez rustdoc: linking to a local proc macro no longer warns fixes https://github.com/rust-lang/rust/issues/91274 tried to keep the fix general in case we ever have any other kind of item that occupies multiple namespaces simultaniously.
2025-05-28Auto merge of #141576 - marcoieni:pr-free-runners-aarch, r=Kobzolbors-3/+71
ci: move tests from x86_64-gnu-llvm-19 job to aarch64
2025-05-28Stabilise `repr128`beetrees-120/+94
2025-05-28Update SGX maintainersRaoul Strackx-1/+1
2025-05-28rustbook: Bump versions of `onig` and `onig_sys`Vadim Petrochenkov-5/+5
This fixes the build on GCC 15
2025-05-28replace TraitRef link memory.mdDavid Klank-1/+1
2025-05-28Merge pull request #4344 from CraftSpider/windows-file-cloneOli Scherer-1/+97
Implement file cloning on Windows
2025-05-28Use `builin_index` instead of hand-rolling itOli Scherer-8/+5
2025-05-28Merge pull request #19881 from Veykril/push-wsrmttkymypsLukas Wirth-171/+336
feat: Desugar assist for `let pat = expr?;` -> `let else`
2025-05-28feat: Desugar assist for `let pat = expr?;` -> `let else`Lukas Wirth-171/+336
2025-05-28Auto merge of #141501 - marcoieni:dist-x86_64-linux-codebuild-again, r=Kobzolbors-2/+2
ci: move dist-x86_64-linux job to codebuild
2025-05-28add Miri testsRalf Jung-0/+131
2025-05-28Merge pull request #19880 from Veykril/push-xmpxumsrkymkLukas Wirth-31/+97
fix: Handle included files better in IDE layer
2025-05-28Merge pull request #19872 from ChayimFriedman2/async-fn-outputLukas Wirth-11/+81
fix: Fix inference of `AsyncFnX` return type
2025-05-28fix: Handle included files better in IDE layerLukas Wirth-31/+97
This does not fully fix things, but it introduces a function that can be used to fix occurences. When using `to_def` functionality, the input node needs to come from the macro expanded include, not the real file that was included. This does unfortunately add more caller burden, but there is not really a way around it.
2025-05-28ci: verify that codebuild jobs use ghcr.ioMarcoIeni-1/+67
2025-05-28Merge pull request #19876 from ShoyuVanilla/layout-paddingLukas Wirth-23/+272
feat: Render padding information when hovering on structs
2025-05-28Merge pull request #4353 from rust-lang/rustup-2025-05-28Ralf Jung-542/+594
Automatic Rustup
2025-05-28Merge pull request #4351 from RalfJung/squash-winRalf Jung-1/+22
attempt to fix squash on Windows
2025-05-28Auto merge of #141375 - kraj:kraj/aarch64-musl, r=Mark-Simulacrumbors-2/+1
Disable libunwind cross-architecture unwinding Building with _LIBUNWIND_IS_NATIVE_ONLY disables code for cross-architecture unwinding It also enables some additional code that handles PAC-specific unwind info it helps compiling with the -mbranch-protection=pac or -mbranch-protection=standard flags This fixes build with clang/musl on aarch64
2025-05-28Reorder `ast::ItemKind::{Struct,Enum,Union}` fields.Nicholas Nethercote-9/+9
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 ```
2025-05-28feat: Render padding information when hovering on structsShoyu Vanilla-23/+272
2025-05-28Back out "Fix IDE resolution of item macros"Lukas Wirth-14/+0
This backs out commit 3e0ab7219a5464999652beca22698cd46e1e48e8.
2025-05-28Drop unnecessay codeLukas Wirth-35/+3
2025-05-28Merge from rustcThe Miri Cronjob Bot-541/+593
2025-05-28fix: Fix IDE layer not resolving some macro callsLukas Wirth-35/+62
2025-05-28Preparing for merge from rustcThe Miri Cronjob Bot-1/+1