-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Bug: stream()
causes random behavior / internal compiler error
#6878
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
Comments
The fact that inserting/deleting unrelated code changes behavior makes me think of #4127. I wonder if there's another type_use bug. |
Visiting for triage, email from 2013-08-05
|
I cannot reproduce the problem. |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Mar 11, 2021
Set Clippy authors to "The Rust Clippy Developers" Clippy has grown enough, that putting specific people in the "authors" field isn't warranted anymore. As a heads-up: `@Manishearth` `@llogiq` `@birkenfeld` `@mcarton` `@oli-obk` `@phansch` `@matthiaskrgr` your names will be removed from one or more of the `Cargo.toml` files of Clippy. This of course does not mean that we value your previous work on Clippy any less ❤️ As per our discussion in today's meeting: https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Meeting.202021-03-09/near/229502514 changelog: none
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated bug report
Invoke via
rustc --cfg variant1 /tmp/sum.rs && /tmp/sum
for (or variant2 or variant3).Original bug report
Hi,
I found a strange behavior of the compiler, which seems to modify a variable by random. The inputs and outputs are here: https://gist.github.com/honzasp/5689535.
The program
sum_halvesA.rs
computes a correct value insum_halves1()
and prints it, then it computes the same value insum_halves2()
, but this value is mysterously modified somewhere between the caller and callee.A small change (removing
stream()
or someprintln
) makes it work as expected.If I remove the type signature for
(port,chan)
, as insum_halvesB.rs
, rustc fails with internal compiler error.Original reported output
The text was updated successfully, but these errors were encountered: