Skip to content

Infinite loop when compiling nested macros #11692

Closed
@bnoordhuis

Description

@bnoordhuis

Apologies if this has been reported before. A search didn't turn up anything but you know how GH's search is.

$ cat t.rs
fn main() { print!(format!("BAM")); }

$ rustc t.rs 2>&1 | head -20
t.rs:1:20: 1:26 error: macro undefined: 'format'
t.rs:1 fn main() { print!(format!("BAM")); }
                          ^~~~~~
t.rs:1:20: 1:26 error: macro undefined: 'format'
t.rs:1 fn main() { print!(format!("BAM")); }
                          ^~~~~~
t.rs:1:20: 1:26 error: macro undefined: 'format'
t.rs:1 fn main() { print!(format!("BAM")); }
                          ^~~~~~
t.rs:1:20: 1:26 error: macro undefined: 'format'
t.rs:1 fn main() { print!(format!("BAM")); }
                          ^~~~~~
t.rs:1:20: 1:26 error: macro undefined: 'format'
t.rs:1 fn main() { print!(format!("BAM")); }
                          ^~~~~~
t.rs:1:20: 1:26 error: macro undefined: 'format'
t.rs:1 fn main() { print!(format!("BAM")); }
                          ^~~~~~
t.rs:1:20: 1:26 error: macro undefined: 'format'
t.rs:1 fn main() { print!(format!("BAM")); }

Tested with today's x86_64 lucid nightly from https://launchpad.net/~hansjorg/+archive/rust

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions