Commit Graph

168672 Commits

Author SHA1 Message Date
bors 3ff30e7eaf Auto merge of #149462 - matthiaskrgr:rollup-vfwin7f, r=matthiaskrgr
Rollup of 3 pull requests

Successful merges:

 - rust-lang/rust#148746 (const validation: remove check for mutable refs in final value of const)
 - rust-lang/rust#148765 (std: split up the `thread` module)
 - rust-lang/rust#149454 (resolve: Identifier resolution refactorings)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-11-29 20:11:02 +00:00
bors 8a3a6bdb68 Auto merge of #149425 - flip1995:clippy-subtree-update, r=matthiaskrgr
Clippy subtree update

r? `@Manishearth`

1 day late. Totally forgot about this yesterday.
2025-11-29 16:51:52 +00:00
joboet 912f7f9502 update references to thread implementation in tests 2025-11-29 15:59:11 +01:00
Jacob Pratt e838b66bfa Rollup merge of #149424 - rustbot:docs-update, r=ehuss
Update books

## rust-lang/book

2 commits in f78ab89d7545ac17780e6a367055cc089f4cd2ec..8c0eacd5c4acbb650497454f3a58c9e8083202a4
2025-11-18 15:36:41 UTC to 2025-11-18 15:33:41 UTC

- Update ch07-02-defining-modules-to-control-scope-and-privacy.md (rust-lang/book#4570)
- use AND for search terms (rust-lang/book#4573)

## rust-lang/reference

4 commits in f9f1d2a4149f02582aec2f8fcdfa5b596193b4e2..f2ac173df9906de5c03b0ee50653321ef1c4ebe8
2025-11-26 02:52:23 UTC to 2025-11-18 21:54:51 UTC

- document `cfg` conditions on inline assembly templates and operands (rust-lang/reference#2063)
- remove unused "link reference definitions" (rust-lang/reference#2092)
- Add review process overview to review-policy.md (rust-lang/reference#2088)
- Remove restriction on dereferencing pointers in const (rust-lang/reference#2090)

## rust-lang/rust-by-example

5 commits in f944161716230641605b5e3733e1c81f10047fd4..111cfae2f9c3a43f7b0ff8fa68c51cc8f930637c
2025-11-27 20:16:42 UTC to 2025-11-20 21:40:02 UTC

- Use `From::from` fn pointer to convert to boxed errors (rust-lang/rust-by-example#1906)
- link the _tuple_ page instead "TupleStruct" (rust-lang/rust-by-example#1909)
- enum_use.md: avoid an uncommon term (rust-lang/rust-by-example#1976)
- make search less surprising (rust-lang/rust-by-example#1975)
- Update documentation for `any` function in iter_any.md (rust-lang/rust-by-example#1973)
2025-11-28 21:22:26 -05:00
Philipp Krones 0a1fa795f7 Merge commit '92b4b68683249c781c3acad742fc6e57c4140ad9' into clippy-subtree-update 2025-11-28 20:25:22 +01:00
Philipp Krones 181601c342 Merge remote-tracking branch 'upstream/master' into rustup 2025-11-28 20:09:43 +01:00
rustbot d2564a990e Update books 2025-11-28 19:47:24 +01:00
bors cc3eee7fbe Auto merge of #149419 - matthiaskrgr:rollup-v3q93fq, r=matthiaskrgr
Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#147952 (Add a timeout to the `remote-test-client` connection)
 - rust-lang/rust#149321 (Fix ICE when include_str! reads binary files)
 - rust-lang/rust#149398 (add regression test for issue rust-lang/rust#143987)
 - rust-lang/rust#149411 (Tidying up UI tests [5/N])
 - rust-lang/rust#149413 (add test for issue 143821)
 - rust-lang/rust#149415 (Remove test-float-parse from workspace list in tidy)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-11-28 17:26:31 +00:00
Matthias Krüger 3730b40500 Rollup merge of #149415 - bjorn3:tidy_update, r=clubby789
Remove test-float-parse from workspace list in tidy

It is now part of the main workspace.
2025-11-28 15:19:17 +01:00
Matthias Krüger 6d4e3f8596 Rollup merge of #149321 - reddevilmidzy:ice, r=petrochenkov
Fix ICE when include_str! reads binary files

ICE occurred when an invalid UTF8 file with an absolute path were included.

resolve: rust-lang/rust#149304
2025-11-28 15:19:15 +01:00
Matthias Krüger d7a36c133b Rollup merge of #147952 - ferrocene:pvdrz/remote-test-client-timeout, r=Enselic
Add a timeout to the `remote-test-client` connection

Currently, the `remote-test-client` doesn't have a timeout when connecting to the `remote-test-server`. This means that running tests using it can hang indefinitely which causes issues when running tests on CI, for example.

This PR now sets a default timeout of 5 minutes, meaning that if, for example, `TEST_DEVICE_ADDR=<IP:PORT> ./x test --target riscv64gc-unknown-linux-gnu tests/ui` is run and the `remote-test-server` is not reachable by the client, the client will panic after the timeout is reached.

Additionally, the `TEST_DEVICE_CONNECT_TIMEOUT` env variable can be used to set up the timeout to any value (in seconds).

This PR also wires up a test step for `remote-test-client`, which didn't previously have tool tests run in CI.

Edit: ~~blocked by rust-lang/rust#149071~~
2025-11-28 15:19:15 +01:00
bors 9050733395 Auto merge of #148020 - bjorn3:oom_backtrace, r=Mark-Simulacrum
Show backtrace on allocation failures when possible

And if an allocation while printing the backtrace fails, don't try to print another backtrace as that will never succeed.

Split out of https://github.com/rust-lang/rust/pull/147725 to allow landing this independently of a decision whether or not to remove `-Zoom=panic`.
2025-11-28 12:27:33 +00:00
bjorn3 6bbd737415 Remove test-float-parse from workspace list in tidy
It is now part of the main workspace.
2025-11-28 11:20:28 +00:00
bors 88bd39beb3 Auto merge of #149410 - Zalathar:rollup-wke6axp, r=Zalathar
Rollup of 5 pull requests

Successful merges:

 - rust-lang/rust#149087 (Stabilize `unchecked_neg` and `unchecked_shifts`)
 - rust-lang/rust#149107 (rustc_borrowck: Don't suggest changing closure param type not under user control)
 - rust-lang/rust#149323 (Use cg_llvm's target_config in miri)
 - rust-lang/rust#149380 (Run `eval_config_entry` on all branches so we always emit lints)
 - rust-lang/rust#149394 (add regression test for guard patterns liveness ICE)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-11-28 05:03:10 +00:00
Stuart Cook b8b7041e6c Rollup merge of #149323 - bjorn3:miri_llvm_target_config, r=RalfJung
Use cg_llvm's target_config in miri

Fixes https://github.com/rust-lang/rust/issues/149314

r? `@RalfJung`
2025-11-28 15:30:44 +11:00
Stuart Cook 549c577c2a Rollup merge of #149087 - nxsaken:unchecked_neg_shifts_stabilize, r=Amanieu
Stabilize `unchecked_neg` and `unchecked_shifts`

Features: `unchecked_neg`, `unchecked_shifts`
Tracking issue: rust-lang/rust#85122

r? `@Amanieu`
2025-11-28 15:30:43 +11:00
reddevilmidzy 3f943fbf84 Fix ICE when include_str! reads absolute path binary files 2025-11-28 12:43:56 +09:00
bors 10776a4071 Auto merge of #149348 - GuillaumeGomez:subtree-update_cg_gcc_2025-11-26, r=GuillaumeGomez
cg_gcc subtree sync

cc `@antoyo`
2025-11-28 01:53:22 +00:00
bjorn3 57b57b8b56 Improve test 2025-11-27 19:30:17 +00:00
bors c86564c412 Auto merge of #149397 - matthiaskrgr:rollup-go79y6a, r=matthiaskrgr
Rollup of 8 pull requests

Successful merges:

 - rust-lang/rust#147071 (constify from_fn, try_from_fn, try_map, map)
 - rust-lang/rust#148930 (tweak editor configs)
 - rust-lang/rust#149320 (-Znext-solver: normalize expected function input types when fudging)
 - rust-lang/rust#149363 (Port the `#![windows_subsystem]` attribute to the new attribute system)
 - rust-lang/rust#149378 (make run-make tests use 2024 edition by default)
 - rust-lang/rust#149381 (Add `impl TrustedLen` on `BTree{Map,Set}` iterators)
 - rust-lang/rust#149388 (remove session+blob decoder construction)
 - rust-lang/rust#149390 (`rust-analyzer` subtree update)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-11-27 19:24:40 +00:00
Ralf Jung d3901cd6ff simplify and explain MiriBeRustCompilerCalls logic for crate types 2025-11-27 19:12:18 +00:00
bjorn3 99649708fe Use cg_llvm's target_config in miri 2025-11-27 19:12:18 +00:00
Guillaume Gomez f94e90f01c Remove outdated comment for libgccjit.so.0 2025-11-27 20:11:19 +01:00
Matthias Krüger b2f8c16931 Rollup merge of #149390 - lnicola:sync-from-ra, r=lnicola
`rust-analyzer` subtree update

Subtree update of `rust-analyzer` to https://github.com/rust-lang/rust-analyzer/commit/a2a4a9525a44d955613e83a0f8707c7dc46ea855.

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

r? `@ghost`
2025-11-27 20:07:16 +01:00
Matthias Krüger c83f8b6973 Rollup merge of #149378 - tshepang:patch-2, r=clubby789
make run-make tests use 2024 edition by default

compiler/ and library/ use 2024 edition, so I thought why not run-make also
2025-11-27 20:07:14 +01:00
Guillaume Gomez c939e90a6d Remove the extra .0 at the end of the libgccjit.so file 2025-11-27 17:59:48 +01:00
Lukas Wirth 6bbdb1f6ae proc-macro-srv: Fix <TokenStream as Display>::fmt impl rendering puncts as u8 2025-11-27 16:49:38 +01:00
Christian Poveda 6bd5de70ee Document the new env variable in the rustc-dev-guide 2025-11-27 10:41:16 -05:00
Christian Poveda 444f1c534b Test the remote-test-client timeout 2025-11-27 10:41:16 -05:00
Waffle Lapkin bea0d6844d update editor config hashes 2025-11-27 16:10:49 +01:00
Waffle Lapkin dd58ee3ddb synchronize helix/zed/vscode settings 2025-11-27 16:01:47 +01:00
Matthias Krüger 01512aa08a Rollup merge of #149367 - reddevilmidzy:t4, r=Kivooeo
Tidying up UI tests [4/N]

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

part of rust-lang/rust#133895

Relocate 4 tests in fn-main and issues and remove fn-main directory

r? Kivooeo
2025-11-27 15:59:15 +01:00
Matthias Krüger 9320a7d175 Rollup merge of #149334 - asukaminato0721:149288, r=notriddle
fix ICE: rustdoc: const parameter types cannot be generic #149288

fix rust-lang/rust#149288

Applied the patch.
2025-11-27 15:59:13 +01:00
Matthias Krüger d67a12dfff Rollup merge of #148256 - lcnr:orphan-check, r=spastorino,WaffleLapkin
remove support for `typeof`

see https://github.com/rust-lang/compiler-team/issues/940 closes https://github.com/rust-lang/rust/issues/148700

This also enables checks for invariants previously broken by `typeof` again.

r? types
2025-11-27 15:59:11 +01:00
Waffle Lapkin d09726bcf6 tweak helix config 2025-11-27 15:54:53 +01:00
Lukas Wirth 7f93ba5612 Merge pull request #21145 from Veykril/push-prwwrlwmoxzx
proc-macro-srv: Fix `<TokenStream as Display>::fmt` impl producing trailing whitespace
2025-11-27 13:01:10 +00:00
Lukas Wirth 2578d40f34 proc-macro-srv: Fix <TokenStream as Display>::fmt impl producing trailing whitespace 2025-11-27 13:51:20 +01:00
reddevilmidzy a5dc701e74 Relocate some tests and remove fn-main directory
Relocate issues/issue-51022.rs to
entry-point/main-with-lifetime-param.rs

Relocate issue-50714.rs to entry-point/main-where-fn-bound.rs

Rename issue-118772.rs to main-with-invalid-signature.rs and delete
duplicate test

remove ui/entry-point/issue-118772.rs in issues.txt

Relocate fn-main/wrong-location.rs to entry-point/main-in-submodule.rs

Remove fn-main directory

Relocate issue-50688.rs to mismatched_types/array-len-is-closure.rs
2025-11-27 20:11:00 +09:00
bors cf8a95590a Auto merge of #148987 - Zalathar:is-default, r=jieyouxu
bootstrap: Replace `Step::DEFAULT` and `default_condition` with `is_default_step`

- Revised and expanded version of https://github.com/rust-lang/rust/pull/148965

---

One of the confusing things about bootstrap's `Step::should_run` is that it combines two loosely-related but non-overlapping responsibilities:
- Registering paths/aliases to decide whether a step should be run in response to paths/aliases passed as explicit command-line arguments
  - When the user invokes `./x test compiler`, this allows bootstrap to know what steps “compiler” should translate into
- Deciding whether a step marked `DEFAULT = true` should actually run or not, when no paths/aliases are explicitly specified
  - When the user invokes `./x test`, this allows bootstrap to know which steps to run by default

This PR therefore splits out the latter of those responsibilities into a dedicated `is_default_step` associated function, which also replaces the existing `DEFAULT` associated constant.

A small number of steps were using `ShouldRun::lazy_default_condition` to specify a condition that should not be run repeatedly if possible, e.g. because it queries external tools. Those steps now perform memoization via fields in `Builder` instead.

r? jieyouxu
2025-11-27 10:48:11 +00:00
Tshepang Mbambo 71b97d27ca make run-make tests use 2024 edition by default 2025-11-27 12:17:04 +02:00
Lukas Wirth 41a2df5b38 Merge pull request #21095 from A4-Tacks/autoderef-skipiter
Fix skipiter not applicable in autoderef
2025-11-27 08:31:19 +00:00
bors 7b9905edb4 Auto merge of #149370 - Zalathar:rollup-6fkk5x4, r=Zalathar
Rollup of 8 pull requests

Successful merges:

 - rust-lang/rust#149238 (float:🗜️ make treatment of signed zeros unspecified)
 - rust-lang/rust#149270 (implement `Iterator::{exactly_one, collect_array}`)
 - rust-lang/rust#149295 (Suggest _bytes versions of endian-converting methods)
 - rust-lang/rust#149332 (fix rustdoc search says “Consider searching for "null" instead.” rust-lang/rust#149324)
 - rust-lang/rust#149349 (Fix typo in comment.)
 - rust-lang/rust#149353 (Tidying up UI tests [3/N])
 - rust-lang/rust#149355 (Document that `build.description` affects symbol mangling and crate IDs)
 - rust-lang/rust#149360 (Enable CI download for windows-gnullvm)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-11-27 07:30:25 +00:00
Shoyu Vanilla (Flint) 32555af6a2 Merge pull request #20976 from A4-Tacks/comp-after-top-inner-attr
Fix not complete after inner-attr in source-file
2025-11-27 06:36:13 +00:00
Shoyu Vanilla (Flint) e958534bfe Merge pull request #21028 from A4-Tacks/comp-pattern-alias
Fix not complete type alias in pattern
2025-11-27 06:06:53 +00:00
Shoyu Vanilla (Flint) b8191e675f Merge pull request #20685 from A4-Tacks/enum-multi-gen-is-as
Add multiple generate for enum generate is, as, try_into
2025-11-27 06:05:55 +00:00
Stuart Cook 7b50aa670a Rollup merge of #149360 - mati865:push-rnmttvktztwp, r=Mark-Simulacrum
Enable CI download for windows-gnullvm

This works now!
2025-11-27 15:47:12 +11:00
Stuart Cook 5d8529467a Rollup merge of #149332 - asukaminato0721:149324, r=GuillaumeGomez
fix rustdoc search says “Consider searching for "null" instead.” #149324

fix rust-lang/rust#149324

Now builds the “generic parameter” correction banner from discrete sentence fragments and appends the “Consider searching …” clause only when query.proposeCorrectionTo is non-null, so the UI no longer renders null as the suggested type.

Adds a PARSED section with two queries: one typo (Result<SomeTraiz>) that still produces a concrete suggestion and one fully unknown type (Result<NoSuchTrait>) that leaves proposeCorrectionTo null.
2025-11-27 15:47:10 +11:00
Stuart Cook 3a62a46006 Rollup merge of #149270 - jdonszelmann:exact-length-collection, r=Mark-Simulacrum
implement `Iterator::{exactly_one, collect_array}`

As per https://github.com/rust-lang/rust/issues/149266
2025-11-27 15:47:08 +11:00
The rustc-josh-sync Cronjob Bot fc4db45047 Merge ref '1be6b13be73d' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 1be6b13be7
Filtered ref: 53d2132341f509072e83b49d4d82f17465ab164c
Upstream diff: https://github.com/rust-lang/rust/compare/6159a44067ebce42b38f062cc7df267a1348e092...1be6b13be73dc12e98e51b403add4c41a0b77759

This merge was created using https://github.com/rust-lang/josh-sync.
2025-11-27 04:08:49 +00:00
The rustc-josh-sync Cronjob Bot 8c5f7a3b7e Prepare for merging from rust-lang/rust
This updates the rust-version file to 1be6b13be7.
2025-11-27 04:08:44 +00:00