]> git.lizzy.rs Git - rust.git/commit
Auto merge of #30286 - oli-obk:const_error_span, r=nikomatsakis
authorbors <bors@rust-lang.org>
Fri, 18 Dec 2015 12:23:54 +0000 (12:23 +0000)
committerbors <bors@rust-lang.org>
Fri, 18 Dec 2015 12:23:54 +0000 (12:23 +0000)
commitde62f9d885623318206620ddd2856a288ccd3ee4
treec52b297a99841a17ebba324e405cb32268853290
parentf963eb2870f6e2b972cd9d432dc0ece954ab6452
parent88675939d25a22d9e636d98bb045ea7e4f6e5955
Auto merge of #30286 - oli-obk:const_error_span, r=nikomatsakis

previously the error was erased and a `non-const path` error was emitted at the location of the field access instead of at the overflow location (as can be seen in the playground: http://is.gd/EuAF5F )
src/librustc/middle/const_eval.rs