]> git.lizzy.rs Git - rust.git/commit
Use more precise spans in error messages for bad FRU exprs
authorTim Chevalier <chevalier@alum.wellesley.edu>
Wed, 13 Jul 2011 22:30:30 +0000 (15:30 -0700)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Wed, 13 Jul 2011 22:30:30 +0000 (15:30 -0700)
commit04b239f3cb9d4b62488dc2d219e9bd9a242bdf8f
treea947b3c65d71fc7aedba30b9ea3f230cae7d8d5d
parent6b86dcde676ad0640e4a35f33ef0e49429cdc9b7
Use more precise spans in error messages for bad FRU exprs

The type error message for an expression using FRU where a field
expression had the wrong type was using the span for the entire
expression. Fixed it to use the span for the individual field.

Closes #628.
src/comp/middle/typeck.rs