Closed
Description
Issue by cmr
Friday Mar 28, 2014 at 05:12 GMT
For earlier discussion, see rust-lang/rust#13175
This issue was labelled with: B-RFC in the Rust repository
For rust-lang/rust#13146, adding the lint is easy, but getting a span to a useful place is very difficult. I propose we keep a stack of expressions being translated by pushing the ast::Expr to a task-local stack in expr::trans and expr::trans_into. Then trans_intrinsic could look up that stack for an expression with a useful span, and could even print out everything (including type params) that led to the substitution failure. I think this will be helpful if #8 gets merged, too.
Metadata
Metadata
Assignees
Labels
No labels