about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2024-12-27Move `{widening, carrying}_mul` to an intrinsic with fallback MIRScott McMurray-135/+322
Including implementing it for `u128`, so it can be defined in `uint_impl!`. This way it works for all backends, including CTFE.
2024-12-26Auto merge of #132431 - shahn:from_iterator_more_tuples, r=Amanieubors-51/+65
From iterator for more tuples
2024-12-26Impl FromIterator for tuples with arity 1-12Sebastian Hahn-33/+47
2024-12-26Fix formattingSebastian Hahn-19/+19
2024-12-26Auto merge of #134768 - RalfJung:const_alloc_layout, r=jhprattbors-10/+5
stabilize const_alloc_layout libs-api FCP passed in https://github.com/rust-lang/rust/issues/67521 Fixes #67521
2024-12-25stabilize const_alloc_layoutRalf Jung-10/+5
2024-12-25Auto merge of #134703 - poliorcetics:ab/push-ovsylkzsoxku, r=GuillaumeGomezbors-12/+10
nits: Cleanup of `librustdoc::clean::Cfg::simplify_with` r? `@GuillaumeGomez`
2024-12-25Auto merge of #134736 - jyn514:msvc-backtraces, r=jieyouxubors-1/+0
Run `tests/ui/backtrace/std-backtrace.rs` on MSVC. The original PR which disabled these, https://github.com/rust-lang/rust/pull/62897, only mentions them being broken on i686. ~~let's still make sure the rest of windows is supported.~~ Let's see if we can enable this for msvc now (32-bit and 64-bit). r? `@jieyouxu` try-job: x86_64-msvc try-job: i686-msvc try-job: i686-mingw try-job: x86_64-mingw-1 try-job: x86_64-mingw-2 try-job: dist-x86_64-msvc try-job: dist-i686-msvc
2024-12-25Run `tests/ui/backtrace/std-backtrace.rs` on MSVC.jyn-1/+0
The original PR which disabled these only mentions them being broken on i686 msvc. Let's try to see if we can reenable this test for msvc (both 32-bit and 64-bit).
2024-12-25Auto merge of #134756 - jieyouxu:rollup-suec48x, r=jieyouxubors-248/+437
Rollup of 3 pull requests Successful merges: - #134743 (Default to short backtraces for dev builds of rustc itself) - #134750 (Update `#[coverage(..)]` attribute error messages to match the current implementation) - #134751 (Enable LSX feature for LoongArch OpenHarmony target) r? `@ghost` `@rustbot` modify labels: rollup
2024-12-25Rollup merge of #134751 - heiher:loong-ohos-lsx, r=jieyouxu许杰友 Jieyou Xu (Joe)-1/+1
Enable LSX feature for LoongArch OpenHarmony target
2024-12-25Rollup merge of #134750 - Zalathar:coverage-attr-errors, r=jieyouxu许杰友 Jieyou Xu (Joe)-246/+431
Update `#[coverage(..)]` attribute error messages to match the current implementation The allowed positions for `#[coverage(..)]` attributes were expanded by #126721, but the corresponding error messages were never updated to reflect the new behaviour. Part of #134749.
2024-12-25Rollup merge of #134743 - jyn514:rustc-dev-short-backtraces, r=jieyouxu许杰友 Jieyou Xu (Joe)-1/+5
Default to short backtraces for dev builds of rustc itself A dev build almost certainly means that whoever's built the compiler has the opportunity to rerun it to collect a more complete trace. So we don't need to default to a complete trace; we should hide irrelevant details by default.
2024-12-25Auto merge of #134738 - clubby789:forbid-output-ui, r=jieyouxubors-2/+4
compiletest: Support `forbid-output` in UI tests The `forbid-output` directive is currently only run in incremental tests (although no incremental tests use it). There are some UI tests 'using' it, but it's doing nothing 😄 Let's fix this Will also PR the dev guide to note this. dev-guide PR: https://github.com/rust-lang/rustc-dev-guide/pull/2171
2024-12-25Un-redact one occurrence of "coverage attribute not allowed here"Zalathar-1/+1
2024-12-25Rewrite the error-code docs for coverage attributes [E0788]Zalathar-19/+17
2024-12-25Enable LSX feature for LoongArch OpenHarmony targetWANG Rui-1/+1
2024-12-25Auto merge of #134748 - DianQK:rollup-3y5fzcx, r=DianQKbors-10/+261
Rollup of 3 pull requests Successful merges: - #134525 (Arbitrary self types v2: unstable doc updates.) - #134735 (Consider arm to diverge if guard diverges) - #134741 (Actually print all the relevant parts of a coroutine in verbose mode) r? `@ghost` `@rustbot` modify labels: rollup
2024-12-25Overhaul error messages for disallowed coverage attributesZalathar-75/+160
2024-12-25Expand the main test for where the coverage attribute is allowedZalathar-48/+148
Some of these cases are also implicitly checked by other tests, but it's helpful to also explicitly list them in the main test.
2024-12-25Fully redact the [E0788] error message in tests, to make changes easierZalathar-26/+26
2024-12-25Rollup merge of #134741 - compiler-errors:coroutine-verbose, r=lqdDianQK-5/+11
Actually print all the relevant parts of a coroutine in verbose mode I need to actually see these components, idk why we weren't printing them :)
2024-12-25Rollup merge of #134735 - compiler-errors:arm-diverges, r=WaffleLapkinDianQK-5/+39
Consider arm to diverge if guard diverges This is not a fix for #134734, but I discovered it when I was gauging how difficult it would be to fix that. It does fix a really old test though :> r? `@WaffleLapkin` or reassign
2024-12-25Rollup merge of #134525 - adetaylor:unstable-book-changes, r=wesleywiserDianQK-0/+211
Arbitrary self types v2: unstable doc updates. Document these two feature flags. Part of #44874 .
2024-12-25Auto merge of #134747 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 6 commits in 652623b779c88fe44afede28bf7f1c9c07812511..c86f4b3a1b153218e6e50861214b0b4b4e695f23 2024-12-20 15:44:42 +0000 to 2024-12-24 17:49:48 +0000 - fix(package): check dirtiness of path fields in manifest (rust-lang/cargo#14966) - test: make path arguments more generic and flexible (rust-lang/cargo#14979) - Moved manifest metadata tracking from fingerprint to dep info (rust-lang/cargo#14973) - fix: assure possibly blocking non-files (like FIFOs) won't be picked up for publishing. (rust-lang/cargo#14977) - simplify SourceID Hash (rust-lang/cargo#14800) - upgrade `gix` to the latest release 0.69. (rust-lang/cargo#14975)
2024-12-24Update cargoWeihang Lo-0/+0
2024-12-24Default to short backtraces for dev builds of rustc itselfjyn-1/+5
A dev build almost certainly means that whoever's built the compiler has the opportunity to rerun it to collect a more complete trace. So we don't need to default to a complete trace; we should hide irrelevant details by default.
2024-12-25Actually print all the relevant parts of a coroutine in verbose modeMichael Goulet-5/+11
2024-12-25Rename `tests/ui/coverage-attr/no-coverage.rs` to `allowed-positions.rs`Zalathar-14/+16
2024-12-25Auto merge of #134729 - oliveredget:typo, r=jieyouxubors-6/+6
chore: fix typos Fix some typos, thank you very much.
2024-12-25compiletest: Support `forbid-output` in UI testsclubby789-2/+4
2024-12-24Auto merge of #134722 - ChrisDenton:trunc, r=Amanieubors-8/+20
Windows: Use FILE_ALLOCATION_INFO for truncation We use `FILE_END_OF_FILE_INFO` here only because WINE does not support `FILE_ALLOCATION_INFO`. Instead of going with the one with broadest support, let's just use that as fallback only.
2024-12-24Auto merge of #134333 - daxpedda:stdarch-bump, r=daxpeddabors-18/+10
Bump `stdarch` This bumps `stdarch` to https://github.com/rust-lang/stdarch/commit/684de0d6fef708cae08214fef9643dd9ec7296e1 to get in https://github.com/rust-lang/stdarch/pull/1677 (tracked in https://github.com/rust-lang/rust/issues/133908). From the [commit history](https://github.com/rust-lang/stdarch/compare/e5e00aab0a8c8fa35fb7865e88fa82366f615c53...684de0d6fef708cae08214fef9643dd9ec7296e1) I deduced that there shouldn't be any changes to Rust necessary. From past PRs I'm assuming that bumping `stdarch` like this is fine, but please let me know if this is somehow inappropriate or requires something more to be done! try-job: arm-android try-job: armhf-gnu
2024-12-24Consider arm to diverge if guard divergesMichael Goulet-5/+39
2024-12-24Bump `stdarch`daxpedda-18/+10
2024-12-24Auto merge of #134724 - onur-ozkan:type-improvements, r=jieyouxubors-53/+34
improve type mutation for certain structures self-explanatory
2024-12-24chore: fix typosoliveredget-6/+6
2024-12-24improve type mutation for certain structuresonur-ozkan-53/+34
self-explanatory Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-12-24Windows: Use FILE_ALLOCATION_INFO for truncationChris Denton-8/+20
But fallback to FILE_END_OF_FILE_INFO for WINE
2024-12-24Auto merge of #134513 - fudancoder:master, r=jieyouxubors-8/+8
Fix some typos
2024-12-24Fix some typosfudancoder-8/+8
Signed-off-by: fudancoder <fudancoder@icloud.com.>
2024-12-24Auto merge of #134716 - Zalathar:rollup-1h4q8cc, r=Zalatharbors-232/+427
Rollup of 5 pull requests Successful merges: - #134638 (Fix effect predicates from item bounds in old solver) - #134662 (Fix safety docs for `dyn Any + Send {+ Sync}`) - #134689 (core: fix const ptr::swap_nonoverlapping when there are pointers at odd offsets) - #134699 (Belay new reviews for workingjubilee) - #134701 (Correctly note item kind in `NonConstFunctionCall` error message) r? `@ghost` `@rustbot` modify labels: rollup
2024-12-24Rollup merge of #134701 - compiler-errors:non-const-def-descr, r=Urgau,fmeaseStuart Cook-105/+107
Correctly note item kind in `NonConstFunctionCall` error message Don't just call everything a "`fn`". This is more consistent with the error message we give for conditionally-const items, which do note the item's def kind. r? fmease, this is a prerequisite for making those `~const PartialEq` error messages better. Re-roll if you're busy or don't want to review this.
2024-12-24Rollup merge of #134699 - workingjubilee:jubilee-jubilee, r=lqdStuart Cook-0/+1
Belay new reviews for workingjubilee My queue is at-capacity, effectively.
2024-12-24Rollup merge of #134689 - RalfJung:ptr-swap-test, r=oli-obkStuart Cook-48/+106
core: fix const ptr::swap_nonoverlapping when there are pointers at odd offsets Ensure that the pointer gets swapped correctly even if it is not stored at an aligned offset. This rules out implementations that copy things in a `usize` loop -- so our implementation needs to be adjusted to avoid such a loop when running in const context. Part of https://github.com/rust-lang/rust/issues/133668
2024-12-24Rollup merge of #134662 - ionicmc-rs:any-safety-docs, r=AmanieuStuart Cook-2/+12
Fix safety docs for `dyn Any + Send {+ Sync}` Fixes the `# Safety` docs for `dyn Any + Send`'s `downcast_{mut/ref}_unchecked` to show the direct instructions , where previously the would tell the user to find the docs on `dyn Any` themselves. This also adds them for `downcast_{mut/ref}_unchecked` on `dyn Any + Send + Sync`
2024-12-24Rollup merge of #134638 - compiler-errors:fx-item-bounds, r=lcnrStuart Cook-77/+201
Fix effect predicates from item bounds in old solver r? lcnr
2024-12-24Auto merge of #134625 - compiler-errors:unsafe-binders-ty, r=oli-obkbors-305/+536
Begin to implement type system layer of unsafe binders Mostly TODOs, but there's a lot of match arms that are basically just noops so I wanted to split these out before I put up the MIR lowering/projection part of this logic. r? oli-obk Tracking: - https://github.com/rust-lang/rust/issues/130516
2024-12-24nit: cleanups in `Cfg::simplify_with`Alexis (Poliorcetics) Bourget-12/+10
2024-12-23Note def descr in NonConstFunctionCallMichael Goulet-105/+107