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)`.
This commit is contained in:
Nicholas Nethercote
2024-04-26 08:44:23 +10:00
parent e2d2b1c698
commit 8dc84fa7d1
14 changed files with 234 additions and 237 deletions

View File

@@ -1,7 +1,7 @@
// The compiler code necessary to support the compile_error! extension.
use crate::util::get_single_str_from_tts;
use rustc_ast::tokenstream::TokenStream;
use rustc_expand::base::get_single_str_from_tts;
use rustc_expand::base::{DummyResult, ExpandResult, ExtCtxt, MacroExpanderResult};
use rustc_span::Span;