You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/rustc_trait_selection/src/traits/mod.rs
+8-1
Original file line number
Diff line number
Diff line change
@@ -73,10 +73,17 @@ pub use self::util::{with_replaced_escaping_bound_vars, BoundVarReplacer, Placeh
73
73
74
74
pubuse rustc_infer::traits::*;
75
75
76
-
// A trait error without any information in it. You likely want to alternately use [`ObligationCtxt::new_with_diagnostics`] to get a [`FulfillmentError`].
76
+
/// A trait error without most of its information removed. This is the error
77
+
/// returned by an [`ObligationCtxt`] by default, and suitable if you just
78
+
/// want to see if a predicate holds, and don't particularly care about the
79
+
/// error itself (except for if it's an ambiguity or true error).
80
+
///
81
+
/// use [`ObligationCtxt::new_with_diagnostics`] to get a [`FulfillmentError`].
77
82
#[derive(Copy,Clone,Debug)]
78
83
pubenumScrubbedTraitError{
84
+
/// A real error. This goal definitely does not hold.
79
85
TrueError,
86
+
/// An ambiguity. This goal may hold if further inference is done.
0 commit comments