]> git.lizzy.rs Git - rust.git/commit
Refactor overflow handling in traits::select to propagate overflow instead of abortin...
authorAravind Gollakota <aravindprasant@gmail.com>
Thu, 5 Apr 2018 17:29:18 +0000 (12:29 -0500)
committerAravind Gollakota <aravindprasant@gmail.com>
Fri, 27 Apr 2018 01:26:20 +0000 (20:26 -0500)
commit79f71f976a2c55794a120cb77cb8dfbf35bb0a25
treed7b009c0e8af92fbd33554ae087698ad20d82fdb
parent7f3444e1baf0d335b4bf379f845dbc28cdd0509c
Refactor overflow handling in traits::select to propagate overflow instead of aborting eagerly

We store the obligation that caused the overflow as part of the OverflowError, and report it at the public API endpoints (rather than in the implementation internals).
src/librustc/traits/error_reporting.rs
src/librustc/traits/mod.rs
src/librustc/traits/select.rs
src/librustc/traits/structural_impls.rs