Skip to content

Rustc pull update#2067

Merged
folkertdev merged 157 commits intomainfrom
rustc-pull
Apr 6, 2026
Merged

Rustc pull update#2067
folkertdev merged 157 commits intomainfrom
rustc-pull

Conversation

@workflows-stdarch
Copy link
Copy Markdown

Latest update from rustc.

The rustc-josh-sync Cronjob Bot and others added 30 commits January 8, 2026 04:21
Configure flycheck using workspace.discoverConfig
Fix not disable string escape highlights
feat: Allow rust paths in symbol search
Fix loses exists guard for move_guard
Fix not applicable on statement for convert_to_guarded_return
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 94a0cd15f5976fa35e5e6784e621c04e9f958e57
Filtered ref: 1b46aa0fdb1e825363174ce509e40466cc0af416
Upstream diff: rust-lang/rust@004d710...94a0cd1

This merge was created using https://github.com/rust-lang/josh-sync.
fix: Handle `Self::EnumVariant` and `Self` on traits in doclinks
fix: complete inferred type in static
fix: Fix a panic where an opaque was constrained to an impossible type in method autoderef
fix: Fix diagnostics being leaked when diagnostics panic
feat: Implement support for `feature(new_range)`
…fetime

migrate introduce_named_lifetime assist to SyntaxEditor
Fix complete semicolon in array expression
Fix incorrect Self path expand for inline_call
…-impl-to-use-astnodeedit

migrate generate_impl assist to use AstNodeEdit
internal: Refactor handling of associated type shorthand for type parameters, i.e. `T::AssocType` without specifying the trait
fix: Fix predicates of builtin derive traits with two parameters defaulting to `Self`
fix: complete derive helpers on empty nameref
fix: no complete suggest param in complex pattern
fix: complete `.let` on block tail prefix expression
GuillaumeGomez and others added 8 commits March 29, 2026 00:06
…-Simulacrum

`trim_prefix` for paths

under rust-lang/rust#142312?

its a useful method.
Fix ice in rustdoc of private reexport

Fixes rust-lang/rust#154383

The root cause is rustdoc could still try to resolve links for source docs that resolver did not cache in `ResolveDocLinks::Exported` mode. The test case will not crash with `--document-private-items` option, which will use `ResolveDocLinks::All`.

The fix makes rustdoc skip link resolution based on the source `DefId` of each doc fragment, so its behavior stays aligned with resolver's logic here: https://github.com/chenyukang/rust/blob/dc5cb1719eed6ac9275fe93d914d32141606b2ac/compiler/rustc_resolve/src/late.rs#L685
move many tests from `structs-enums` to `structs` or `enum`

This PR moves most of the tests in `ui/structs-enums` that are only about structs or only about enums to their respective directory, as a step towards removing `ui/structs-enums`.
Followup to rust-lang/rust#154131.
r? @Kivooeo
Notify stdarch maintainers on changes in std_detect

cc @Amanieu @folkertdev @Kobzol

It would be nice to be notified when std_detect changes, as it is spiritually a part of stdarch.

Also assign @rust-lang/libs to std_detect
Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#153380 (stabilize new RangeFrom type and iterator)
 - rust-lang/rust#153834 (Merge `fabsf16/32/64/128` into `fabs::<F>`)
 - rust-lang/rust#154043 (simd_fmin/fmax: make semantics and name consistent with scalar intrinsics)
 - rust-lang/rust#154494 (triagebot: add reminder for bumping CI LLVM stamp)
 - rust-lang/rust#153374 (Fix LegacyKeyValueFormat report from docker build: dist-x86_64)
 - rust-lang/rust#154320 (`trim_prefix` for paths)
 - rust-lang/rust#154453 (Fix ice in rustdoc of private reexport)
 - rust-lang/rust#154504 (move many tests from `structs-enums` to `structs` or `enum`)
 - rust-lang/rust#154515 (Notify stdarch maintainers on changes in std_detect)
…ors/code/multi-bf05dc1ecf

Bump picomatch in /editors/code
Make typeck a tcx method which calls typeck_root query



