Skip to content

Commit ee361b7

Browse files
committed
---
yaml --- r: 232389 b: refs/heads/try c: c106dd4 h: refs/heads/master i: 232387: 101ddcc v: v3
1 parent a581310 commit ee361b7

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: edeb4f1c86cbf6af8ef9874d4b3af50f721ea1b8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 157422a0c7990234cc196793c41bea6302bbe488
4+
refs/heads/try: c106dd449ce9b8e0230a832810a9598274de27e3
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc/middle/traits/error_reporting.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,10 @@ pub fn report_selection_error<'a, 'tcx>(infcx: &InferCtxt<'a, 'tcx>,
206206
// error message, report with that message if it does
207207
let custom_note = report_on_unimplemented(infcx, &trait_ref.0,
208208
obligation.cause.span);
209-
if is_warning {
210-
note_obligation_cause(infcx, obligation);
211-
} else if let Some(s) = custom_note {
209+
if let Some(s) = custom_note {
212210
infcx.tcx.sess.span_note(obligation.cause.span, &s);
213-
} else {
214-
note_obligation_cause(infcx, obligation);
215211
}
212+
note_obligation_cause(infcx, obligation);
216213
}
217214
}
218215

0 commit comments

Comments
 (0)