Skip to content

Commit 37d103f

Browse files
b-naberb-naber
b-naber
authored and
b-naber
committed
insert span_fatal call in ast lowering to indicate that generic arguments in AssocTyConstraints haven't been fully implemented
1 parent 823dbb3 commit 37d103f

File tree

1 file changed

+7
-0
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+7
-0
lines changed

compiler/rustc_ast_lowering/src/lib.rs

+7
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,13 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
10381038
) -> hir::TypeBinding<'hir> {
10391039
debug!("lower_assoc_ty_constraint(constraint={:?}, itctx={:?})", constraint, itctx);
10401040

1041+
if let Some(ref gen_args) = constraint.gen_args {
1042+
self.sess.span_fatal(
1043+
gen_args.span(),
1044+
"generic associated types in trait paths are currently not implemented",
1045+
);
1046+
}
1047+
10411048
let kind = match constraint.kind {
10421049
AssocTyConstraintKind::Equality { ref ty } => {
10431050
hir::TypeBindingKind::Equality { ty: self.lower_ty(ty, itctx) }

0 commit comments

Comments
 (0)