Currently typeck query itself calls `tcx.typeck(tcx.typeck_root_def_id(key))` if its key isn't a type-check root. I thought this might be an overhead and made typeck a tcx method which calls typeck_root query instead.

This is a step to simplify `cache_on_disk_if` query modifier.

@petrochenkov please run perf
[perf] Revert FastISel patch

This caused a significant compile-time regression for debug builds.

There is another change (llvm/llvm-project#186723) that mitigates that regression, but not fully. Revert it for now.
`rust-analyzer` subtree update

Subtree update of `rust-analyzer` to rust-lang/rust-analyzer@f1297b2.

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

r? @ghost
@folkertdev folkertdev enabled auto-merge March 30, 2026 08:41
Properly generalize unevaluated consts



- fixes rust-lang/rust#153831
- fixes a `// FIXME(ogca)` (I am unaware of an issue for this) added in rust-lang/rust#150823

r? @BoxyUwU
@folkertdev folkertdev disabled auto-merge March 31, 2026 15:43
The rustc-josh-sync Cronjob Bot added 2 commits March 31, 2026 15:48
This updates the rust-version file to e4fdb554ad2c0270473181438e338c42b5b30b0c.
@folkertdev
Copy link
Copy Markdown
Contributor

@androm3da looks like latest nightly hits a linker error for hexagon?

https://triage.rust-lang.org/gha-logs/rust-lang/stdarch/69498349957?pr=2067

There have been some internal changes to the time APIs in core recently I believe, that may be the cause.

@androm3da
Copy link
Copy Markdown
Contributor

@androm3da looks like latest nightly hits a linker error for hexagon?

https://triage.rust-lang.org/gha-logs/rust-lang/stdarch/69498349957?pr=2067

There have been some internal changes to the time APIs in core recently I believe, that may be the cause.

New libc just landed, seems related.

I'll fix it.

@androm3da
Copy link
Copy Markdown
Contributor

@androm3da looks like latest nightly hits a linker error for hexagon?
https://triage.rust-lang.org/gha-logs/rust-lang/stdarch/69498349957?pr=2067
There have been some internal changes to the time APIs in core recently I believe, that may be the cause.

New libc just landed, seems related.

I'll fix it.

Okay opened rust-lang/libc#5040

@folkertdev I can send a PR to disable testing hexagon for stdarch so that it doesn't have to wait for the fix to land in libc then rust.

diff --git a/ci/run.sh b/ci/run.sh
index ea012b42..6d9ab919 100755
--- a/ci/run.sh
+++ b/ci/run.sh
@@ -95,7 +95,12 @@ STDARCH_EXAMPLES="--manifest-path=examples/Cargo.toml"
 cargo_test "${CORE_ARCH}"
 
 if [ "$NOSTD" != "1" ]; then
-    cargo_test "${STDARCH_EXAMPLES}"
+    case ${TARGET} in
+        # Skip examples for hexagon until the libc musl time64 symbol
+        # redirect fix lands: https://github.com/rust-lang/libc/pull/5040
+        hexagon*) ;;
+        *) cargo_test "${STDARCH_EXAMPLES}" ;;
+    esac
 fi

@folkertdev folkertdev enabled auto-merge April 6, 2026 17:22
@folkertdev folkertdev added this pull request to the merge queue Apr 6, 2026
@folkertdev
Copy link
Copy Markdown
Contributor

@androm3da I've disabled hexagon in the CI file for now. We can enable it again once the libc problem is fixed and propagated to rustc nightly, though I'd strongly recommend you upgrade the target to tier 2 so we don't run into this problem again.

@androm3da
Copy link
Copy Markdown
Contributor

@androm3da I've disabled hexagon in the CI file for now. We can enable it again once the libc problem is fixed and propagated to rustc nightly, though I'd strongly recommend you upgrade the target to tier 2 so we don't run into this problem again.

This suggestion makes sense to me, thanks.

Merged via the queue into main with commit f0b7c56 Apr 6, 2026
75 checks passed
@Kobzol Kobzol deleted the rustc-pull branch April 6, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.