Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
7af87d1
editorconfig: don't trim trailing whitespace in tests
lolbinarycat Jul 29, 2025
378dd7c
Add regression test for former ICE involving malformed meta items con…
fmease Aug 11, 2025
c1a31d8
Deprecate RUST_TEST_* env variables
epage Aug 11, 2025
e854013
Port `#[custom_mir(..)]` to the new attribute system
scrabsha Aug 10, 2025
db1a64c
simplify stack handling, be completely lazy
lcnr Aug 5, 2025
bd44d85
Link to payload_as_str() from payload().
m-ou-se Aug 12, 2025
0d72323
chore(ci): upgrade checkout to v5
rejected-l Aug 12, 2025
0b855bc
Switch to a bitflags `MacroKinds` to support macros with more than on…
joshtriplett Aug 8, 2025
d7b30be
Expand documentation of `GlobDelegation`
joshtriplett Aug 9, 2025
c81fcac
Only suggest changing `#[derive(mymacro)]` to `#[mymacro]` for attrib…
joshtriplett Aug 9, 2025
ba231db
Detect and report macro kind mismatches early, and more precisely
joshtriplett Aug 9, 2025
b74e1cb
mbe: Rename macro parsing state names to use `Bang` instead of `Not`
joshtriplett Aug 9, 2025
33ba4a2
clippy: Update for switch to `MacroKinds`
joshtriplett Aug 9, 2025
e1fc89a
rustdoc: Minimal fixes to compile with `MacroKinds`
joshtriplett Aug 9, 2025
0338842
Rollup merge of #144642 - lolbinarycat:editorconfig-no-run-make, r=lcnr
jhpratt Aug 12, 2025
7b66001
Rollup merge of #144955 - lcnr:lazily-update-non-parent-goals, r=BoxyUwU
jhpratt Aug 12, 2025
25a3df8
Rollup merge of #145153 - joshtriplett:macro-kinds-plural, r=petroche…
jhpratt Aug 12, 2025
044cdf2
Rollup merge of #145206 - scrabsha:push-uxovoqzrxnlx, r=jdonszelmann
jhpratt Aug 12, 2025
d7bf066
Rollup merge of #145250 - fmease:regr-test-for-attr-meta-ice, r=jdons…
jhpratt Aug 12, 2025
3cb4a98
Rollup merge of #145269 - epage:test-env, r=jhpratt
jhpratt Aug 12, 2025
581a7ce
Rollup merge of #145289 - rejected-l:master, r=Kobzol
jhpratt Aug 12, 2025
77fe3d6
Rollup merge of #145303 - m-ou-se:payload-as-str-doc, r=jhpratt
jhpratt Aug 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add regression test for former ICE involving malformed meta items con…
…taining interpolated tokens

Co-authored-by: Jana Dönszelmann <jana@donsz.nl>
  • Loading branch information
fmease and jdonszelmann committed Aug 11, 2025
commit 378dd7c3374b15feaf08f85094f42a003c0c271b
8 changes: 8 additions & 0 deletions tests/ui/attributes/auxiliary/derive_macro_with_helper.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extern crate proc_macro;

use proc_macro::TokenStream;

#[proc_macro_derive(Derive, attributes(arg))]
pub fn derive(_: TokenStream) -> TokenStream {
TokenStream::new()
}
16 changes: 16 additions & 0 deletions tests/ui/attributes/proc_macro_in_macro.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Regression test for <https://github.com/rust-lang/rust/issues/140612>.
//@ proc-macro: derive_macro_with_helper.rs
//@ edition: 2018
//@ check-pass

macro_rules! call_macro {
($text:expr) => {
#[derive(derive_macro_with_helper::Derive)]
#[arg($text)]
pub struct Foo;
};
}

call_macro!(1 + 1);

fn main() {}
Loading