]> git.lizzy.rs Git - rust.git/commit
Auto merge of #89323 - estebank:derive-binop, r=petrochenkov
authorbors <bors@rust-lang.org>
Wed, 6 Oct 2021 06:20:25 +0000 (06:20 +0000)
committerbors <bors@rust-lang.org>
Wed, 6 Oct 2021 06:20:25 +0000 (06:20 +0000)
commitd7539a6af09e5889ed9bcb8b49571b7a59c32e65
tree50da309ff23a14082fa4ef682197dfc42591f93d
parent98a5a98f44130b5bafb4f2b2f3126fb22a5a3228
parente8fc076f231699d9a44fc44a1e298ea4f70fdb48
Auto merge of #89323 - estebank:derive-binop, r=petrochenkov

Consider unfulfilled obligations in binop errors

When encountering a binop where the types would have been accepted, if
all the predicates had been fulfilled, include information about the
predicates and suggest appropriate `#[derive]`s if possible.

Fix #84515.
compiler/rustc_middle/src/ty/print/pretty.rs