]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #30286 - oli-obk:const_error_span, r=nikomatsakis
authorManish Goregaokar <manishsmail@gmail.com>
Fri, 18 Dec 2015 08:13:45 +0000 (13:43 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Fri, 18 Dec 2015 10:26:39 +0000 (15:56 +0530)
commitcb319fc84fa52773dd31ead8761b1c251e916e88
treec52b297a99841a17ebba324e405cb32268853290
parentf963eb2870f6e2b972cd9d432dc0ece954ab6452
parent88675939d25a22d9e636d98bb045ea7e4f6e5955
Rollup 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