Commit graph

298901 commits

Author SHA1 Message Date
Jacob Pratt
0eb8a66130
Rollup merge of #142588 - ZuseZ4:generic-ctx-imprv, r=oli-obk
Generic ctx imprv

Cleanup work for my gpu pr

r? `@oli-obk`
2025-06-17 23:19:36 +02:00
Jacob Pratt
eb7d246d85
Rollup merge of #142520 - hkBst:less-static-mut, r=tgross35
alloc: less static mut + some cleanup

I'm looking into https://github.com/rust-lang/rust/issues/125035 and would like some feedback on my approach.
2025-06-17 23:19:35 +02:00
Jacob Pratt
4b60d4907e Rollup merge of #142371 - fee1-dead-contrib:push-xqlkumzurkus, r=petrochenkov
avoid `&mut P<T>` in `visit_expr` etc methods

trying a different way than rust-lang/rust#141636
r? ghost
2025-06-17 23:19:34 +02:00
Jacob Pratt
b5fcc90fd7
Rollup merge of #142517 - ChrisDenton:anon-pipe, r=Mark-Simulacrum
Windows: Use anonymous pipes in Command

When setting `Stdio::pipe` on `Command` we want to create an anonymous pipe that can be used asynchronously (at least on our end). Usually we'd use [`CreatePipe`](https://learn.microsoft.com/en-us/windows/win32/api/namedpipeapi/nf-namedpipeapi-createpipe) to open anonymous pipes but unfortunately it opens pipes for synchronous access. The alternative is to use [`CreateNamedPipeW`](https://learn.microsoft.com/en-us/windows/win32/api/namedpipeapi/nf-namedpipeapi-createnamedpipew) which does allow asynchronous access but that requires giving a file name to the pipe. So we currently have this awful hack where we attempt to emulate anonymous pipes using `CreateNamedPipeW` by attempting to create a unique name and looping until we find one that doesn't already exist.

