Commit Graph

300570 Commits

Author SHA1 Message Date
Tshepang Mbambo
d99af0b77c distcheck had only one possible invocation
That is, calling it an example is misleading
2025-07-09 23:02:16 +02:00
Tshepang Mbambo
42472f2645 add missing word 2025-07-09 22:49:41 +02:00
Josh Triplett
4c947984d6 random: Add comment on RandomSource::fill_bytes about multiple calls
This allows efficient implementations for random sources that generate a
word at a time.
2025-07-09 13:42:18 -07:00
binarycat
7e2527d3ab triagebot.toml: ping lolbinarycat if tidy extra checks were modified 2025-07-09 14:58:44 -05:00
Daniel Paoliello
65dc474d1c Update LLVM submodule 2025-07-09 12:56:06 -07:00
Ed Page
425cd0f571 test: Verify frontmatter unpretty behavior 2025-07-09 14:55:53 -05:00
bors
e43d139a82 Auto merge of #143538 - compiler-errors:instantiate-auto-trait, r=lcnr
Instantiate auto trait/`Copy`/`Clone`/`Sized` before computing constituent types binder

This makes the binder logic w.r.t. coroutines a bit simpler.

r? lcnr
2025-07-09 19:38:39 +00:00
antoyo
86f5318bbe Merge pull request #732 from FractalFir/thread_soundness_fix
Change the implementation of supports_parallel to signal tha cg_gcc is not thread safe.
2025-07-09 15:28:37 -04:00
FractalFir
7e844720bd Inserted a local variable in volatile_load, to ensure reads don't move across blocks. 2025-07-09 20:50:08 +02:00
Chayim Refael Friedman
36f6f1e72d Make AsmExpr have AstId
We need it because `global_asm!()` is an item. It's unfortunate that such thing can slip in and I see no way to automatically catch that, but thankfully analysis-stats on self has caught that.
2025-07-09 21:43:20 +03:00
Chayim Refael Friedman
56f1403319 Merge pull request #20214 from rust-lang/update-msrv
Update MSRV to 1.88.0
2025-07-09 18:41:33 +00:00
Laurențiu Nicola
ee407b5ced Merge pull request #20211 from Hmikihiro/migrate-convert_named_struct
Migrate `convert_named_struct_to_tuple_struct` assist to use 'SyntaxEditor'
2025-07-09 18:35:28 +00:00
FractalFir
6388524398 Skip needlessly setting the default visibility on functions 2025-07-09 20:32:05 +02:00
Chayim Refael Friedman
c246e06240 Update MSRV to 1.88.0 2025-07-09 21:30:22 +03:00
FractalFir
29614643e4 Change the implementation of supports_parallel to signal tha cg_gcc is not thread safe. 2025-07-09 20:29:02 +02:00
Ralf Jung
925789456a miri: fix out-of-bounds error for ptrs with negative offsets 2025-07-09 20:20:07 +02:00
Ayush Singh
d8273d3997 std: sys: net: uefi: tcp4: Add timeout support
- Implement timeout support for read, write and connect.
- A software implementation using Instant.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-07-09 22:38:12 +05:30
Michael Goulet
728017ea8f Make AsyncDrop check that it's being implemented on a local ADT 2025-07-09 17:07:04 +00:00
bors
e3fccdd4a1 Auto merge of #143502 - scottmcm:aggregate-simd, r=oli-obk
Let `rvalue_creates_operand` return true for *all* `Rvalue::Aggregate`s

~~Draft for now because it's built on Ralf's rust-lang/rust#143291~~

Inspired by https://github.com/rust-lang/rust/pull/138759#discussion_r2156375342 where I noticed that we were nearly at this point, plus the comments I was writing in rust-lang/rust#143410 that reminded me a type-dependent `true` is fine.

This PR splits the `OperandRef::builder` logic out to a separate type, with the updates needed to handle SIMD as well.  In doing so, that makes the existing `Aggregate` path in `codegen_rvalue_operand` capable of handing SIMD values just fine.

