about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-07-27Remove `no-asm` gating when there is no alternative implementationTrevor Gross-29/+12
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-27Merge pull request #20319 from Veykril/push-znwukpmpsqxtLukas Wirth-21/+15
fix: Consider all produced artifacts for proc-macro dylib search
2025-07-27Implement `floor` and `ceil` in assembly on `i586`Folkert de Vries-52/+55
Fixes: https://github.com/rust-lang/compiler-builtins/issues/837 The assembly is based on - https://github.com/NetBSD/src/blob/20433927938987dd64c8f6aa46904b7aca3fa39e/lib/libm/arch/i387/s_floor.S - https://github.com/NetBSD/src/blob/20433927938987dd64c8f6aa46904b7aca3fa39e/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-27centralize clockid_t interpretationRalf Jung-114/+79
2025-07-27fix: Consider all produced artifacts for proc-macro dylib searchLukas Wirth-21/+15
2025-07-27Merge pull request #20318 from Veykril/push-vpqsrylmkqqmLukas Wirth-20/+58
fix: Ignore `Destruct` bounds again
2025-07-27Ignore `Destruct` bounds againLukas Wirth-2/+41
2025-07-27Cleanup unstable flags handlingLukas Wirth-19/+18
2025-07-27miri: for ABI mismatch errors, say which argument is the problemRalf Jung-35/+45
2025-07-27Allow more MIR SROAScott McMurray-68/+40
2025-07-27Merge pull request #20317 from Veykril/push-koossvzyyvmmLaurențiu Nicola-1/+1
fix: Fix incorrect build script version check
2025-07-27fix: Fix incorrect build script version checkLukas Wirth-1/+1
2025-07-27Auto merge of #144434 - nnethercote:preintern-ty-bounds, r=compiler-errorsbors-9/+38
Preintern some `TyKind::Bound` values The new trait solver produces a lot of these. r? `@compiler-errors`
2025-07-27Ensure correct aligement of rustc_hir::Lifetime on platforms with lower ↵FractalFir-0/+5
default alignments.
2025-07-27Merge pull request #20315 from Veykril/push-pvmslwwouzzxLukas Wirth-182/+246
internal: Fix lockfile temp dir usage and use it for build scripts as well
2025-07-27Copy lockfile when building build scriptsLukas Wirth-73/+76
2025-07-27internal: Better type proc macro dylib build data stateLukas Wirth-114/+175
2025-07-27Auto merge of #144425 - nnethercote:avoid-new_adt-new_fn_def, r=compiler-errorsbors-4/+12
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-27Merge pull request #4498 from RalfJung/genmc-buildRalf Jung-42/+1130
Add support for building and linking against genmc
2025-07-27constify with_exposed_provenanceRalf Jung-2/+4
2025-07-27Merge pull request #20305 from Hmikihiro/Migrate_part_of_utilsShoyu Vanilla (Flint)-3/+5
Migrate part of utils.rs to use SyntaxEditor
2025-07-27various minor adjustmentsRalf Jung-79/+49
2025-07-27Add support for building and linking against genmcPatrick-6-42/+1160
2025-07-27Migrate `convert_tuple_struct_to_named_struct' assist to use `SyntaxEditor'Hayashi Mikihiro-35/+68
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-27migrate `fn edit_struct_def` in `convert_tuple_struct_to_named_struct` to ↵Hayashi Mikihiro-30/+24
SyntaxEditor Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-27remove ted from convert_tuple_struct_to_named_structHayashi Mikihiro-5/+7
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-27Migrate `inline_type_alias` assist to use `SyntaxEditor`Hmikihiro-29/+34
2025-07-27refactor: conpare text of name_ref instead of syntax name_refHmikihiro-1/+4
2025-07-27check_static_item: explain should_check_for_sync choicesRalf Jung-3/+9
2025-07-27Fix typo non_std_lazy_statics.rs (#15357)Samuel Tardieu-1/+1
Changes `MaybeIncorret` to `MaybeIncorrect`. And since this is part of a doc comment, it might as well be a link. changelog: none
2025-07-27Fix typo non_std_lazy_statics.rsSamuel Moelius-1/+1
Changes `MaybeIncorret` to `MaybeIncorrect`. And since this is part of a doc comment, it might as well be a link. changelog: none
2025-07-27Merge pull request #1888 from ↵Folkert de Vries-24/+37
madhav-madhusoodanan/intrinsic-test-generate-only-support `intrinsic-test`: bringing back support for --generate-only flag
2025-07-27Auto merge of #143884 - LorrensP-2158466:resolve-split-define, r=petrochenkovbors-57/+100
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-27chore: handling the case where --generate-only flag is passedMadhav Madhusoodanan-24/+37
2025-07-27Merge pull request #4497 from RalfJung/check-shimRalf Jung-793/+897
introduce a macro for shim signature checking
2025-07-27Fix `let_unit_value` suggests wrongly for format macros (#15085)llogiq-35/+131
Closes rust-lang/rust-clippy#15061 changelog: [`let_unit_value`] fix wrong suggestions for format macros
2025-07-27fix: `unnecessary_map_or` don't add parens if the parent expr comes f… ↵Timo-7/+77
(#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-27Unherit server extra env for runnables extra envLukas Wirth-36/+33
2025-07-27fix: Fix runnables extra env not substituting env varsLukas Wirth-50/+53
2025-07-27introduce a macro for shim signature checkingRalf Jung-795/+900
Co-Authored-By: geetanshjuneja <ronitjuneja2002@gmail.com>
2025-07-27Fix `empty_structs_with_brackets` suggests wrongly on generics (#15355)Timo-3/+39
Closes rust-lang/rust-clippy#15349 changelog: [`empty_structs_with_brackets`] fix wrong suggestions on generics
2025-07-27fix: `unnecessary_map_or` don't add parens if the parent expr comes from a macroAda Alakbarova-7/+77
2025-07-27coverage: Clarify that getting a PGO name also makes a function "used"Zalathar-4/+7
2025-07-27coverage: Infer `instances_used` from `pgo_func_name_var_map`Zalathar-18/+21
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-27fix(debuginfo): disable overflow check forgodzie44-2/+34
recursive non-enum types
2025-07-27Merge pull request #20290 from ShoyuVanilla/tmp-lockfilesLukas Wirth-6/+54
Use `TempDir` for copied lockfiles
2025-07-27Merge pull request #1887 from ↵Folkert de Vries-30/+32
madhav-madhusoodanan/intrinsic-test-argument-cleanup Feat: updated Argument<T> type for functional compatibility with other architectures
2025-07-27Merge pull request #4496 from RalfJung/ctor-ret-typeRalf Jung-2/+54
call_function helper: dont ICE on return type mismatches
2025-07-27call_function helper: dont ICE on return type mismatchesRalf Jung-2/+54
2025-07-27split up define into define_extern and define_localLorrensP-2158466-57/+100