Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(int): avoid infinite recursion on left shift #707 #708

Merged
merged 2 commits into from
Oct 6, 2024

Conversation

tgross35
Copy link
Contributor

@tgross35 tgross35 commented Oct 6, 2024

Recreated PR of #707 with an adjusted message and a second patch adding a note.

raskyld and others added 2 commits October 5, 2024 20:49
Please, see this discussion for the full
context: https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/.5Bwasm32.5D.20Infinite.20recursion.20.60compiler-builtins.60.20.60__multi3.60

Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu>

We determined that some recursion problems on SPARC and WASM were due to
infinite recusion. This was introduced at 9c6fcb5 ("Split Int into
Int and MinInt") when moving the implementation of `widen_hi` from
something on each `impl` block to a default on the trait. The reasoning
is not fully understood, but undoing this portion of the change seems to
resolve the issue.

[ add the above context - Trevor ]

Signed-off-by: Trevor Gross <tmgross@umich.edu>
@tgross35
Copy link
Contributor Author

tgross35 commented Oct 6, 2024

Cc @thejpster, this should hopefully fix your sparc failure

@tgross35 tgross35 merged commit 8a610fb into rust-lang:master Oct 6, 2024
25 checks passed
@tgross35 tgross35 deleted the raskyld/master branch October 6, 2024 02:07
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 6, 2024
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.

2 participants