]> git.lizzy.rs Git - rust.git/commit
Don't force resolution of integral type vars in unary minus exprs
authorLindsey Kuper <lindsey@rockstargirl.org>
Wed, 20 Jun 2012 21:33:25 +0000 (14:33 -0700)
committerLindsey Kuper <lindsey@rockstargirl.org>
Wed, 20 Jun 2012 21:33:25 +0000 (14:33 -0700)
commit60a658250ea2ee6dd10425d7070c373262762b1c
treea361d352e845b94eb2c5fe40f360eb6145c8f995
parent64912c9a56415c8a8586cd743ddbf3ab9baea2de
Don't force resolution of integral type vars in unary minus exprs

These were getting resolved too early, when they were still
unconstrained by the rest of the typing context.  Waiting a bit longer
to resolve them gives the rest of the typing context a chance to come
into play, so that they don't default to `int`.
src/rustc/middle/typeck/check.rs
src/test/run-pass/integer-literal-suffix-inference.rs