]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ast_lowering/src/expr.rs
Rollup merge of #101813 - GuillaumeGomez:check-css-variables, r=notriddle
[rust.git] / compiler / rustc_ast_lowering / src / expr.rs
index cd03e3fb4572d7f97149f602cf08e55ffb928b77..7f5e09938cbc91d5ab44859ecf3b909e9ba9f3d1 100644 (file)
@@ -1552,7 +1552,7 @@ fn lower_expr_try(&mut self, span: Span, sub_expr: &Expr) -> hir::ExprKind<'hir>
                 let uc_nested = attr::mk_nested_word_item(uc_ident);
                 attr::mk_list_item(allow_ident, vec![uc_nested])
             };
-            attr::mk_attr_outer(allow)
+            attr::mk_attr_outer(&self.tcx.sess.parse_sess.attr_id_generator, allow)
         };
         let attrs: AttrVec = thin_vec![attr];