about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2024-12-28Merge pull request #4114 from RalfJung/fd-ref-refactorRalf Jung-278/+262
FD handling: avoid unnecessary dynamic downcasts
2024-12-28epoll: keep strong reference while blockingRalf Jung-39/+27
2024-12-28FD handling: avoid unnecessary dynamic downcastsRalf Jung-247/+243
2024-12-28Merge pull request #4113 from rmehri01/toolchain-parsingRalf Jung-0/+1
fix toolchain flag parsing
2024-12-28fix toolchain flag parsingRyan Mehri-0/+1
2024-12-27Merge pull request #4112 from RalfJung/socket-cleanupOli Scherer-116/+169
Socket read/write cleanup
2024-12-27also clean up eventfd code in the same veinRalf Jung-30/+25
2024-12-27add test for close-while-blockedRalf Jung-8/+78
2024-12-27bring socket logic back together and fix logic bugRalf Jung-86/+74
2024-12-27Merge pull request #4111 from rust-lang/rustup-2024-12-27Ralf Jung-6804/+20894
Automatic Rustup
2024-12-27clippyRalf Jung-6/+6
2024-12-27Merge from rustcThe Miri Cronjob Bot-6797/+20887
2024-12-27MatchBranchSimplification: Consider empty-unreachable otherwise branchclubby789-48/+81
2024-12-27Add diff test for MatchBranchSimplificationclubby789-0/+46
2024-12-27Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-12-26Auto merge of #134788 - flip1995:clippy-subtree-update, r=matthiaskrgrbors-1415/+6002
Clippy subtree update r? `@Manishearth`
2024-12-26Auto merge of #134774 - jyn514:rustc-dev-short-backtraces, r=jieyouxubors-2/+6
fix default-backtrace-ice test when running `tests/ui/panics/default-backtrace-ice.rs locally it gave this error: ``` failures: ---- [ui] tests/ui/panics/default-backtrace-ice.rs stdout ---- Saved the actual stderr to "/home/jyn/src/rust3/build/x86_64-unknown-linux-gnu/test/ui/panics/default-backtrace-ice/default-backtrace-ice.stderr" diff of stderr: 7 8 aborting due to `-Z treat-err-as-bug=1` 9 stack backtrace: - (end_short_backtrace) - (begin_short_backtrace) - (end_short_backtrace) - (begin_short_backtrace) + [... omitted 22 frames ...] + ``` (note that you must *not* use --bless; we previously did not have an error annotation to verify it was a full backtrace instead of a short backtrace.) this is a regression from setting RUST_BACKTRACE=1 by default in https://github.com/rust-lang/rust/pull/134743. we need to turn off the new behavior when running UI tests so that they reflect our dist compiler. normally that's done by checking `sess.unstable_opts.ui_testing`, but this happens extremely early in the compiler before we've expanded arg files. do an extremely simple hack that doesn't work in all cases - we don't need it to work in all cases, only when running UI tests. cc https://github.com/rust-lang/rust/pull/129658#issuecomment-2561988081 r? `@jieyouxu`
2024-12-26Merge commit '609cd310be44677ae31d452a17b0f8207e1abfe1' into ↵Philipp Krones-1415/+6002
clippy-subtree-update
2024-12-26Rustup (#13881)Philipp Krones-247/+164
r? @ghost changelog: none
2024-12-26Bump nightly version -> 2024-12-26Philipp Krones-2/+2
2024-12-26Merge remote-tracking branch 'upstream/master' into rustupPhilipp Krones-1353/+5968
2024-12-26Auto merge of #134784 - RalfJung:miri-sync, r=RalfJungbors-719/+868
Miri subtree update r? `@ghost`
2024-12-26fix examples using `Ty.kind()` in the book (#13875)Philipp Krones-2/+2
`Ty.kind()` is a method. changelog: none
2024-12-26Auto merge of #132431 - shahn:from_iterator_more_tuples, r=Amanieubors-51/+65
From iterator for more tuples
2024-12-26Merge pull request #4109 from RalfJung/flagsRalf Jung-44/+24
Error on some invalid flag combinations
2024-12-26Impl FromIterator for tuples with arity 1-12Sebastian Hahn-33/+47
2024-12-26Fix formattingSebastian Hahn-19/+19
2024-12-25fix default-backtrace-ice testjyn-2/+6
when running `tests/ui/panics/default-backtrace-ice.rs locally it gave this error: ``` failures: ---- [ui] tests/ui/panics/default-backtrace-ice.rs stdout ---- Saved the actual stderr to "/home/jyn/src/rust3/build/x86_64-unknown-linux-gnu/test/ui/panics/default-backtrace-ice/default-backtrace-ice.stderr" diff of stderr: 7 8 aborting due to `-Z treat-err-as-bug=1` 9 stack backtrace: - (end_short_backtrace) - (begin_short_backtrace) - (end_short_backtrace) - (begin_short_backtrace) + [... omitted 22 frames ...] + ``` this is a regression from setting RUST_BACKTRACE=1 by default. we need to turn off the new behavior when running UI tests so that they reflect our dist compiler. normally that's done by checking `sess.unstable_opts.ui_testing`, but this happens extremely early in the compiler before we've expanded arg files. do an extremely simple hack that doesn't work in all cases - we don't need it to work in all cases, only when running UI tests.
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-25we generally make later flags overwrite earlier flags, so remove some logic ↵Ralf Jung-18/+3
guarding just against that
2024-12-25remove some flags that have been hard errors for a whileRalf Jung-9/+0
2024-12-25show an error on some invalid flag combinations: TB + permissive provenance; ↵Ralf Jung-17/+21
strict provenance + native calls
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-25fix examples using Ty.kind()lapla-cogito-2/+2
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 :)