Commit graph

313515 commits

Author SHA1 Message Date
Mattias Petersson
ee12ffe79f Add example for profiling diff locally
Added an example for profiling an external crate diff locally. The
original issue  also mentions that the debuginfo-level = 1 should be
highlighted, but that has been solved by a different commit and as such
was not included here.
2025-12-28 17:28:33 +01:00
Tshepang Mbambo
287d4dfde7 make ci step more simple 2025-12-27 12:29:12 +02:00
Tshepang Mbambo
a7bdf0dff7
Merge pull request #2702 from rust-lang/tshepang/make-date-check-entries-clickable
make date-check entries clickable
2025-12-27 12:07:04 +02:00
Tshepang Mbambo
5a4f1c3304 put back line numbers 2025-12-27 12:04:28 +02:00
Tshepang Mbambo
db48a24f64
Merge pull request #2708 from reddevilmidzy/wa
Update 'Working groups' to 'Working areas' in docs
2025-12-24 15:23:17 +02:00
Redddy
611becee8c
Update 'Working groups' to 'Working areas' in docs 2025-12-24 21:58:59 +09:00
Boxy
f61c7f7ef7
Merge pull request #2707 from reddevilmidzy/fix
Fix function formatting in src/overview.md
2025-12-24 05:25:20 +00:00
Redddy
5fbb39c036 Fix function formatting in src/overview.md 2025-12-24 14:04:20 +09:00
Tshepang Mbambo
f34a4ee74e
Merge pull request #2706 from reddevilmidzy/lecture
Add Rustc Explore video link
2025-12-20 10:21:36 +02:00
Redddy
c3bd76b7af
Add Rustc Explore video link 2025-12-20 15:22:41 +09:00
Jana Dönszelmann
7076d693ed
Merge pull request #2704 from reddevilmidzy/macro
Clarify serialization macros documentation
2025-12-18 18:36:14 +01:00
Redddy
54a25b1526
Clarify descriptions for BlobDecodable and LazyDecodable 2025-12-18 23:54:18 +09:00
Redddy
e1e8e0648c
fix typo
Co-authored-by: Tshepang Mbambo <hopsi@tuta.io>
2025-12-18 21:13:17 +09:00
Tshepang Mbambo
728c376c7d
Merge pull request #2705 from DanielEScherzer/patch-1
stabilization_guide: add missing `)` in prose
2025-12-18 11:50:03 +02:00
Daniel Scherzer
1dff3e71a4
stabilization_guide: add missing ) in prose 2025-12-18 01:25:57 -08:00
Redddy
186fc3c000
Clarify serialization macros documentation
remove `MetadataDecodable` and add `BlobDecodable` and `LazyDecodable`.
2025-12-18 12:00:12 +09:00
Tshepang Mbambo
4b83a5bb15
Merge pull request #2703 from rust-lang/tshepang/sembr
sembr a few files
2025-12-18 00:49:58 +02:00
Tshepang Mbambo
3aa4a794a7 that basically repeats the title 2025-12-18 00:48:43 +02:00
Tshepang Mbambo
4673d56b41 sembr src/conventions.md 2025-12-18 00:41:31 +02:00
Tshepang Mbambo
2fe2052bbe manual sembr 2025-12-18 00:40:03 +02:00
Tshepang Mbambo
40d05f8108 corner case 2025-12-18 00:36:27 +02:00
Tshepang Mbambo
5e1352b631 sembr src/query.md 2025-12-18 00:25:13 +02:00
Tshepang Mbambo
2dac444b7e sembr src/diagnostics/error-codes.md 2025-12-18 00:18:45 +02:00
Tshepang Mbambo
e1fe9c6462 sembr src/appendix/bibliography.md (after fix from parent commit)
Please enter the commit message for your changes. Lines starting
2025-12-18 00:11:34 +02:00
Tshepang Mbambo
f685b240d8 fix corner case 2025-12-18 00:11:32 +02:00
Tshepang Mbambo
6a91174104 sembr src/appendix/bibliography.md 2025-12-18 00:11:32 +02:00
Tshepang Mbambo
8b2c9d8189 sembr src/about-this-guide.md 2025-12-17 23:49:54 +02:00
Tshepang Mbambo
e254e7ef2d match fn name 2025-12-17 23:47:04 +02:00
Tshepang Mbambo
64c1e97f32 place it all in just 2 unit tests 2025-12-17 23:40:38 +02:00
Tshepang Mbambo
fd513105d8 output of "git diff" is better, and is what I use mostly 2025-12-17 21:38:54 +02:00
Tshepang Mbambo
d5061a8617 make date-check entries clickable 2025-12-17 21:03:53 +02:00
Tshepang Mbambo
7f16a1f74e
Merge pull request #2701 from rust-lang/rustc-pull
Rustc pull update
2025-12-17 09:23:35 +02:00
The rustc-josh-sync Cronjob Bot
58983c8254 Merge ref '2dc30247c5' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 2dc30247c5
Filtered ref: 08ec2a0faafad679655e4349f1484bb25ed1fdbf
Upstream diff: cec70080fd...2dc30247c5

