File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/librustc/mir/interpret Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use rustc_span::Span;
99impl < ' tcx > TyCtxt < ' tcx > {
1010 /// Evaluates a constant without providing any substitutions. This is useful to evaluate consts
1111 /// that can't take any generic arguments like statics, const items or enum discriminants. If a
12- /// generic parameter is used within the constant `ErrorHandled::ToGeneric ` will be returned.
12+ /// generic parameter is used within the constant `ErrorHandled::TooGeneric ` will be returned.
1313 pub fn const_eval_poly ( self , def_id : DefId ) -> ConstEvalResult < ' tcx > {
1414 // In some situations def_id will have substitutions within scope, but they aren't allowed
1515 // to be used. So we can't use `Instance::mono`, instead we feed unresolved substitutions
You can’t perform that action at this time.
0 commit comments