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;
9
9
impl < ' tcx > TyCtxt < ' tcx > {
10
10
/// Evaluates a constant without providing any substitutions. This is useful to evaluate consts
11
11
/// 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.
13
13
pub fn const_eval_poly ( self , def_id : DefId ) -> ConstEvalResult < ' tcx > {
14
14
// In some situations def_id will have substitutions within scope, but they aren't allowed
15
15
// 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