Skip to content

--pretty expanded produces a compiler error #12760

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

Closed
wycats opened this issue Mar 8, 2014 · 1 comment
Closed

--pretty expanded produces a compiler error #12760

wycats opened this issue Mar 8, 2014 · 1 comment

Comments

@wycats
Copy link
Contributor

wycats commented Mar 8, 2014

✗ rustc --pretty expanded commands/cargo-read-manifest/main.rs -L target/libs
#[crate_id = "cargo-read-manifest"];
use std::prelude::*;
extern crate std = "std#0.10-pre";
extern crate green = "green#0.10-pre";
extern crate rustuv = "rustuv#0.10-pre";

extern crate hammer;
extern crate serialize;
extern crate toml;
extern crate semver;

use hammer::{FlagDecoder, FlagConfig, FlagConfiguration};
use serialize::{Decoder, Decodable};
use serialize::json::Encoder;
use toml::from_toml;
use semver::Version;

#[deriving(Decodable, Encodable)]
struct Manifest {
    project: ~Project,
}
#[doc = "Automatically derived."]
impl <__E: ::serialize::Encoder> ::serialize::Encodable<__E> for Manifest {
    fn encode(&self, __arg_0: &mut __E) {
        match *self {
            Manifest{project: ref __self_0_0} =>
error: internal compiler error: unexpected failure
This message reflects a bug in the Rust compiler.
We would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: the compiler hit an unexpected failure path. this is a bug
Ok(task 'rustc' failed at 'assertion failed: body.stmts.is_empty()', /Users/engineering/Code/oss/rust/src/libsyntax/print/pprust.rs:1383
)

This is the original source file: https://gist.github.com/anonymous/1d6e158db126725eeb2d

@huonw
Copy link
Member

huonw commented Mar 8, 2014

Dupe of #12685.

@huonw huonw closed this as completed Mar 8, 2014
flip1995 pushed a commit to flip1995/rust that referenced this issue May 17, 2024
flip1995 pushed a commit to flip1995/rust that referenced this issue May 17, 2024
Fix rust-lang#12760

Fix rust-lang#12760

```
changelog: [missing_panics_doc]: Ignore panics in compile time
```
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

No branches or pull requests

2 participants