Commit Graph

3883 Commits

Author SHA1 Message Date
The rustc-dev-guide Cronjob Bot 5012fc3016 Preparing for merge from rustc 2025-05-15 09:46:15 +00:00
Tshepang Mbambo 1ddf2df9c2
Merge pull request #2387 from rust-lang/tshepang-avoid-conflict
avoid upstream pull conflict
2025-05-15 11:41:17 +02:00
Tshepang Mbambo ea21da3dac avoid upstream pull conflict
We changed this line and have not pushed it upstream yet,
and upstream changed it in the meanwhile.
2025-05-15 11:39:59 +02:00
Tshepang Mbambo f1127a948e
Merge pull request #2373 from rust-lang/tshepang-patch-2
avoid duplicating commands
2025-05-15 00:34:38 +02:00
Tshepang Mbambo 8bc57dec32
Merge pull request #2379 from rust-lang/tshepang-which-chapter
clean TypeFold* chapter
2025-05-15 00:33:47 +02:00
Tshepang Mbambo 71b0a3e42f
Merge pull request #2380 from rust-lang/tshepang-crate-cleaning
clean our crates
2025-05-15 00:33:19 +02:00
Tshepang Mbambo 469ebdd4fe
Merge pull request #2383 from rust-lang/tshepang-unused
remove dangling references
2025-05-15 00:32:57 +02:00
Tshepang Mbambo 45107c759a remove dangling references 2025-05-12 23:59:55 +02:00
许杰友 Jieyou Xu (Joe) 946f27e9d3
Merge pull request #2378 from smanilov/patch-7 2025-05-12 21:32:54 +08:00
Stan Manilov e96bd9bfc0 Remove n.b. about parser refactoring
Discussed in PR 2378; the note was outdated.
2025-05-12 14:27:26 +03:00
Yuki Okushi d4bf7d4b73
Merge pull request #2382 from Zalathar/no-tuple-unsize 2025-05-12 19:47:40 +09:00
Zalathar 8ebe4672cb Remove obsolete reference to `unsized_tuple_coercion` 2025-05-12 18:14:43 +10:00
Tshepang Mbambo a1603f1859 noise 2025-05-10 13:48:45 +02:00
Tshepang Mbambo 330cb46b36 we are a collective 2025-05-10 13:48:35 +02:00
Tshepang Mbambo 5e2a659b1d "cargo fmt" 2025-05-10 13:47:31 +02:00
Tshepang Mbambo 9f710fd775 bump edition 2025-05-10 13:47:31 +02:00
Tshepang Mbambo f99df9199f no point versioning these
They are internal tools.
2025-05-10 13:47:31 +02:00
Tshepang Mbambo 7fa4f19ab4 add missing word 2025-05-10 13:14:38 +02:00
Tshepang Mbambo 7f333c0cd2 last updated a year ago 2025-05-10 13:07:34 +02:00
Tshepang Mbambo 919836d9f2 sembr 2025-05-10 12:59:37 +02:00
Tshepang Mbambo 1dff715902 reduce clutter when reading source 2025-05-10 12:56:03 +02:00
Tshepang Mbambo 6b12439a07 fix broken links 2025-05-10 12:43:59 +02:00
Tshepang Mbambo e2171b97e7 is a question 2025-05-10 12:35:50 +02:00
Tshepang Mbambo 39c758c3af sembr 2025-05-10 12:35:40 +02:00
Tshepang Mbambo ff1e1d1bcc make more readable 2025-05-10 12:34:43 +02:00
Tshepang Mbambo 1d1a050dcd make more clear what is meant 2025-05-10 12:33:45 +02:00
Tshepang Mbambo ac44773f06 use the right case 2025-05-10 12:32:59 +02:00
Tshepang Mbambo fde7c94e0d link to chapter referred to
This made it look the the topic was covered in the chapter just before
the current one.
2025-05-10 12:21:56 +02:00
Tshepang Mbambo eadf6dc2e2
Merge pull request #2369 from rust-lang/tshepang-patch-1
add rdg push git config entry for git protocol pushers
2025-05-10 10:28:33 +02:00
Tshepang Mbambo a2cc4ae295
Merge pull request #2376 from smanilov/patch-5
Fix minor typo in rustdoc-internals.md
2025-05-09 15:53:15 +02:00
Stan Manilov 374f53e02b Fix minor typo in rustdoc-internals.md 2025-05-09 15:50:49 +03:00
Tshepang Mbambo 380a77e5a7
Merge pull request #2377 from smanilov/patch-6
Fix minor typo in installation.md
2025-05-08 16:31:26 +02:00
Stan Manilov e1c08547a1
Fix minor typo in installation.md 2025-05-08 16:36:53 +03:00
Boxy ed551e4c13
Merge pull request #2323 from smanilov/patch-2
Align advice to discourage issue-number-only names
2025-05-08 12:26:35 +01:00
Stan Manilov 7434026e13 Remark test naming exception 2025-05-08 14:05:31 +03:00
Tshepang Mbambo 5e53d1f457
Merge pull request #2375 from smanilov/patch-4
Fix minor typo in serialization.md
2025-05-08 10:39:05 +02:00
Stan Manilov 0e630fb60d
Fix minor typo in serialization.md 2025-05-08 11:13:50 +03:00
Tshepang Mbambo 634c6e9b90
Merge pull request #2374 from rust-lang/rustc-pull
Rustc pull update
2025-05-08 09:18:01 +02:00
The rustc-dev-guide Cronjob Bot 304af27489 Merge from rustc 2025-05-08 07:16:31 +00:00
The rustc-dev-guide Cronjob Bot acd63b2a52 Preparing for merge from rustc 2025-05-08 07:16:18 +00:00
bors c6fe7c5ef3 Auto merge of #140106 - dianne:deref-pat-usefulness, r=Nadrieril
allow deref patterns to participate in exhaustiveness analysis

Per [this proposal](https://hackmd.io/4qDDMcvyQ-GDB089IPcHGg#Exhaustiveness), this PR allows deref patterns to participate in exhaustiveness analysis. Currently all deref patterns enforce `DerefPure` bounds on their scrutinees, so this assumes all patterns it's analyzing are well-behaved. This also doesn't support [mixed exhaustiveness](https://hackmd.io/4qDDMcvyQ-GDB089IPcHGg#Mixed-exhaustiveness), and instead emits an error if deref patterns are used together with normal constructors. I think mixed exhaustiveness would be nice to have (especially if we eventually want to support arbitrary `Deref` impls[^1]), but it'd require more work to get reasonable diagnostics[^2].

Tracking issue for deref patterns: #87121

r? `@Nadrieril`

[^1]: Regardless of whether we support limited exhaustiveness checking for untrusted `Deref` or always require other arms to be exhaustive, I think it'd be useful to allow mixed matching for user-defined smart pointers. And it'd be strange if it worked there but not for `Cow`.

[^2]: I think listing out witnesses of non-exhaustiveness can be confusing when they're not necessarily disjoint, and when you only need to cover some of them, so we'd probably want special formatting and/or explanatory subdiagnostics. And if it's implemented similarly to unions, we'd probably also want some way of merging witnesses; the way witnesses for unions can appear duplicated is pretty unfortunate. I'm not sure yet how the diagnostics should look, especially for deeply nested patterns.
2025-05-08 02:16:45 +00:00
bors 108c0a38a9 Auto merge of #140751 - GuillaumeGomez:rollup-eahw4ta, r=GuillaumeGomez
Rollup of 8 pull requests

Successful merges:

 - #140234 (Separate dataflow analysis and results)
 - #140614 (Correct warning message in restricted visibility)
 - #140671 (Parser: Recover error from named params while parse_path)
 - #140700 (Don't crash on error codes passed to `--explain` which exceed our internal limit of 9999 )
 - #140706 ([rustdoc] Ensure that temporary doctest folder is correctly removed even if doctests failed)
 - #140734 (Fix regression from #140393 for espidf / horizon / nuttx / vita)
 - #140741 (add armv5te-unknown-linux-gnueabi target maintainer)
 - #140745 (run-make-support: set rustc dylib path for cargo wrapper)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-05-07 23:03:25 +00:00
bors 578c542c12 Auto merge of #140590 - lcnr:closure-in-dead-code, r=compiler-errors
borrowck nested items in dead code

fixes https://github.com/rust-lang/rust/issues/140583

r? `@compiler-errors`
2025-05-07 19:49:36 +00:00
Guillaume Gomez 46c1c1ff0b
Rollup merge of #140745 - jchecahi:run-make-support-cargo-rustc-dylib, r=jieyouxu
run-make-support: set rustc dylib path for cargo wrapper

Some run-make tests invoke Cargo via run_make_support::cargo(), but fail to execute correctly when rustc is built without rpath. In these setups, runtime loading of rustc’s shared libraries fails unless the appropriate dynamic library path is set manually.

This commit updates the cargo() wrapper to call set_host_compiler_dylib_path(), aligning its behavior with the existing rustc() wrapper: f76c7367c6/src/tools/run-make-support/src/external_deps/rustc.rs (L39-L43)

This ensures that Cargo invocations during tests inherit the necessary dylib paths, avoiding errors related to missing shared libraries in rpath-less builds.

Fixes part of #140738
2025-05-07 18:19:09 +02:00
Guillaume Gomez 196221b5c2
Rollup merge of #140741 - husqvarnagroup:af/armv5te-target-maintainer, r=jieyouxu
add armv5te-unknown-linux-gnueabi target maintainer

My employer is interested in having this target maintained and we already have some tests in our CI running for it.

armv5te-unknown-linux-gnueabi can be ticket off in #113739.
2025-05-07 18:19:08 +02:00
Guillaume Gomez 4a5588032d
Rollup merge of #140734 - ivmarkov:master, r=joboet
Fix regression from #140393 for espidf / horizon / nuttx / vita

#140393 introduced changes to the layout of the `std::sys::process` code.
As a result, the Tier 3 ESP-IDF (and I suspect Horizon, Nuttx and Vita targets as well) no longer build.

A `pub use unsupported::output` is all that was missing - for the above OSes specifically. This explicit `pub use` is now necessary, because #140393 moved the `output` function to module-level, where it was previously part of `Command` and was thus re-exported automatically, as part of the `imp::Command` re-export further down the file containing the one-liner fix.

Note that - with the change introduced by #140393 - we **can't** anymore just do an unconditional `pub use imp::output` as this function simply does not exist anymore anywhere else but in the `unsupported` module.

r? `@joboet`
2025-05-07 18:19:08 +02:00
Guillaume Gomez 990cefad31
Rollup merge of #140706 - GuillaumeGomez:fix-missing-temp-dir-cleanup, r=notriddle
[rustdoc] Ensure that temporary doctest folder is correctly removed even if doctests failed

Fixes #139899.

The bug was due to the fact that if any doctest fails for any reason, we call `exit` (or it's called inside `libtest` if not edition 2024), meaning that `TempDir`'s destructor isn't called, and therefore the temporary folder isn't cleaned up.

Took me a while to figure out how to reproduce but finally I was able to reproduce the bug with:

`````rust
#![doc(test(attr(deny(warnings))))]

//! ```
//! let a = 12;
//! ```
`````

And then I ensured that panicking doctests were cleaned up as well:

`````rust
//! ```
//! panic!();
//! ```
`````

And finally I checked if it was fixed for merged doctests too (`--edition 2024`).

To make this work, I needed to add a new public function in `libtest` too which would call a function once all tests have been run.

So only issue is: I have absolutely no idea how we can add a regression test for this fix. If anyone has an idea...

r? `@notriddle`
2025-05-07 18:19:07 +02:00
Guillaume Gomez 27978bcf77
Rollup merge of #140700 - Kivooeo:new-fix-six, r=davidtwco,fmease
Don't crash on error codes passed to `--explain` which exceed our internal limit of 9999

removed panic in case where we do `--explain > 9999` and added check for it

now error looks like this instead of ICE
```
$ rustc.exe --explain E10000
error: E10000 is not a valid error code
```
fixes #140647
r? `@fmease`
2025-05-07 18:19:06 +02:00
Guillaume Gomez 160b799242
Rollup merge of #140671 - xizheyin:issue-140169, r=petrochenkov
Parser: Recover error from named params while parse_path

Fixes #140169

I added test to the first commit and the second added the code and changes to test.

r? `@petrochenkov`
2025-05-07 18:19:06 +02:00
Guillaume Gomez 10bdb2966d
Rollup merge of #140614 - yuk1ty:fix-invalid-module-name-visibility, r=davidtwco
Correct warning message in restricted visibility

Fixes #131220
2025-05-07 18:19:05 +02:00