Skip to content

Commit 57e9bc4

Browse files
committed
Fix a comment typo
It ain't much, but it's honest work.
1 parent 5cca751 commit 57e9bc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/mir/interpret/queries.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use rustc_span::Span;
99
impl<'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

0 commit comments

Comments
 (0)