The better option is to use the lower level [`NtCreateNamedPipeFile`](https://learn.microsoft.com/en-us/windows/win32/devnotes/nt-create-named-pipe-file) (which is used internally by both `CreatePipe` and `CreateNamedPipeW`). This function wasn't documented until a few years ago but now that it is it's ok for us to use it.

try-job: *msvc*
try-job: *mingw*
2025-06-17 23:19:34 +02:00
Jacob Pratt
e95fb09dfb
Rollup merge of #142371 - fee1-dead-contrib:push-xqlkumzurkus, r=petrochenkov
avoid `&mut P<T>` in `visit_expr` etc methods

trying a different way than rust-lang/rust#141636
r? ghost
2025-06-17 23:19:34 +02:00
Jacob Pratt
0772ee7f8b
Rollup merge of #142100 - lolbinarycat:rustdoc-srcIndex-138467, r=GuillaumeGomez
rustdoc: make srcIndex no longer a global variable

this is one-time initialization data, it can just
be a function parameter.

while we're doing that, we can more the json parsing into the function and save a few extra bytes of storage for free, at least in the case of multiple crates in a doc bundle.

fixes https://github.com/rust-lang/rust/issues/138467
2025-06-17 23:19:33 +02:00
Jacob Pratt
17ab49a94a
Rollup merge of #141608 - moatom:proc_macro-140238, r=dtolnay
Add support for repetition to `proc_macro::quote`

Progress toward: rust-lang/rust#140238
2025-06-17 23:19:32 +02:00
Jana Dönszelmann
697b4f8306 convert entire codebase to parsed inline attrs 2025-06-17 23:19:31 +02:00
Jana Dönszelmann
672452d573
use consistent attr errors in all attribute parsers 2025-06-17 23:19:31 +02:00
Jacob Pratt
da985cb2be
Rollup merge of #141574 - fee1-dead-contrib:push-owzulzmzszzx, r=jhpratt
impl `Default` for `array::IntoIter`

cc rust-lang/rust#91583

my personal use of this feature comes from 092db5df63/src/cont.rs (L154-L170)

insta-stable, but I feel like this is small enough to _not_ require an ACP (but a FCP per https://forge.rust-lang.org/libs/maintaining-std.html#when-theres-new-trait-impls)? feel free to correct me if I am wrong.
2025-06-17 23:19:31 +02:00
Jana Dönszelmann
ee976bbbca
fix bugs in inline/force_inline and diagnostics of all attr parsers 2025-06-17 23:19:31 +02:00
Jana Dönszelmann
566f691374
convert entire codebase to parsed inline attrs 2025-06-17 23:19:31 +02:00
Jana Dönszelmann
0aade73c50
implement rustc_force_inline parser 2025-06-17 23:19:31 +02:00
Jonathan Dönszelmann
4f73cd0a6c implement inline parser 2025-06-17 23:19:31 +02:00
bors
27eb2690f4 Auto merge of #142567 - lnicola:sync-from-ra, r=lnicola
Subtree update of `rust-analyzer`

r? `@ghost`
2025-06-17 21:13:37 +00:00
satiscugcat
003516cd44 Test 2025-06-17 19:28:07 +00:00
satiscugcat
dcd35573f7 Ran cargo fmt, removed unexpected character 2025-06-17 19:28:07 +00:00
satiscugcat
fd1b9c72fd Moved const fn outside unsafe block 2025-06-17 19:28:07 +00:00
satiscugcat
64dd3e4489 Changed implementation of _mm{256,512}_alignr_epi8 to match that of _mm_alignr_epi8 in ssse3.rs, also removed the import of the unreachable unchecked hint as it was no longer necessary 2025-06-17 19:28:07 +00:00
satiscugcat
48dafaa1c7 Changed implementation of bsrli in avx512.rs to match that of bslli, fixing a bug in the process. 2025-06-17 19:28:07 +00:00
satiscugcat
09475721a8 Changed the implementation of bsrli to match bslli in avx2 intrinsics 2025-06-17 19:28:07 +00:00
Aniket Mishra
1c5b2a659d Fixing mistake in previous commit 2025-06-17 19:28:07 +00:00
Aniket Mishra
58db094d9e Removal of redundant mod operation in _mm256_alignr_epi8 2025-06-17 19:28:07 +00:00
Aniket Mishra
8fb78f3f69 Fix in erroneous implementation of _mm256_bsrli_epi128
Fixing the issue mentioned in issue #1822 of rust-lang/stdarch.
2025-06-17 19:28:07 +00:00
Daniel Paoliello
81f7eebb23 Add a missing colon at the end of the expected panic message in location-detail-unwrap-multiline.rs 2025-06-17 12:24:44 -07:00
Jakub Beránek
35f270c0d1 Add triagebot config for subtree syncs
Adds checking of PR descriptions to avoid relative issue links (without repository prefix) and mentions in commits.
2025-06-17 18:43:36 +00:00
bors
f3db63916e Auto merge of #142613 - workingjubilee:rollup-yuod2hg, r=workingjubilee
Rollup of 13 pull requests

Successful merges:

 - rust-lang/rust#138538 (Make performance description of String::{insert,insert_str,remove} more precise)
 - rust-lang/rust#141946 (std: refactor explanation of `NonNull`)
 - rust-lang/rust#142216 (Miscellaneous RefCell cleanups)
 - rust-lang/rust#142542 (Manually invalidate caches in SimplifyCfg.)
 - rust-lang/rust#142563 (Refine run-make test ignores due to unpredictable `i686-pc-windows-gnu` unwind mechanism)
 - rust-lang/rust#142570 (Reject union default field values)
 - rust-lang/rust#142584 (Handle same-crate macro for borrowck semicolon suggestion)
 - rust-lang/rust#142585 (Update books)
 - rust-lang/rust#142586 (Fold unnecessary `visit_struct_field_def` in AstValidator)
 - rust-lang/rust#142587 (Make sure to propagate result from `visit_expr_fields`)
 - rust-lang/rust#142595 (Revert overeager warning for misuse of `--print native-static-libs`)
 - rust-lang/rust#142598 (Set elf e_flags on ppc64 targets according to abi)
 - rust-lang/rust#142601 (Add a comment to `FORMAT_VERSION`.)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-06-17 18:14:08 +00:00
Trevor Gross
57fdde331b Update libc to 0.2.174
This includes a fix for building on gnux32.

[1]: https://github.com/rust-lang/libc/releases/tag/0.2.174
2025-06-17 18:03:45 +00:00
bit-aloo
05122808a3
allow spawn to behave according to failure behavior 2025-06-17 23:09:44 +05:30
binarycat
7eaf7386b9 bootstrap.example.toml: use less contextual format
prefixing each key with its section means you don't
need to scroll up 4 pages to see which section
a particular key is from.

target specific options were kept in old format
since the exact section name depends on the target,
so those options must now be moved to the bottom of
the file.
2025-06-17 12:26:58 -05:00
bjorn3
a88a32d746 Temporarily add back -Zwasm-c-abi=spec
This allows a more gradual transition path for projects that need to use
use the spec-complaint C ABI both with older and newer rustc versions.
2025-06-17 17:15:01 +00:00
Boxy
c1506c0cc0 Add links 2025-06-17 18:09:06 +01:00
Boxy
42888bb018 Write chapter on Unambig vs Ambig Types/Consts 2025-06-17 18:09:06 +01:00
Boxy
d96b2d4398 Stub chapter and consolidate under /hir/ 2025-06-17 18:09:02 +01:00
xizheyin
72fbf3ea61
Dont suggest remove semi inside macro expansion for redundant semi lint
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-06-18 00:36:51 +08:00
nora
671817fe30
Merge pull request #2475 from lolbinarycat/patch-3
Profiling with perf: specify the section of bootstrap settings.
2025-06-17 18:34:03 +02:00
lolbinarycat
8bc55da22e
Profiling with perf: specify the section of bootstrap settings. 2025-06-17 11:31:04 -05:00
Eric Huss
3f1de7b2e8 Update cargo 2025-06-17 09:13:12 -07:00
Laurențiu Nicola
6a9c5d7ae0 Try to downgrade object 2025-06-17 19:00:01 +03:00
bit-aloo
186f588772
change to executed at 2025-06-17 21:10:55 +05:30
Laurențiu Nicola
20a62ab2a1
Merge pull request #20025 from SoxPopuli/hide_private_imports_without_pe
Hide imported privates if private editable is disabled
2025-06-17 15:27:27 +00:00
bit-aloo
55e2c2681e
add run_always to recently migrated start_process command 2025-06-17 20:49:20 +05:30
bit-aloo
05e1ae7bd4
move execution context out of deferred command, add as_ref implementation and update wait_for_output usage 2025-06-17 20:49:20 +05:30
bit-aloo
dca9fe0d94
explain reasoning behind spawn API 2025-06-17 20:49:20 +05:30
bit-aloo
2270572cb4
add created at to command execution 2025-06-17 20:49:19 +05:30
bit-aloo
0c60856ed1
remove new method from command execution 2025-06-17 20:49:19 +05:30
bit-aloo
b16ba4d3ee
remove start_porcess helper method 2025-06-17 20:49:19 +05:30
bit-aloo
2e4f2d2f3b
move from start process to new start and wait for output api's 2025-06-17 20:49:19 +05:30
bit-aloo
16bc870ee2
add start methods in exec 2025-06-17 20:49:19 +05:30
bit-aloo
7889332342
add deferred command in execution context and update run method 2025-06-17 20:49:19 +05:30