This merge was created using https://github.com/rust-lang/josh-sync.
2025-12-17 07:22:10 +00:00
The rustc-josh-sync Cronjob Bot
a412446bb3 Prepare for merging from rust-lang/rust
This updates the rust-version file to 2dc30247c5.
2025-12-17 07:22:03 +00:00
bors
2dc30247c5 Auto merge of #150068 - JonathanBrouwer:rollup-45j7puz, r=JonathanBrouwer
Rollup of 11 pull requests

Successful merges:

 - rust-lang/rust#147939 (Make `const BorrowMut` require `const Borrow` and make `const Fn` require `const FnMut`)
 - rust-lang/rust#149734 (Mirror GCC 9.5.0)
 - rust-lang/rust#149767 (Tidying up tests/ui/issues 33 tests [4/N])
 - rust-lang/rust#149804 (chore: fix some minor issues in the comments)
 - rust-lang/rust#149967 (custom `VaList` layout for Hexagon)
 - rust-lang/rust#150025 (dont create unnecessary `DefId`s under mgca)
 - rust-lang/rust#150032 (Use annotate-snippet as default emitter on stable)
 - rust-lang/rust#150033 (Add try_as_dyn and try_as_dyn_mut)
 - rust-lang/rust#150042 (rustc-dev-guide subtree update)
 - rust-lang/rust#150063 (Remove deny of manual-let-else)
 - rust-lang/rust#150064 (std: io: error: Add comment for UEFI unpacked repr use)

Failed merges:

 - rust-lang/rust#150044 (Avoid unhelpful suggestion when crate name is invalid)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-12-16 19:46:35 +00:00
Jonathan Brouwer
ff84058781
Rollup merge of #150064 - Ayush1325:uefi-io-repr-comment, r=bjorn3
std: io: error: Add comment for UEFI unpacked repr use

The following commit adds the comment explaining the rational why UEFI uses unpacked representation on 64-bit platforms as opposed to bit-packed representation used in all other 64-bit platforms.

r? `@bjorn3`
2025-12-16 20:21:13 +01:00
Jonathan Brouwer
02c0e8f015
Rollup merge of #150063 - workingjubilee:remove-let-else-deny, r=Kivooeo
Remove deny of manual-let-else

During discussion on Zulip[^1], we found there was no strong consensus in favor of this in practice.

[^1]: https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/.60deny.28clippy.3A.3Amanual_let_else.29.60.20proliferation/with/564085588
2025-12-16 20:21:12 +01:00
Jonathan Brouwer
926c2e6339
Rollup merge of #150042 - tshepang:rdg-sync, r=tshepang
rustc-dev-guide subtree update

Subtree update of `rustc-dev-guide` to 326e590ad8.

Created using https://github.com/rust-lang/josh-sync.

r? `@ghost`
2025-12-16 20:21:11 +01:00
Jonathan Brouwer
25b73c4943
Rollup merge of #150033 - izagawd:try_as_dyn, r=oli-obk
Add try_as_dyn and try_as_dyn_mut

Tracking issue: https://github.com/rust-lang/rust/issues/144361

Continuation of: https://github.com/rust-lang/rust/pull/144363
2025-12-16 20:21:10 +01:00
Jonathan Brouwer
f3fa567fdf
Rollup merge of #150032 - Kivooeo:annotate-snippets-stable, r=Muscraft
Use annotate-snippet as default emitter on stable

This is implementation of https://github.com/rust-lang/rust/issues/149932

Now, after MCP was accepted, we can use annotate-snippet as default emitter for errors, that means that we not longer need of previous emitter, so this PR removed previous emitter and makes annotate-snippet new default one both on stable and nightly

