mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 12:07:40 +00:00

Fixes #132203 This is a compatibility hack, because I think the new behavior is better. When an A `include_str!` B, and B `include_str!` C, the path to C should be resolved relative to B, not A. That's how `include!` itself works, so that's how `include_str!` with should work.
11 lines
232 B
Rust
11 lines
232 B
Rust
//@ edition:2024
|
|
//@ compile-flags:-Z unstable-options
|
|
#![crate_name="extern_macros"]
|
|
#[macro_export]
|
|
macro_rules! attrs_on_struct {
|
|
( $( #[$attr:meta] )* ) => {
|
|
$( #[$attr] )*
|
|
pub struct ExpandedStruct;
|
|
}
|
|
}
|