-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
stack overflow in impl Writer for &mut Writer #17767
Comments
This was referenced Oct 4, 2014
Smaller: use std::io;
fn main() {
let ref mut w = &mut io::stdout() as &mut Writer;
w.write([]);
} |
Looks like a libstd bug: impl<'a> Writer for &'a mut Writer+'a {
#[inline]
fn write(&mut self, buf: &[u8]) -> IoResult<()> { self.write(buf) }
#[inline]
fn flush(&mut self) -> IoResult<()> { self.flush() }
} @stepancheg, could you file a separate issue for the internal compiler error? |
stepancheg
changed the title
Incorrect stack overflow in generated code
stack overflow in impl Writer for &mut Writer
Oct 4, 2014
bkoropoff
added a commit
to bkoropoff/rust
that referenced
this issue
Oct 4, 2014
bors
added a commit
that referenced
this issue
Oct 5, 2014
lnicola
pushed a commit
to lnicola/rust
that referenced
this issue
Aug 29, 2024
Include generics when lowering extern type Fixes rust-lang#17767
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code:
Compile, run, result is
Sorry, cannot find smaller example to reproduce the problem.
Similar code, internal compiler error:
The text was updated successfully, but these errors were encountered: