about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-11-27 00:18:24 +0000
committerbors <bors@rust-lang.org>2020-11-27 00:18:24 +0000
commitcfed9184f44cbd02662eb7715d6226ae885ef5c3 (patch)
tree4d96abae2d8073f2f288f09b175e628be6db2549 /compiler/rustc_ast_lowering/src
parentcb56a4420c8d41aab5c569c0fb6e51098d3a4745 (diff)
parent5c4568d08b00dbd437aa7f4e572b41b598ee9734 (diff)
downloadrust-cfed9184f44cbd02662eb7715d6226ae885ef5c3.tar.gz
rust-cfed9184f44cbd02662eb7715d6226ae885ef5c3.zip
Auto merge of #79266 - b-naber:gat_trait_path_parser, r=petrochenkov
Generic Associated Types in Trait Paths - Ast part

The Ast part of https://github.com/rust-lang/rust/pull/78978

r? `@petrochenkov`
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
-rw-r--r--compiler/rustc_ast_lowering/src/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs
index f7c693cc94d..eb45a0e1c05 100644
--- a/compiler/rustc_ast_lowering/src/lib.rs
+++ b/compiler/rustc_ast_lowering/src/lib.rs
@@ -1000,6 +1000,13 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
     ) -> hir::TypeBinding<'hir> {
         debug!("lower_assoc_ty_constraint(constraint={:?}, itctx={:?})", constraint, itctx);
 
+        if let Some(ref gen_args) = constraint.gen_args {
+            self.sess.span_fatal(
+                gen_args.span(),
+                "generic associated types in trait paths are currently not implemented",
+            );
+        }
+
         let kind = match constraint.kind {
             AssocTyConstraintKind::Equality { ref ty } => {
                 hir::TypeBindingKind::Equality { ty: self.lower_ty(ty, itctx) }