(this PR does not remove a code of previous emitter it just removes a `Default` option of `HumanReadableErrorType` enum, and keeping only `HumanReadableErrorType::AnnotateSnippet` as it now uses by default)
2025-12-16 20:21:10 +01:00
Jonathan Brouwer
9308518af9
Rollup merge of #150025 - BoxyUwU:mgca_no_unused_defids, r=oli-obk
dont create unnecessary `DefId`s under mgca

Fixes rust-lang/rust#149977
Fixes rust-lang/rust#148838

Accidentally left this out of rust-lang/rust#149136 even though being able to do this was a large part of the point of the PR :3

First ICE was caused by the fact that we create a defid but never lower the nodeid associated with it to a hirid which later parts of the compiler can't handle.

See test for second ICE

r? oli-obk
2025-12-16 20:21:09 +01:00
Jonathan Brouwer
ef2c71c3cc
Rollup merge of #149967 - folkertdev:va-list-hexagon, r=workingjubilee
custom `VaList` layout for Hexagon

I noticed while browsing LLVM source that we use an incorrect `VaList` definition for the musl hexagon target.

relevant links

- 0cdc1b6dd4/clang/include/clang/Basic/TargetInfo.h (L333)
- 0cdc1b6dd4/clang/lib/CodeGen/Targets/Hexagon.cpp (L407-L417)

cc target maintainer `@androm3da` can you confirm that this looks OK? In particular the `#[rustc_pass_indirectly_in_non_rustic_abis]` attribute is used to simulate pointer decay (like if the struct were wrapped in a 1-element array in C). The clang comment suggests that the Tag is wrapped in such a single-element array, but I haven't actually been able to confirm it.

For stabilizing `c_variadic` (on the hexagon targets) we will also need a custom `va_arg` implementation to mirror the one in `clang` in [va_arg.rs](https://github.com/rust-lang/rust/blob/main/compiler/rustc_codegen_llvm/src/va_arg.rs). Would you be able to contribute one?

r? `@workingjubilee`
2025-12-16 20:21:08 +01:00
Jonathan Brouwer
297cdc8137
Rollup merge of #149804 - xiaolinny:main, r=lcnr
chore: fix some minor issues in the comments

fix some minor issues in the comments
2025-12-16 20:21:08 +01:00
Jonathan Brouwer
f108cd7232
Rollup merge of #149767 - reddevilmidzy:t11, r=Kivooeo
Tidying up tests/ui/issues 33 tests [4/N]

> [!NOTE]
> Intermediate commits are intended to help review, but will be squashed add comment commit prior to merge.

part of rust-lang/rust#133895

`tests/ui/compile-flags` split it into `tests/ui/compile-flags/invalid/` and `tests/ui/compile-flags/run-pass/`

r? Kivooeo
2025-12-16 20:21:07 +01:00
Jonathan Brouwer
6c7ee7d84a
Rollup merge of #149734 - Kobzol:gcc-9.2.0, r=marcoieni
Mirror GCC 9.5.0

The GCC servers can be unreliable.

r? `@marcoieni`
2025-12-16 20:21:06 +01:00
Jonathan Brouwer
d93b93bcb0
Rollup merge of #147939 - theemathas:add-const-supertrait, r=oli-obk
Make `const BorrowMut` require `const Borrow` and make `const Fn` require `const FnMut`

This makes it consistent with other const traits in the standard library with supertraits.

I am currently unsure if `const FnMut` should require `const FnOnce` or not. See [zulip discussion](https://rust-lang.zulipchat.com/#narrow/channel/146212-t-compiler.2Fconst-eval/topic/.5Bconst.5D.20implied.20bounds.20for.20implicit.20trait.20bounds/near/546152748).
2025-12-16 20:21:05 +01:00
Ayush Singh
4efe2681f7
std: io: error: Add comment for UEFI unpacked repr use
The following commit adds the comment explaining the rational why UEFI
uses unpacked representation on 64-bit platforms as opposed to bit-packed
representation used in all other 64-bit platforms.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-12-16 22:27:42 +05:30
Jubilee Young
0004d8d421 Remove deny of manual-let-else 2025-12-16 08:42:04 -08:00
bors
31010ca61c Auto merge of #149442 - chenyukang:yukang-fix-mark-span-note-144304, r=estebank
Fix span note for question mark expression

Fixes rust-lang/rust#144304

Seems it's better to fix the note instead of modifying the span to cover the whole expression.

r? `@estebank`
2025-12-16 16:06:43 +00:00
Kivooeo
84f2854bc3 remove fixme & update stderr files 2025-12-16 13:23:48 +00:00