Commit Graph

4 Commits

Author SHA1 Message Date
Josh Triplett
ea0e00c573 mbe: Add tests for unsafe attr invocation 2025-10-01 16:19:39 -07:00
Josh Triplett
ba231db3f3 Detect and report macro kind mismatches early, and more precisely
This eliminates the case in `failed_to_match_macro` to check for a
function-like invocation of a macro with no function-like rules.

Instead, macro kind mismatches now result in an unresolved macro, and we
detect this case in `unresolved_macro_suggestions`, which now carefully
distinguishes between a kind mismatch and other errors.

This also handles cases of forward-referenced attributes and cyclic
attributes.

Expand test coverage to include all of these cases.
2025-08-12 09:24:45 -07:00
Josh Triplett
1500195799 mbe: Add a test for calling a macro with no function-like rules 2025-08-08 11:01:12 -07:00
Josh Triplett
bd5206ee18 mbe: Add test for attribute expansion with compile_error! 2025-08-08 11:01:12 -07:00