Commit graph

162200 commits

Author SHA1 Message Date
Stan Manilov
c3603c64ba Link to description of opaque types 2025-05-27 18:50:31 +03:00
Tshepang Mbambo
c170a699a6
diagnostic translations work is on pause 2025-05-26 22:09:35 +02:00
Alona Enraght-Moony
04f466a2bd
Remove rustdoc askama migration from getting started
This effort is blocked, so pointing new contributors here would be setting them up for failure.

https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/about.3A.20status.20of.20askama.20migration/with/497389045
2025-05-26 20:56:14 +01:00
Tshepang Mbambo
db998211e8
Merge pull request #2407 from smanilov/patch-14
Add time reference and tracking info for trait system refactor
2025-05-26 18:49:20 +02:00
Stan Manilov
740aaf7ed9 Add time reference and tracking info for trait system refactor 2025-05-26 15:43:07 +03:00
Stan Manilov
b73dfdfbd3
Link normalization chapter 2025-05-26 15:39:25 +03:00
León Orell Valerian Liehr
8d1337bf6a
Flesh out sections about crashes tests and update mentions of glacier 2025-05-26 13:54:49 +02:00
mejrs
d0582aacc1 Update rustc_on_unimplemented docs 2025-05-24 19:16:01 +02:00
Jakub Beránek
4831646fc3
Merge pull request #2405 from Kobzol/remove-mentions-of-rust-lang-ci
Remove mentions of rust-lang-ci/rust
2025-05-24 14:14:56 +02:00
Tshepang Mbambo
9dd67e1104
typo 2025-05-24 01:38:43 +02:00
yukang
8e91013d69 Add LLVM link in appendix 2025-05-24 02:30:23 +08:00
nora
6232b33c6c
Merge pull request #2404 from lolbinarycat/patch-1
rustdoc.md: reorder list so test suites are not split up
2025-05-23 18:56:05 +02:00
jyn
589d03cd05 document why rustdoc cannot look at function bodies 2025-05-23 10:53:36 -04:00
Jakub Beránek
346ef86a58
Remove mentions of rust-lang-ci/rust
Now that CI has been finally migrated to `rust-lang/rust`.
2025-05-23 13:27:17 +02:00
lolbinarycat
34411547fb
rustdoc.md: reorder list so test suites are not split up 2025-05-22 17:31:36 -05:00
Tshepang Mbambo
bf90c3eb86 ~? annotation type is special
It does not do any line matching, so it should be separated from the other types.
2025-05-22 19:37:29 +02:00
Boxy
f499cd0000
Merge pull request #2400 from smanilov/patch-13
Make it clear we talk about early bound params
2025-05-20 16:36:21 +01:00
Boxy
1710217ebe
Merge pull request #2398 from smanilov/patch-12
Update links between ty-module and binders
2025-05-20 16:18:22 +01:00
Stan Manilov
50211e008e
Make it clear we talk about early bound params 2025-05-20 16:25:11 +03:00
Frank Steffahn
a611f5016a Fix misdirected link for TypingEnv 2025-05-20 13:26:22 +02:00
Stan Manilov
2754f18199 Update links between ty-module and binders
The order might have been reversed at some point, leading to the two
chapters talking about each other in the wrong order.
2025-05-20 13:52:33 +03:00
Stan Manilov
0653799745
Small typo and style fixes in binders.md
Normally I refrain from nit picking, but this seamed worth it.
2025-05-20 11:41:55 +03:00
Tshepang Mbambo
86662dced5
Merge pull request #2392 from rust-lang/rustc-pull
Rustc pull update
2025-05-20 04:37:19 +02:00
Stan Manilov
4f45f0442b
Update link to Forge guide on new flags 2025-05-19 17:32:29 +03:00
nora
f42a6e3012
Merge pull request #2394 from smanilov/patch-9
Make run instructions first
2025-05-19 14:34:27 +02:00
Stan Manilov
114367587c
Make run instructions first
Better, because then one knows how to run the examples.
2025-05-19 14:44:36 +03:00
Stan Manilov
686f0fa8a2
Remove unused references and simplify one 2025-05-19 14:41:19 +03:00
nora
85379b1d1a
Merge pull request #2389 from fuzzypixelz/typos
Fix typos in "Libraries and Metadata"
2025-05-19 12:39:24 +02:00
The rustc-dev-guide Cronjob Bot
288ca05976 Merge from rustc 2025-05-19 04:16:41 +00:00
The rustc-dev-guide Cronjob Bot
70ead0af5b Preparing for merge from rustc 2025-05-19 04:10:52 +00:00
bors
e42bbfe1f7 Auto merge of #140154 - Berrysoft:cygwin-host, r=jieyouxu
Cygwin support in rustc

This PR builds host rustc targeting cygwin.

