diff options
| author | lcnr <rust@lcnr.de> | 2023-12-14 14:59:32 +0100 | 
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2023-12-14 15:22:37 +0100 | 
| commit | fa03289ddfc15d4582a866e66c9003fc6fc11a9f (patch) | |
| tree | 2b65784314089817136f17c96888770156523ef5 /compiler | |
| parent | 094707087171bb698d47aba807cd7d78c58e63ab (diff) | |
| download | rust-fa03289ddfc15d4582a866e66c9003fc6fc11a9f.tar.gz rust-fa03289ddfc15d4582a866e66c9003fc6fc11a9f.zip | |
review
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/error_reporting/type_err_ctxt_ext.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/type_err_ctxt_ext.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/type_err_ctxt_ext.rs index 3b50645a275..b3bb0a9fcb7 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/type_err_ctxt_ext.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/type_err_ctxt_ext.rs @@ -814,7 +814,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> { ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(ty)) => { let ty = self.resolve_vars_if_possible(ty); - if self.tcx.sess.opts.unstable_opts.next_solver.is_some() { + if self.next_trait_solver() { // FIXME: we'll need a better message which takes into account // which bounds actually failed to hold. self.tcx.sess.struct_span_err( | 
