Skip to content

rustc: infinite loop print compile errors when compiling macros #12464

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
liigo opened this issue Feb 22, 2014 · 4 comments
Closed

rustc: infinite loop print compile errors when compiling macros #12464

liigo opened this issue Feb 22, 2014 · 4 comments

Comments

@liigo
Copy link
Contributor

liigo commented Feb 22, 2014

fn main() {
    println!(format!("{}",123));
}

When compiled, rustc will prints:

macro.c:12:11: 12:17 error: macro undefined: 'format'
macro.c:12  println!(format!("{}",123));
                     ^~~~~~
macro.c:12:11: 12:17 error: macro undefined: 'format'
macro.c:12  println!(format!("{}",123));
                     ^~~~~~
macro.c:12:11: 12:17 error: macro undefined: 'format'
macro.c:12  println!(format!("{}",123));
                     ^~~~~~
macro.c:12:11: 12:17 error: macro undefined: 'format'
macro.c:12  println!(format!("{}",123));
                     ^~~~~~
macro.c:12:11: 12:17 error: macro undefined: 'format'
macro.c:12  println!(format!("{}",123));
............
@lifthrasiir
Copy link
Contributor

Near-duplicate of #11692. Is this still reproducible for the recent master?

@liigo
Copy link
Contributor Author

liigo commented Feb 22, 2014

@lifthrasiir I'm using

rustc --version
rustc 0.10-pre (89b1686 2014-02-13 16:32:01 -0800)
host: x86_64-unknown-linux-gnu

I'll try the latest rustc in master later.

@alexcrichton
Copy link
Member

Closing as a dupe of #11692, which was fixed by 0bdfd0f

@liigo
Copy link
Contributor Author

liigo commented Feb 22, 2014

This bug has been fixed by #11692.

bors added a commit to rust-lang-ci/rust that referenced this issue Jul 25, 2022
…hed-type, r=Veykril

feat: fix inline variable produce mismatched type

wrap reference for RefExpr initializer to fix rust-lang#12453
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

3 participants