diff options
| author | Katherine Philip <kurerunoshikaku@yahoo.com> | 2022-07-13 10:27:19 -0700 |
|---|---|---|
| committer | Katherine Philip <kurerunoshikaku@yahoo.com> | 2022-07-13 16:29:05 -0700 |
| commit | 083bd7cb1ddf02820caf6cd3e04330458d0624b8 (patch) | |
| tree | 846da8951074e7aa7620f1d67efe10de8e259e05 /compiler | |
| parent | b33955a0ef3b38f2c9448b1dcab82c31b097438e (diff) | |
| download | rust-083bd7cb1ddf02820caf6cd3e04330458d0624b8.tar.gz rust-083bd7cb1ddf02820caf6cd3e04330458d0624b8.zip | |
Remove predicate note
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs index 925e8012819..5f8560902f5 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs @@ -2162,14 +2162,13 @@ impl<'a, 'tcx> InferCtxtPrivExt<'a, 'tcx> for InferCtxt<'a, 'tcx> { } let subst = data.substs.iter().find(|g| g.has_infer_types_or_consts()); if let Some(subst) = subst { - let mut err = self.emit_inference_failure_err( + let err = self.emit_inference_failure_err( body_id, span, subst, ErrorCode::E0284, true, ); - err.note(&format!("cannot satisfy `{}`", predicate)); err } else { // If we can't find a substitution, just print a generic error |
