Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/builtin/fn_macro.rs')
| -rw-r--r-- | crates/hir-expand/src/builtin/fn_macro.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/crates/hir-expand/src/builtin/fn_macro.rs b/crates/hir-expand/src/builtin/fn_macro.rs index 9181ad88b6..e12cdef495 100644 --- a/crates/hir-expand/src/builtin/fn_macro.rs +++ b/crates/hir-expand/src/builtin/fn_macro.rs @@ -852,17 +852,9 @@ fn include_bytes_expand( span: Span, ) -> ExpandResult<tt::TopSubtree> { // FIXME: actually read the file here if the user asked for macro expansion - let underscore = sym::underscore; - let zero = tt::Literal { - text_and_suffix: sym::_0_u8, - span, - kind: tt::LitKind::Integer, - suffix_len: 3, - }; - // We don't use a real length since we can't know the file length, so we use an underscore - // to infer it. + let pound = mk_pound(span); let res = quote! {span => - &[#zero; #underscore] + builtin #pound include_bytes }; ExpandResult::ok(res) } |