As a result, we no longer need to do layout calculations for aggregate result types when running the analysis to determine which things can be SSA in codegen.
2025-07-09 16:37:20 +00:00
Oli Scherer
51084719cd Avoid creating a helper allocation for creating new TypeId values in the interpreter 2025-07-09 16:37:11 +00:00
Oli Scherer
486ffda9dc Add opaque TypeId handles for CTFE 2025-07-09 16:37:11 +00:00
Chayim Refael Friedman
5c0c794bee Put dyn inlay hints in their correct place in presence of parentheses 2025-07-09 19:33:47 +03:00
Urgau
5339629b11 Auto-add S-waiting-on-author when the PR is/switches to draft state 2025-07-09 18:30:32 +02:00
Chayim Refael Friedman
46e95199b9 Disable the diagnostics_dont_block_typing test on CI
It's failing to much. We need to fix it, but my changes are unlikely to be the cause.
2025-07-09 19:29:11 +03:00
Chayim Refael Friedman
e4e9404ea2 Don't show dyn hint in a HRTB bound 2025-07-09 19:19:51 +03:00
Benoît du Garreau
65df66831f core: Change BorrowedCursor::written's origin
This enable removing the `start` field, so `BorrowedCursor` fits in a
single register. Because `written` is almost always used in difference
with another call, this changes nothing else in practice.
2025-07-09 18:11:27 +02:00
Benoît du Garreau
34555f1b0b core: Remove BorrowedCursor::uninit_mut
I assume that this method was there for completeness, but there is
hardly any useful use of it: the buffer it gave was not always connected
to the start of the cursor and its use required `unsafe` anyway to mark
the bytes as initialized.
2025-07-09 18:11:26 +02:00
Benoît du Garreau
803b4d2622 core: Remove BorrowedCursor::init_ref method
This method was not really useful: at no point one would only need to
read the initialized part of the cursor without mutating it.
2025-07-09 18:11:26 +02:00
Hayashi Mikihiro
f3fc50b636 migrate convert_named_struct_to_tuple_struct assist to use 'SyntaxEditor'
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-10 01:01:47 +09:00
Chayim Refael Friedman
90653b0f5c Make global_asm!() work
Because apparently, we were not accepting inline asm in item position, completely breaking it.
2025-07-09 18:55:27 +03:00
Shoyu Vanilla (Flint)
f75d00082f Merge pull request #20109 from Hmikihiro/generate_new_tuple_field
feat: Generate `new` for tuple struct
2025-07-09 15:22:47 +00:00
Jason Newcomb
a24fb386b1 Do not remove method call if type is adjusted (#15181)
Propose to replace `x.map_or(false, |y| y == z)` by `x == Some(z)` only
if `x` is not adjusted. Otherwise, the type of `x` in the comparaison
may not be the expected one, as it may be the product of an auto-deref.

changelog: [`unnecessary_map_or`]: do not propose to replace the
`map_or` call by a comparaison if types wouldn't be correct

Fixes rust-lang/rust-clippy#15180
2025-07-09 15:04:39 +00:00
usamoi
bf6d29d558 use --dynamic-list for exporting executable symbols 2025-07-09 22:40:11 +08:00
Chayim Refael Friedman
ebdd8598d4 Differentiate between asm!(), global_asm!() and naked_asm!(), and make only asm!() unsafe 2025-07-09 17:37:27 +03:00
Chayim Refael Friedman
7b39139d22 Don't hash the SyntaxKind in the ast id
There is no need to, it's already stored in the `kind`.
2025-07-09 17:21:45 +03:00
Ralf Jung
7fc21278ec bootstrap/miri: avoid rebuilds for test builds 2025-07-09 14:46:13 +02:00
Jieyou Xu
200f132367 Massage lib.rs so it can be rustfmt'd
Even if the formatting isn't strictly "better", it at least allows
rustfmtting it automatically.
2025-07-09 20:30:49 +08:00
Jieyou Xu
fae15466aa Sort and document run-make-support dependencies 2025-07-09 20:10:32 +08:00
Jieyou Xu
e70493d06c Bump run-make-support to Edition 2024 2025-07-09 20:07:09 +08:00
Jieyou Xu
ed520af279 Don't attempt to version run-make-support
Purely internal test support library.
2025-07-09 20:05:13 +08:00
Jieyou Xu
8d58d5e800 Remove run-make-support CHANGELOG
Hopelessly outdated, and this support library is purely internal.
2025-07-09 20:02:36 +08:00
bors
6b3ae3f6e4 Auto merge of #143472 - dianne:deref-pat-column-check, r=Nadrieril
`rustc_pattern_analysis`: always check that deref patterns don't match on the same place as normal constructors

In rust-lang/rust#140106, deref pattern validation was tied to the `deref_patterns` feature to temporarily avoid affecting perf. However:
- As of rust-lang/rust#143414, box patterns are represented as deref patterns in `rustc_pattern_analysis`. Since they can be used by enabling `box_patterns` instead of `deref_patterns`, it was possible for them to skip validation, resulting in an ICE. This fixes that and adds a regression test.
- External tooling (e.g. rust-analyzer) will also need to validate matches containing deref patterns, which was not possible. This fixes that by making `compute_match_usefulness` validate deref patterns by default.

In order to avoid doing an extra pass for anything with patterns, the second commit makes `RustcPatCtxt` keep track of whether it encounters a deref pattern, so that it only does the check if so. This is purely for performance. If the perf impact of the first commit is negligible and the complexity cost introduced by the second commit is significant, it may be worth dropping the latter.

r? `@Nadrieril`
2025-07-09 09:45:36 +00:00
Ralf Jung
a09cf9cc5a Merge pull request #4435 from nia-e/trace-fixups
native_lib/trace: fix and reenable
2025-07-09 09:31:26 +00:00
Marijn Schouten
43bc40f113 improve lint doc text 2025-07-09 09:08:56 +00:00
Nia Espera
3bd0b8909c various native-lib-trace-related fixups
Co-Authored-By: Ralf Jung <post@ralfj.de>
2025-07-09 11:06:07 +02:00
Philipp Krones
dcc790620a triagebot: enable issue transfer (#14874)
I think it's pretty common for a lint to be proposed for clippy only for
consensus to be it belongs in rustc, and additionally sometimes bugs get
filed here when the fault is actually with rustc.

https://forge.rust-lang.org/triagebot/transfer.html#issue-transfer

changelog: none
2025-07-09 08:35:20 +00:00
Philipp Krones
2ed97eb466 Create summary comment for lintcheck runs (#14816)
Previously https://github.com/rust-lang/triagebot/pull/1985

After a lintcheck run a comment will be created in the PR thread with an
overview of the changes, example here
https://github.com/Alexendoo/rust-clippy/pull/18#issuecomment-2880441316
(plus the normal GHA debugging experience)

It will only comment if there are some changes, if there's already an
existing comment it will be updated for each run

Similar to
https://github.com/rust-lang/team/blob/master/.github/workflows/dry-run.yml

The PR number is supplied by the lintcheck run, so technically someone
could forge it to be annoying and edit the summaries in other threads,
but that is pretty low impact and easy to deal with. There is a
`pull_requests` field on the event but as @Kobzol [pointed out to
me](https://github.com/rust-lang/triagebot/pull/1985#issuecomment-2869157116)
it's not populated for PRs from forks

r? @flip1995

changelog: none
2025-07-09 08:29:50 +00:00
Jakub Beránek
6c38d389f2 Add doc cross-compilation test 2025-07-09 10:26:36 +02:00
Jakub Beránek
566dc98d2a Add doc library test for a no_std target 2025-07-09 09:47:37 +02:00
bors
558d25371f Auto merge of #143667 - tgross35:rollup-yqitltm, r=tgross35
Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#142357 (Simplify LLVM bitcode linker in bootstrap and add tests for it)
 - rust-lang/rust#143177 (Remove false label when `self` resolve failure does not relate to macro)
 - rust-lang/rust#143339 (Respect endianness correctly in CheckEnums test suite)
 - rust-lang/rust#143426 (clippy fix: indentation)
 - rust-lang/rust#143475 (tests: Use `cfg_target_has_reliable_f16_f128` in `conv-bits-runtime-const`)
 - rust-lang/rust#143499 (Don't call `predicates_of` on a dummy obligation cause's body id)
 - rust-lang/rust#143520 (Fix perf regression caused by tracing)
 - rust-lang/rust#143532 (More carefully consider span context when suggesting remove `&mut`)
 - rust-lang/rust#143606 (configure.py: Write last key in each section)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-07-09 06:43:41 +00:00