about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <arielb1@mail.tau.ac.il>2015-09-24 19:58:00 +0300
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2015-09-26 21:13:31 +0300
commitfe6ad097c654d2655ad11610b2c96d577a3fcc2b (patch)
tree2ddfebf00b6466e70f9560418dff3aee961188f8 /src/rustllvm/ExecutionEngineWrapper.cpp
parent9169e6c53c53999d0ca176067a36c57aef84757b (diff)
downloadrust-fe6ad097c654d2655ad11610b2c96d577a3fcc2b.tar.gz
rust-fe6ad097c654d2655ad11610b2c96d577a3fcc2b.zip
deduplicate trait errors before they are displayed
Because of type inference, duplicate obligations exist and cause duplicate
errors. To avoid this, only display the first error for each (predicate,span).

The inclusion of the span is somewhat bikesheddy, but *is* the more
conservative option (it does not remove some instability, as duplicate
obligations are ignored by `duplicate_set` under some inference conditions).

Fixes #28098
cc #21528 (is it a dupe?)
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions