León Orell Valerian Liehr
2f0c6e217f
Rollup merge of #140490 - folkertdev:asm-parser-changes, r=Amanieu,traviscross
...
split `asm!` parsing and validation
This PR splits `asm!` parsing and validation into two separate steps.
The parser constructs a `Vec<RawAsmArg>`, with each element corresponding to an argument to one of the `asm!` macros.
The validation then checks things like ordering of arguments or that options are not provided twice.
The motivation is https://github.com/rust-lang/rust/issues/140279 , which wants to add `#[cfg(...)]` support to these arguments. This support can now be added in a straightforward way by adding an `attributes: ast::AttrVec` field to `RawAsmArg`.
An extra reason for this split is that `rustfmt` probably wants to format the assembly at some point (currently that appears to be stubbed out, and the formatting is unstable https://github.com/rust-lang/style-team/issues/152 ).
r? ``@ghost`` (just want to look at CI for now)
cc ``@ytmimi`` we discussed asm formatting a little while ago in https://github.com/rust-lang/rustfmt/issues/6526 . Am I correct in assuming that `AsmArgs` does not give enough information for formatting, but that `RawAsmArgs` would (it e.g. does not join information from multiple lines). This must have been an issue before?
try-job: aarch64-apple
2025-05-18 18:44:10 +02:00
Ralf Jung
a4eb91fa63
Merge pull request #4330 from RalfJung/build-sysroot-bump
...
bump rustc-build-sysroot
2025-05-18 16:16:23 +00:00
mejrs
178e09ed37
Remove rustc_attr_data_structures re-export from rustc_attr_parsing
2025-05-18 18:14:43 +02:00
Ralf Jung
eb11adc7b0
bump rustc-build-sysroot
2025-05-18 17:51:15 +02:00
Ralf Jung
3c50b9be19
Merge pull request #4322 from tiif/move_test
...
Add more comments to libc-fs-with-isolation test
2025-05-18 12:07:38 +00:00
tiif
f9a75a00b4
Add more comment to libc-fs-with-isolation test
2025-05-18 13:42:07 +02:00
Folkert de Vries
85053d1cd1
rename to get rid of the 'raw' concept
2025-05-18 11:28:31 +02:00
Folkert de Vries
7ec06fc3b1
attempt to have rustfmt use the new logic
...
apparently it doesn't really use the asm parsing at present, so this may work?
2025-05-18 11:28:31 +02:00
Lukas Wirth
7e4bbe1f6b
Merge pull request #19687 from gohome001/highlight_unsafe
...
feat: highlight unsafe operations
2025-05-18 08:44:10 +00:00
Ralf Jung
48093fd695
attempt to make doctests work properly with old and new cargo
2025-05-18 08:10:09 +02:00
sayantn
2898680ebd
Remove uses of #[feature(avx512_target_feature)]
2025-05-18 11:12:25 +05:30
The Miri Cronjob Bot
84506c64ff
fmt
2025-05-18 05:02:46 +00:00
The Miri Cronjob Bot
789d1a4fc3
Merge from rustc
2025-05-18 05:01:38 +00:00
The Miri Cronjob Bot
4320e6f474
Preparing for merge from rustc
2025-05-18 04:54:45 +00:00
bors
bf5a38d118
Auto merge of #141133 - matthiaskrgr:rollup-u8ndxyz, r=matthiaskrgr
...
Rollup of 9 pull requests
Successful merges:
- #135808 (Implement Display for ``rustc_target::callconv::Conv``)
- #137432 (Add as_ascii_unchecked() methods to char, u8, and str)
- #139103 (deduplicate abort implementations)
- #140917 (checktools.sh: fix bashism)
- #141035 (turn lld warning on old gccs into info log)
- #141118 (Enable rust-analyzer to go from query definition to the corresponding provider field)
- #141121 (Only select true errors in `impossible_predicates`)
- #141125 (check coroutines with `TypingMode::Borrowck` to avoid cyclic reasoning)
- #141131 (Make some `match`es slightly more ergonomic in `librustdoc`)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-05-17 16:28:16 +00:00
Matthias Krüger
b9839ab329
Rollup merge of #139103 - joboet:abort_dedup, r=tgross35
...
deduplicate abort implementations
Currently, the code for process aborts is duplicated across `panic_abort` and `std`. This PR uses `#[rustc_std_internal_symbol]` to make the `std` implementation available to `panic_abort` via the linker, thereby deduplicating the code.
2025-05-17 15:45:20 +02:00
Matthias Krüger
836db3ccae
Rollup merge of #135808 - tiif:conv_display, r=workingjubilee
...
Implement Display for ``rustc_target::callconv::Conv``
Follow up of https://github.com/rust-lang/rust/pull/133103#discussion_r1885552854
2025-05-17 15:45:19 +02:00
Florian Diebold
c04873b02d
Catch panics in inference in analysis-stats
2025-05-17 15:25:20 +02:00
mejrs
9ffd0bf75a
do away with _Self and TraitName and check generic params for rustc_on_unimplemented
2025-05-17 15:15:53 +02:00
klensy
9cacafdd1a
compiler & tools: bump windows crate to dedupe versions
2025-05-17 15:26:38 +03:00
Ralf Jung
bd9f1fd273
exlicitly pass -Zdoctest-xcompile to avoid cargo version behavior differences
2025-05-17 14:22:44 +02:00
klensy
40e3b804e5
opt-dist: fix deprecated BOLT -icf=1 option
2025-05-17 13:18:46 +03:00
Ralf Jung
ace4c6e015
fix for doctest-xcompile stabilization
2025-05-17 11:00:40 +02:00
Ralf Jung
b99daba38e
fix clippy lints
2025-05-17 10:07:30 +02:00
Ralf Jung
8f2da9b487
Merge from rustc
2025-05-17 09:53:02 +02:00
Ralf Jung
3a9ee90ded
Preparing for merge from rustc
2025-05-17 09:52:27 +02:00
bors
16d2276fa6
Auto merge of #140911 - rust-lang:cargo_update, r=clubby789
...
Weekly `cargo update`
Automation to keep dependencies in `Cargo.lock` current.
The following is the output from `cargo update`:
```txt
compiler & tools dependencies:
Locking 40 packages to latest compatible versions
Updating clap v4.5.37 -> v4.5.38
Updating clap_builder v4.5.37 -> v4.5.38
Updating ctrlc v3.4.6 -> v3.4.7
Updating derive_setters v0.1.6 -> v0.1.7
Updating getrandom v0.3.2 -> v0.3.3
Updating icu_collections v1.5.0 -> v2.0.0
Adding icu_locale_core v2.0.0
Updating icu_normalizer v1.5.0 -> v2.0.0
Updating icu_normalizer_data v1.5.1 -> v2.0.0
Updating icu_properties v1.5.1 -> v2.0.0
Updating icu_properties_data v1.5.1 -> v2.0.0
Adding icu_provider v2.0.0
Updating idna_adapter v1.2.0 -> v1.2.1
Updating jiff v0.2.12 -> v0.2.13
Updating jiff-static v0.2.12 -> v0.2.13
Updating libffi v4.0.0 -> v4.1.0
Updating libffi-sys v3.2.0 -> v3.3.1
Updating libloading v0.8.6 -> v0.8.7
Updating libm v0.2.13 -> v0.2.15
Adding litemap v0.8.0
Updating nix v0.29.0 -> v0.30.1
Adding potential_utf v0.1.2
Updating rustc-build-sysroot v0.5.4 -> v0.5.5
Adding tinystr v0.8.1
Updating tokio v1.44.2 -> v1.45.0
Updating unic-langid v0.9.5 -> v0.9.6
Updating unic-langid-impl v0.9.5 -> v0.9.6
Updating unic-langid-macros v0.9.5 -> v0.9.6
Updating unic-langid-macros-impl v0.9.5 -> v0.9.6
Removing utf16_iter v1.0.5
Adding wasm-encoder v0.230.0
Adding wasmparser v0.230.0
Updating wast v229.0.0 -> v230.0.0
Updating wat v1.229.0 -> v1.230.0
Updating winnow v0.7.9 -> v0.7.10
Removing write16 v1.0.0
Adding writeable v0.6.1
Adding yoke v0.8.0
Adding yoke-derive v0.8.0
Adding zerotrie v0.2.2
Adding zerovec v0.11.2
Adding zerovec-derive v0.11.1
note: pass `--verbose` to see 36 unchanged dependencies behind latest
library dependencies:
Locking 0 packages to latest compatible versions
note: pass `--verbose` to see 3 unchanged dependencies behind latest
rustbook dependencies:
Locking 26 packages to latest compatible versions
Updating cc v1.2.21 -> v1.2.22
Updating clap v4.5.37 -> v4.5.38
Updating clap_builder v4.5.37 -> v4.5.38
Updating clap_complete v4.5.48 -> v4.5.50
Updating getrandom v0.3.2 -> v0.3.3
Updating icu_collections v1.5.0 -> v2.0.0
Adding icu_locale_core v2.0.0
Removing icu_locid v1.5.0
Removing icu_locid_transform v1.5.0
Removing icu_locid_transform_data v1.5.1
Updating icu_normalizer v1.5.0 -> v2.0.0
Updating icu_normalizer_data v1.5.1 -> v2.0.0
Updating icu_properties v1.5.1 -> v2.0.0
Updating icu_properties_data v1.5.1 -> v2.0.0
Updating icu_provider v1.5.0 -> v2.0.0
Removing icu_provider_macros v1.5.0
Updating idna_adapter v1.2.0 -> v1.2.1
Updating jiff v0.2.12 -> v0.2.13
Updating jiff-static v0.2.12 -> v0.2.13
Updating litemap v0.7.5 -> v0.8.0
Adding potential_utf v0.1.2
Updating tinystr v0.7.6 -> v0.8.1
Removing utf16_iter v1.0.5
Updating web_atoms v0.1.1 -> v0.1.2
Updating winnow v0.7.9 -> v0.7.10
Removing write16 v1.0.0
Updating writeable v0.5.5 -> v0.6.1
Updating yoke v0.7.5 -> v0.8.0
Updating yoke-derive v0.7.5 -> v0.8.0
Adding zerotrie v0.2.2
Updating zerovec v0.10.4 -> v0.11.2
Updating zerovec-derive v0.10.3 -> v0.11.1
```
2025-05-16 19:34:19 +00:00
bors
36ad75bceb
Auto merge of #141093 - weihanglo:update-cargo, r=weihanglo
...
Update cargo
5 commits in 056f5f4f3c100cb36b5e9aed2d20b9ea70aae295..47c911e9e6f6461f90ce19142031fe16876a3b95
2025-05-09 14:54:18 +0000 to 2025-05-14 17:53:17 +0000
- Stabilize doctest-xcompile (rust-lang/cargo#15462 )
- feat: skip `publish=false` pkg when publishing entire workspace (rust-lang/cargo#15525 )
- chore: bump to 0.90.0; update changelog (rust-lang/cargo#15520 )
- chore(triagebot): add `[no-mentions]` and `[note]` (rust-lang/cargo#15517 )
- add glob pattern support for known_hosts (rust-lang/cargo#15508 )
r? ghost
2025-05-16 16:20:00 +00:00
Weihang Lo
8604d458eb
Update cargo
2025-05-16 11:35:06 -04:00
Lukas Wirth
1d073db662
Merge pull request #19808 from Veykril/lw-ollszwnlmquw
...
ci: Run metrics on the beta channel
2025-05-16 15:00:07 +00:00
Lukas Wirth
45865f21e3
ci: Run metrics on the beta channel
...
This way we can catch regressions from upstream earlier
2025-05-16 16:49:05 +02:00
Lukas Wirth
4d5c63810b
Merge pull request #19807 from Veykril/lw-qyynkqysuyuy
...
fix: Don't overwrite `RUSTUP_TOOLCHAIN` if it is already set
2025-05-16 13:21:15 +00:00
Lukas Wirth
10f4f6ae3d
fix: Don't overwrite RUSTUP_TOOLCHAIN if it is already set
2025-05-16 14:52:28 +02:00
Laurențiu Nicola
cea2aeb777
Merge pull request #19805 from lnicola/inline-format-args
...
minor: Inline some format args
2025-05-16 10:15:19 +00:00
Laurențiu Nicola
4860712f43
Inline some format args
2025-05-16 12:03:59 +02:00
Laurențiu Nicola
428279ef6a
Bump zip to 3.0
2025-05-16 11:51:58 +02:00
王宇逸
12c8fb857c
Fix fname for miri
2025-05-16 17:47:29 +08:00
bors
1b9efcd18f
Auto merge of #141044 - flip1995:clippy-subtree-update, r=Manishearth
...
Clippy subtree update
r? `@Manishearth`
Cargo.lock update due to Clippy version bump.
2025-05-16 08:54:55 +00:00
Matthias Krüger
e4929b530e
Rollup merge of #140834 - lcnr:apit-folder, r=compiler-errors
...
move (or remove) some impl Trait tests
Probably not actually worth the effort, so I am stopping here 😅
2025-05-16 07:19:38 +02:00
Chayim Refael Friedman
ae304db796
Improve asm support
...
Including:
- Infer `label {}` and `const` operands.
- Correctly handle unsafe check inside `label {}`.
- Fix an embarrassing parser typo that cause labels to never be part of the AST
2025-05-15 23:36:00 +03:00
Philipp Krones
825a62af51
Merge commit ' 0450db33a5' into clippy-subtree-update
2025-05-15 19:28:39 +02:00
dependabot[bot]
6c21c9fdff
Bump undici from 6.21.1 to 6.21.3 in /editors/code
...
Bumps [undici](https://github.com/nodejs/undici ) from 6.21.1 to 6.21.3.
- [Release notes](https://github.com/nodejs/undici/releases )
- [Commits](https://github.com/nodejs/undici/compare/v6.21.1...v6.21.3 )
---
updated-dependencies:
- dependency-name: undici
dependency-version: 6.21.3
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-05-15 15:24:19 +00:00
Lukas Wirth
bcb7a1a81a
Merge pull request #19794 from ChayimFriedman2/dup-crates
...
fix: Don't allow duplicate crates in the all_crates list
2025-05-15 13:29:17 +00:00
joboet
f77c160007
normalize abort calls in miri tests
2025-05-15 11:37:50 +02:00
Chayim Refael Friedman
2e718f818b
Merge pull request #19793 from Hmikihiro/unused_import_conlict_derive
...
fix: Removing all unused imports removes used imports for imports used for Derive macros
2025-05-15 09:18:06 +00:00
Berrysoft
66fef16bb6
Update Cargo.lock
2025-05-15 15:14:35 +08:00
Hayashi Mikihiro
034d2a2fe7
handle trait in function
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-15 15:12:31 +09:00
Hayashi Mikihiro
2c55a78848
check glob
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-15 14:01:05 +09:00
Hayashi Mikihiro
5adbda4ee5
rename fn name take_path to any
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-15 13:18:30 +09:00
Chayim Refael Friedman
de51196bb1
Don't allow duplicate crates in the all_crates list
...
For some reason we had them in some projects, I'm not sure why. But this caused cache priming to appear stuck - because it uses a set of crate IDs for the actual work, but for the number of crates to index it just uses `db.all_crates().len()`.
2025-05-14 21:38:40 +03:00