- [x] https://github.com/rust-lang/stacker/pull/122
- [x] https://github.com/nagisa/rust_libloading/pull/173
- [x] https://github.com/Detegr/rust-ctrlc/pull/131
- [x] https://github.com/rust-random/getrandom/pull/654
- [x] https://github.com/msys2/MSYS2-packages/issues/5350
- [x] https://github.com/rust-lang/rust/pull/140886
- [x] https://github.com/rust-lang/rust/pull/140921
- [x] https://github.com/rust-lang/rust/pull/140973

Currently supported:
* rustc
* rustdoc
* rustfmt
* clippy

Blocking:
* cargo: blocked by https://github.com/rust-lang/socket2/pull/568
* rust-analyzer: needs `cargo update`, fixed upstream

```
$ rustc --version --verbose
rustc 1.88.0-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-pc-cygwin
release: 1.88.0-dev
LLVM version: 20.1.4
```
2025-05-18 23:53:04 +00:00
bors
4d051fb306 Auto merge of #127013 - tgross35:f16-format-parse, r=Mark-Simulacrum
Add `f16` formatting and parsing

Use the same algorithms as for `f32` and `f64` to implement `f16` parsing and printing.

try-job: x86_64-gnu-aux
2025-05-18 20:38:01 +00:00
León Orell Valerian Liehr
34ee7e206f
Exclude issues with an associated PR from the "What should I work on" GH query 2025-05-18 20:01:47 +02:00
Trevor Gross
250869e909 float: Add f16 to test-float-parse
This requires a fix to the subnormal test to cap the maximum allowed
value within the maximum mantissa.
2025-05-18 16:51:28 +00:00
León Orell Valerian Liehr
cf3b1b1d92
Rollup merge of #141214 - RalfJung:miri-sync, r=RalfJung
Miri subtree update

r? ``@ghost``

Fixes https://github.com/rust-lang/miri/issues/4328
2025-05-18 18:44:13 +02:00
León Orell Valerian Liehr
20bd5977ed
Rollup merge of #141127 - klensy:windows-bump-61, r=albertlarsan68,jieyouxu
bump windows crate for compiler,bootstrap and tools

This dedupes crate versions. For `x86_64-pc-windows-msvc` stage1 cuts few kb from `rustc_driver.dll`, nice.
2025-05-18 18:44:13 +02:00
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
León Orell Valerian Liehr
2f6811eff8
Rollup merge of #138940 - sayantn:stabilize-avx512, r=Amanieu,traviscross
Stabilize the avx512 target features

This PR stabilizes the AVX512 target features - see [this comment](https://github.com/rust-lang/rust/issues/111137#issuecomment-2745821279).

Tracking Issue - #44839

The target feature UI tests have been changed to `x87` (chosen because this is very unlikely to stablize ever, please comment if some other feature will be better)

related: #111137
2025-05-18 18:44:10 +02:00
Mahmoud Mazouz
228a7bb918
Fix typos in "Libraries and Metadata" 2025-05-18 15:37:18 +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
León Orell Valerian Liehr
c7e2e88da0
Rollup merge of #141139 - jieyouxu:fix-rfl, r=Urgau
Fix Rust for Linux ping group label

Noticed in https://github.com/rust-lang/rust/pull/140966#issuecomment-2886704667. Seems like a broken label can cause the triagebot ping message to not be issued.

See https://github.com/rust-lang/triagebot/issues/1992.

```@rustbot``` label: +A-rust-for-linux
2025-05-18 11:03:48 +02:00
León Orell Valerian Liehr
eb21b252c6
Rollup merge of #140966 - est31:let_chains_library, r=tgross35
Remove #![feature(let_chains)] from library and src/librustdoc

PR https://github.com/rust-lang/rust/pull/132833 has stabilized the `let_chains` feature. This PR removes the last occurences from the library, the compiler, and librustdoc (also because #140887 missed the conditional in one of the crates as it was behind the "rustc" feature).

We keep `core` as exercise for the future as updating it is non-trivial (see PR thread).
2025-05-18 11:03:45 +02:00
León Orell Valerian Liehr
5592f41a00
Rollup merge of #140113 - Urgau:rustc-book-page-toc, r=ehuss
Add per page TOC in the `rustc` book

This PR adds per page Table of Content (TOC) in the `rustc` book (to be extended in the future to our other books).

The goal is to easy the navigation inside the page by providing quick overview of the page content and our position inside that page.

That functionality is unfortunately not available natively in `mdbook`, which prompted community members to create [mdBook-pagetoc](https://github.com/JorelAli/mdBook-pagetoc/) (which this PR is heavily inspired by). It's "only" a JS file (to handle the TOC) and a CSS file (to handle the margin, colors, screen size, ...), there is no "post-processor" needed (in mdbook sense).

![image](https://github.com/user-attachments/assets/9e790bea-059d-414e-b4a5-ac8170f57e27)

Live preview at: http://urgau.rf.gd/book

r? ```@jieyouxu```
2025-05-18 11:03:44 +02: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
ae3b909a32 Auto merge of #141063 - dianqk:llvm-20.1.5, r=cuviper
Update to LLVM 20.1.5

`@rustbot` label A-LLVM T-compiler
2025-05-18 04:54:07 +00:00