Skip to content

Commit 8d31700

Browse files
committed
[WIP]
1 parent 665c4b9 commit 8d31700

File tree

1 file changed

+4
-0
lines changed
  • compiler/rustc_hir_analysis/src/hir_ty_lowering

1 file changed

+4
-0
lines changed

compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,10 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
781781
rustc_ast::BoundPolarity::Positive => ty::PredicatePolarity::Positive,
782782
rustc_ast::BoundPolarity::Negative(_) => ty::PredicatePolarity::Negative,
783783
rustc_ast::BoundPolarity::Maybe(_) => {
784+
// FIXME(fmease): Validate *here* that `?` can only be applied to
785+
// `Sized` (or `X` where `X` is a default trait under
786+
// `more_maybe_bounds`).
787+
784788
// Validate associated type at least. We may want to reject these
785789
// outright in the future...
786790
for constraint in trait_segment.args().constraints {

0 commit comments

Comments
 (0)