graydon/rust — Issue #1448: Macro errors are reported at def, not use
Author: nikomatsakis
Created: 2012-01-06 15:18:14+00:00
State: open

If you write something like `#debug["%u", 10]`, the type error (unsigned vs signed int) gets reported in `core.rs`, at the definition of `#debug`, rather than at the point of use. This is very confusing and makes you think something is fundamentally wrong in the Rust libraries (as in, they don't compile) rather than your own code. I think this ought to be fixed before 0.1 so I associated it with that milestone, but others may disagree.