Trevor Gross
16cb37c957
Remove no-asm gating when there is no alternative implementation
...
Assembly-related configuration was added in 1621c6dbf9eb ("Use
`specialized-div-rem` 1.0.0 for division algorithms") to account for
Cranelift not yet supporting assembly. This hasn't been relevant for a
while, so we no longer need to gate `asm!` behind this configuration.
Thus, remove `cfg(not(feature = "no-asm"))` in places where there is no
generic fallback.
There are other cases, however, where setting the `no-asm` configuration
enables testing of generic version of builtins when there are platform-
specific implementations available; these cases are left unchanged. This
could be improved in the future by exposing both versions for testing
rather than using a configuration and running the entire testsuite
twice.
This is the compiler-builtins portion of
https://github.com/rust-lang/rust/pull/144471 .
2025-07-27 16:39:31 -05:00
Lukas Wirth
c41536e79e
Merge pull request #20319 from Veykril/push-znwukpmpsqxt
...
fix: Consider all produced artifacts for proc-macro dylib search
2025-07-27 21:33:02 +00:00
Folkert de Vries
9c683d3487
Implement floor and ceil in assembly on i586
...
Fixes: https://github.com/rust-lang/compiler-builtins/issues/837
The assembly is based on
- 2043392793/lib/libm/arch/i387/s_floor.S
- 2043392793/lib/libm/arch/i387/s_ceil.S
Which both state
/*
* Written by J.T. Conklin <jtc@NetBSD.org >.
* Public domain.
*/
Which I believe means we're good in terms of licensing.
2025-07-27 17:27:40 -04:00
Ralf Jung
a20692c2d0
centralize clockid_t interpretation
2025-07-27 23:27:10 +02:00
Lukas Wirth
81bdfd3910
fix: Consider all produced artifacts for proc-macro dylib search
2025-07-27 23:21:42 +02:00
Lukas Wirth
ea927c03e2
Merge pull request #20318 from Veykril/push-vpqsrylmkqqm
...
fix: Ignore `Destruct` bounds again
2025-07-27 20:50:23 +00:00
Lukas Wirth
d846d615aa
Ignore Destruct bounds again
2025-07-27 22:39:01 +02:00
Lukas Wirth
f94a616779
Cleanup unstable flags handling
2025-07-27 22:39:01 +02:00
Ralf Jung
296586fb02
miri: for ABI mismatch errors, say which argument is the problem
2025-07-27 22:26:10 +02:00
Scott McMurray
47bfa846f3
Allow more MIR SROA
2025-07-27 13:21:06 -07:00
Laurențiu Nicola
7f19af89b6
Merge pull request #20317 from Veykril/push-koossvzyyvmm
...
fix: Fix incorrect build script version check
2025-07-27 19:34:24 +00:00
Lukas Wirth
c5480a9096
fix: Fix incorrect build script version check
2025-07-27 21:22:50 +02:00
bors
f8e355c230
Auto merge of #144434 - nnethercote:preintern-ty-bounds, r=compiler-errors
...
Preintern some `TyKind::Bound` values
The new trait solver produces a lot of these.
r? `@compiler-errors`
2025-07-27 18:58:43 +00:00
FractalFir
72927f6eb7
Ensure correct aligement of rustc_hir::Lifetime on platforms with lower default alignments.
2025-07-27 20:55:45 +02:00
Lukas Wirth
2749482d6b
Merge pull request #20315 from Veykril/push-pvmslwwouzzx
...
internal: Fix lockfile temp dir usage and use it for build scripts as well
2025-07-27 18:39:39 +00:00
Lukas Wirth
38c61c9ae8
Copy lockfile when building build scripts
2025-07-27 20:28:22 +02:00
Lukas Wirth
2604101122
internal: Better type proc macro dylib build data state
2025-07-27 19:37:16 +02:00
bors
4b596bbd84
Auto merge of #144425 - nnethercote:avoid-new_adt-new_fn_def, r=compiler-errors
...
Avoid unnecessary `new_adt`/`new_fn_def` calls.
They can be skipped if there are no arguments, avoiding the "relate" operation work and also the subsequent interning.
r? `@ghost`
2025-07-27 15:56:47 +00:00
Ralf Jung
c751579b2f
Merge pull request #4498 from RalfJung/genmc-build
...
Add support for building and linking against genmc
2025-07-27 15:08:54 +00:00
Ralf Jung
d12ecde365
constify with_exposed_provenance
2025-07-27 17:00:31 +02:00
Shoyu Vanilla (Flint)
2792799490
Merge pull request #20305 from Hmikihiro/Migrate_part_of_utils
...
Migrate part of utils.rs to use SyntaxEditor
2025-07-27 14:43:01 +00:00
Ralf Jung
87b8cb06c7
various minor adjustments
2025-07-27 16:37:49 +02:00
Patrick-6
41259050af
Add support for building and linking against genmc
2025-07-27 16:37:14 +02:00
Hayashi Mikihiro
8f89872922
Migrate convert_tuple_struct_to_named_struct' assist to use SyntaxEditor'
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com >
2025-07-27 22:56:24 +09:00
Hayashi Mikihiro
85486a7bff
migrate fn edit_struct_def in convert_tuple_struct_to_named_struct to SyntaxEditor
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com >
2025-07-27 22:56:24 +09:00
Hayashi Mikihiro
b1b7077b42
remove ted from convert_tuple_struct_to_named_struct
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com >
2025-07-27 22:56:24 +09:00
Hmikihiro
b3ea82f2eb
Migrate inline_type_alias assist to use SyntaxEditor
2025-07-27 22:49:56 +09:00
Hmikihiro
1d5a582ba0
refactor: conpare text of name_ref instead of syntax name_ref
2025-07-27 22:49:56 +09:00
Ralf Jung
da1991d565
check_static_item: explain should_check_for_sync choices
2025-07-27 15:41:42 +02:00
Samuel Tardieu
4bfb6d3fb5
Fix typo non_std_lazy_statics.rs ( #15357 )
...
Changes `MaybeIncorret` to `MaybeIncorrect`.
And since this is part of a doc comment, it might as well be a link.
changelog: none
2025-07-27 13:34:57 +00:00
Samuel Moelius
9339d8cac3
Fix typo non_std_lazy_statics.rs
...
Changes `MaybeIncorret` to `MaybeIncorrect`.
And since this is part of a doc comment, it might as well be a link.
changelog: none
2025-07-27 08:55:33 -04:00
Folkert de Vries
15373cca95
Merge pull request #1888 from madhav-madhusoodanan/intrinsic-test-generate-only-support
...
`intrinsic-test`: bringing back support for --generate-only flag
2025-07-27 12:55:11 +00:00
bors
edc3841c5d
Auto merge of #143884 - LorrensP-2158466:resolve-split-define, r=petrochenkov
...
Resolve: refactor `define` into `define_local` and `define_extern`
Follow up on rust-lang/rust#143550 and part of [#gsoc > Project: Parallel Macro Expansion](https://rust-lang.zulipchat.com/#narrow/channel/421156-gsoc/topic/Project.3A.20Parallel.20Macro.20Expansion/with/527348747 ).
Split up `define` into `define_local` and `define_extern`. Refactor usages of `define` into either one where it's "correct" (idk if everything is correct atm). Big part of this is that `resolution` can now take a `&Resolver` instead of a mutable one.
r? `@petrochenkov`
2025-07-27 12:40:46 +00:00
Madhav Madhusoodanan
c07f8bbdc2
chore: handling the case where --generate-only flag is passed
2025-07-27 18:00:41 +05:30
Ralf Jung
b59c40eed4
Merge pull request #4497 from RalfJung/check-shim
...
introduce a macro for shim signature checking
2025-07-27 12:28:40 +00:00
llogiq
887b500e23
Fix let_unit_value suggests wrongly for format macros ( #15085 )
...
Closes rust-lang/rust-clippy#15061
changelog: [`let_unit_value`] fix wrong suggestions for format macros
2025-07-27 12:23:29 +00:00
Timo
3174c05949
fix: unnecessary_map_or don't add parens if the parent expr comes f… ( #15345 )
...
…rom a macro
changelog: [`unnecessary_map_or`]: don't add parens if the parent expr
comes from a macro
fixes rust-lang/rust-clippy#14714
2025-07-27 12:15:17 +00:00
Lukas Wirth
7a767d01cf
Unherit server extra env for runnables extra env
2025-07-27 14:09:21 +02:00
Lukas Wirth
71ea00f7a3
fix: Fix runnables extra env not substituting env vars
2025-07-27 14:07:10 +02:00
Ralf Jung
fd65b7e664
introduce a macro for shim signature checking
...
Co-Authored-By: geetanshjuneja <ronitjuneja2002@gmail.com >
2025-07-27 14:04:51 +02:00
Timo
f126db47bc
Fix empty_structs_with_brackets suggests wrongly on generics ( #15355 )
...
Closes rust-lang/rust-clippy#15349
changelog: [`empty_structs_with_brackets`] fix wrong suggestions on
generics
2025-07-27 12:00:08 +00:00
Ada Alakbarova
81fc22753e
fix: unnecessary_map_or don't add parens if the parent expr comes from a macro
2025-07-27 13:54:47 +02:00
Zalathar
89b6b0b6a4
coverage: Clarify that getting a PGO name also makes a function "used"
2025-07-27 21:49:46 +10:00
Zalathar
24e2b4832b
coverage: Infer instances_used from pgo_func_name_var_map
...
In obscure circumstances, we would sometimes emit a covfun record for a
function with no physical coverage counters, causing `llvm-cov` to fail with
the cryptic error message:
malformed instrumentation profile data: function name is empty
We can eliminate this mismatch by removing `instances_used` entirely, and
instead inferring its contents from the keys of `pgo_func_name_var_map`.
This makes it impossible for a "used" function to lack a PGO name entry.
2025-07-27 21:49:37 +10:00
godzie44
49eda8edd5
fix(debuginfo): disable overflow check for
...
recursive non-enum types
2025-07-27 14:42:07 +03:00
Lukas Wirth
dfc9bd02ae
Merge pull request #20290 from ShoyuVanilla/tmp-lockfiles
...
Use `TempDir` for copied lockfiles
2025-07-27 11:36:35 +00:00
Folkert de Vries
213fd4e2e6
Merge pull request #1887 from madhav-madhusoodanan/intrinsic-test-argument-cleanup
...
Feat: updated Argument<T> type for functional compatibility with other architectures
2025-07-27 10:57:17 +00:00
Ralf Jung
43eaa4fdf8
Merge pull request #4496 from RalfJung/ctor-ret-type
...
call_function helper: dont ICE on return type mismatches
2025-07-27 10:50:45 +00:00
Ralf Jung
23e294262b
call_function helper: dont ICE on return type mismatches
2025-07-27 12:26:06 +02:00
LorrensP-2158466
451a93e2b8
split up define into define_extern and define_local
2025-07-27 12:17:23 +02:00