@@ -24,6 +24,8 @@ use syntax::codemap::{Span, DUMMY_SP};
24
24
pub use self :: fulfill:: FulfillmentContext ;
25
25
pub use self :: select:: SelectionContext ;
26
26
pub use self :: select:: SelectionCache ;
27
+ pub use self :: select:: { MethodMatchResult , MethodMatched , MethodAmbiguous , MethodDidNotMatch } ;
28
+ pub use self :: select:: { MethodMatchedData } ; // intentionally don't export variants
27
29
pub use self :: util:: supertraits;
28
30
pub use self :: util:: transitive_bounds;
29
31
pub use self :: util:: Supertraits ;
@@ -219,22 +221,6 @@ pub struct VtableParamData {
219
221
pub bound : Rc < ty:: TraitRef > ,
220
222
}
221
223
222
- pub fn evaluate_obligation < ' a , ' tcx > ( infcx : & InferCtxt < ' a , ' tcx > ,
223
- param_env : & ty:: ParameterEnvironment ,
224
- obligation : & Obligation ,
225
- typer : & Typer < ' tcx > )
226
- -> bool
227
- {
228
- /*!
229
- * Attempts to resolve the obligation given. Returns `None` if
230
- * we are unable to resolve, either because of ambiguity or
231
- * due to insufficient inference.
232
- */
233
-
234
- let mut selcx = select:: SelectionContext :: new ( infcx, param_env, typer) ;
235
- selcx. evaluate_obligation ( obligation)
236
- }
237
-
238
224
pub fn select_inherent_impl < ' a , ' tcx > ( infcx : & InferCtxt < ' a , ' tcx > ,
239
225
param_env : & ty:: ParameterEnvironment ,
240
226
typer : & Typer < ' tcx > ,
0 commit comments