-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make GATs less ICE-prone. #67160
Make GATs less ICE-prone. #67160
Changes from all commits
db6d0b1
c5028f6
4b164f6
6394032
cd3ead1
0a5c91c
c268798
e7b8bfe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -234,7 +234,7 @@ impl<'a, 'tcx> InternalSubsts<'tcx> { | |
ty::GenericParamDefKind::Const => { | ||
tcx.mk_const(ty::Const { | ||
val: ty::ConstKind::Bound(ty::INNERMOST, ty::BoundVar::from(param.index)), | ||
ty: tcx.type_of(def_id), | ||
ty: tcx.type_of(param.def_id), | ||
}).into() | ||
} | ||
} | ||
|
@@ -533,8 +533,7 @@ impl<'a, 'tcx> TypeFolder<'tcx> for SubstFolder<'a, 'tcx> { | |
data.name, | ||
self.root_ty, | ||
data.index); | ||
self.tcx.sess.delay_span_bug(span, &msg); | ||
r | ||
span_bug!(span, "{}", msg); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the need for this change? The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Indeed, it hides bugs. |
||
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.