Skip to content

Commit c85af74

Browse files
committed
update bug message for cg
1 parent 34ea5d0 commit c85af74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_resolve/src/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl<'a> Resolver<'a> {
143143
_ => {
144144
bug!(
145145
"GenericParamsFromOuterFunction should only be used with Res::SelfTy, \
146-
DefKind::TyParam"
146+
DefKind::TyParam or DefKind::ConstParam"
147147
);
148148
}
149149
}

0 commit comments

Comments
 (0)