about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/concat_bytes.rs
diff options
context:
space:
mode:
authornils <48135649+Nilstrieb@users.noreply.github.com>2022-11-15 14:24:33 +0100
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-10 11:02:41 +0100
commit2f9f097cb8b6c27a7e0d7a916e6911fc1f5ecd81 (patch)
tree3f5b890f89761f43f7d3071718491dcf72c4d285 /compiler/rustc_builtin_macros/src/concat_bytes.rs
parenta000811405e6a3ca9b0b129c1177e78564e09666 (diff)
downloadrust-2f9f097cb8b6c27a7e0d7a916e6911fc1f5ecd81.tar.gz
rust-2f9f097cb8b6c27a7e0d7a916e6911fc1f5ecd81.zip
Migrate parts of `rustc_expand` to session diagnostics
This migrates everything but the `mbe` and `proc_macro` modules. It also
contains a few cleanups and drive-by/accidental diagnostic improvements
which can be seen in the diff for the UI tests.
Diffstat (limited to 'compiler/rustc_builtin_macros/src/concat_bytes.rs')
-rw-r--r--compiler/rustc_builtin_macros/src/concat_bytes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/concat_bytes.rs b/compiler/rustc_builtin_macros/src/concat_bytes.rs
index d1124145dcb..70ce5a6c419 100644
--- a/compiler/rustc_builtin_macros/src/concat_bytes.rs
+++ b/compiler/rustc_builtin_macros/src/concat_bytes.rs
@@ -137,7 +137,7 @@ pub fn expand_concat_bytes(
     sp: rustc_span::Span,
     tts: TokenStream,
 ) -> Box<dyn base::MacResult + 'static> {
-    let Some(es) = base::get_exprs_from_tts(cx, sp, tts) else {
+    let Some(es) = base::get_exprs_from_tts(cx, tts) else {
         return DummyResult::any(sp);
     };
     let mut accumulator = Vec::new();