Skip to content

Commit 0f99133

Browse files
ZhongRuoyuLicenser
authored andcommitted
Fix invalid macro_export usage
This fixes build failure with Rust 1.69+. According to [^1], "the only valid argument is `#[macro_export(local_inner_macros)]` or no argument (`#[macro_export]`)". The check for invalid `#[macro_export]` arguments was added in rust-lang/rust#107911 and first released in Rust 1.69.0. [^1]: https://github.com/rust-lang/rust/blob/1.69.0/compiler/rustc_lint_defs/src/builtin.rs#L4129 Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
1 parent cfe7432 commit 0f99133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub async fn load_troy_file(world: &World, file_name: &str) -> Result<usize> {
142142
}
143143

144144
/// Logs but ignores an error
145-
#[macro_export(log_error)]
145+
#[macro_export]
146146
#[doc(hidden)]
147147
macro_rules! log_error {
148148
($maybe_error:expr, $($args:tt)+) => (

0 commit comments

Comments
 (0)