From 26aad254875464ff352a4e18d16f668b5bd9b7cb Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Thu, 17 May 2018 21:28:50 +0300 Subject: rustc: introduce {ast,hir}::AnonConst to consolidate so-called "embedded constants". --- src/libsyntax/diagnostics/plugin.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/libsyntax/diagnostics/plugin.rs') diff --git a/src/libsyntax/diagnostics/plugin.rs b/src/libsyntax/diagnostics/plugin.rs index aecf32ab6af..6c3117b963f 100644 --- a/src/libsyntax/diagnostics/plugin.rs +++ b/src/libsyntax/diagnostics/plugin.rs @@ -207,7 +207,10 @@ pub fn expand_build_diagnostic_array<'cx>(ecx: &'cx mut ExtCtxt, span, ast::TyKind::Tup(vec![ty_str.clone(), ty_str]) ), - ecx.expr_usize(span, count), + ast::AnonConst { + id: ast::DUMMY_NODE_ID, + value: ecx.expr_usize(span, count), + }, ), ); -- cgit 1.4.1-3-g733a5