diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-04-26 08:44:23 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-04-26 09:24:33 +1000 |
| commit | 8dc84fa7d17980424b22909207056214663d0526 (patch) | |
| tree | e534e81b696ea720606959772dee643e304e32ae /compiler/rustc_builtin_macros/src/concat_bytes.rs | |
| parent | e2d2b1c6987869ed2eb13f16cb91e560c295cb57 (diff) | |
| download | rust-8dc84fa7d17980424b22909207056214663d0526.tar.gz rust-8dc84fa7d17980424b22909207056214663d0526.zip | |
Move some functions from `rustc_expand` to `rustc_builtin_macros`.
These functions are only used in `rustc_builtin_macros`, so it makes sense for them to live there. This allows them to be changed from `pub` to `pub(crate)`.
Diffstat (limited to 'compiler/rustc_builtin_macros/src/concat_bytes.rs')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/concat_bytes.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_builtin_macros/src/concat_bytes.rs b/compiler/rustc_builtin_macros/src/concat_bytes.rs index 45fec294578..f9d3f4a1425 100644 --- a/compiler/rustc_builtin_macros/src/concat_bytes.rs +++ b/compiler/rustc_builtin_macros/src/concat_bytes.rs @@ -1,11 +1,10 @@ +use crate::errors; +use crate::util::get_exprs_from_tts; use rustc_ast::{ptr::P, token, tokenstream::TokenStream, ExprKind, LitIntType, LitKind, UintTy}; -use rustc_expand::base::get_exprs_from_tts; use rustc_expand::base::{DummyResult, ExpandResult, ExtCtxt, MacEager, MacroExpanderResult}; use rustc_session::errors::report_lit_error; use rustc_span::{ErrorGuaranteed, Span}; -use crate::errors; - /// Emits errors for literal expressions that are invalid inside and outside of an array. fn invalid_type_err( cx: &ExtCtxt<'_>, |
