-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
invalid format string causes leaked memory in rust main loop #1299
Copy link
Copy link
Closed
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)
Milestone
Description
The following program;
use std;
import std::io;
fn main(arg : [str])
{
std::io::println(#fmt("%r", "Goat"));
}
fails to compile with the following internal error:
herugrim::~/code/markov2 $ rustc markov.rs
markov.rs:6:26: 6:30 error: unknown type in conversion: r
markov.rs:6 std::io::println(#fmt("%r", "Goat"));
^~~~
rust: upcall fail 'explicit failure', src/comp/driver/session.rs:70
rust: domain main @0x7fd001021200 root task failed
rust: fatal, 'leaked memory in rust main loop (2 objects)' failed, ./src/rt/memory_region.cpp:158 2 objects
I'm on MacOS lion, and I'm running rev 283cf35 of rust.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)
Type
Fields
Give feedbackNo fields configured for issues without a type.