Skip to content

Conversation

@Kivooeo
Copy link
Member

@Kivooeo Kivooeo commented Oct 6, 2025

The same thing I did in #147416, actually the same bug but in another place, I'm not really sure how this method is good for fixing such ICEs, but, it does work and not conflicting with any existing tests, so I guess, it's fine

Fixes #147408

r? compiler

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 6, 2025
@chenyukang
Copy link
Member

Thanks!
@bors r=chenyukang

@bors
Copy link
Collaborator

bors commented Oct 14, 2025

📌 Commit e1b361c has been approved by chenyukang

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 14, 2025
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Oct 14, 2025
Add check if span is from macro expansion

The same thing I did in rust-lang#147416, actually the same bug but in another place, I'm not really sure how this method is good for fixing such ICEs, but, it does work and not conflicting with any existing tests, so I guess, it's fine

Fixes rust-lang#147408

r? compiler
bors added a commit that referenced this pull request Oct 14, 2025
Rollup of 7 pull requests

Successful merges:

 - #146187 (Unstably constify `ptr::drop_in_place` and related methods)
 - #146503 (std: improve handling of timed condition variable waits on macOS)
 - #147421 (Add check if span is from macro expansion)
 - #147630 (Bitset cleanups)
 - #147666 (Replace manual implementation with `carrying_mul_add`)
 - #147669 (fix missing link to `std::char` in `std` docs)
 - #147673 (pretty print u128 with display)

r? `@ghost`
`@rustbot` modify labels: rollup
jdonszelmann added a commit to jdonszelmann/rust that referenced this pull request Oct 14, 2025
Add check if span is from macro expansion

The same thing I did in rust-lang#147416, actually the same bug but in another place, I'm not really sure how this method is good for fixing such ICEs, but, it does work and not conflicting with any existing tests, so I guess, it's fine

Fixes rust-lang#147408

r? compiler
bors added a commit that referenced this pull request Oct 14, 2025
Rollup of 7 pull requests

Successful merges:

 - #146187 (Unstably constify `ptr::drop_in_place` and related methods)
 - #146503 (std: improve handling of timed condition variable waits on macOS)
 - #147421 (Add check if span is from macro expansion)
 - #147630 (Bitset cleanups)
 - #147666 (Replace manual implementation with `carrying_mul_add`)
 - #147669 (fix missing link to `std::char` in `std` docs)
 - #147673 (pretty print u128 with display)

r? `@ghost`
`@rustbot` modify labels: rollup
@matthiaskrgr
Copy link
Member

@bors r-
#147684 (comment)

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 14, 2025
@Kivooeo
Copy link
Member Author

Kivooeo commented Oct 14, 2025

Ngl I have no even close idea on why this could fail, like, is aarch64-pc-windows-msvc anyhow special from other targets? Or where specific I should take a look to understand reason of it

@Kivooeo
Copy link
Member Author

Kivooeo commented Oct 17, 2025

@chenyukang could you take a look at this comment above, it's very confusingggg

@chenyukang
Copy link
Member

I think this is caused by the diff in stderr:

-  WARN rustc_errors::emitter Invalid span $SRC_DIR/std/src/macros.rs:LL:COL (#11), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "$SRC_DIR/std/src/macros.rs" }) }
+  WARN rustc_errors::emitter Invalid span $SRC_DIR/std/src/macros.rs:LL:COL (#11), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/FAKE_PREFIX/library/std/src/macros.rs" }) }

seems there is a difference in Windows.

To ignore them, maybe you can have a try with https://rustc-dev-guide.rust-lang.org/tests/ui.html#normalization

then retry it with:

@bors try jobs=aarch64-msvc-1

@chenyukang
Copy link
Member

if that does not help, you may ask for help at:#t-compiler/help. 👉

@Kivooeo
Copy link
Member Author

Kivooeo commented Oct 18, 2025

I already asked in zulip even before this message https://rust-lang.zulipchat.com/#narrow/channel/122651-general/topic/Windows.20path.20normalization.20in.20tests/with/545323081, but unfortunately no answers

Could you do bors try just to make sure this isn't one-time random bug

@chenyukang
Copy link
Member

@bors try jobs=aarch64-msvc-1

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Oct 18, 2025
Add check if span is from macro expansion

try-job: aarch64-msvc-1
@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link

rust-bors bot commented Oct 18, 2025

💔 Test for 9e2138d failed: CI. Failed jobs:

@bors
Copy link
Collaborator

bors commented Oct 30, 2025

☔ The latest upstream changes (presumably #148193) made this pull request unmergeable. Please resolve the merge conflicts.

@rustbot
Copy link
Collaborator

rustbot commented Nov 12, 2025

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@rust-log-analyzer

This comment has been minimized.

@Kivooeo
Copy link
Member Author

Kivooeo commented Nov 13, 2025

@bors try jobs=aarch64-msvc-1

rust-bors bot added a commit that referenced this pull request Nov 13, 2025
Add check if span is from macro expansion

try-job: aarch64-msvc-1
@rust-bors

This comment has been minimized.

@rust-bors
Copy link

rust-bors bot commented Nov 13, 2025

☀️ Try build successful (CI)
Build commit: 5c85e3f (5c85e3f013ca9c8dc0ed5b934916c6669809e0c7, parent: 5dbf4069dc98bbbca98dd600a65f50c258fbfd56)

@Kivooeo
Copy link
Member Author

Kivooeo commented Nov 13, 2025

Yay, I used tech that @fmease told me here #147416 (comment)

If they were different, we could then simply tail_expr.span.find_ancestor_in_same_ctxt(stmt.span) and use that inside stmt.span.with_lo(_).

Since I do have different spans here I used it, I'm not actually how correct my usage was, but it seems that it does work

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ICE array_into_iter span must not be empty and have no suggesion

7 participants