codephage2020 commented on PR #9498:
URL: https://github.com/apache/arrow-rs/pull/9498#issuecomment-3988226113

   CC @scovich @klion26 
   I've reproduced the scenario and identified the cause: Rust does not check 
for duplicate macros, only for unused ones. The following example, which is 
identical to the original code, does not trigger an error.
   
   ```rust
   fn main() {
       macro_rules! my_macro {
           () => { println!("first"); };
       }
       my_macro!();
   
       macro_rules! my_macro {
           () => { println!("second"); };
       }
       my_macro!();
   }
   ```
   output(NO WANRING)
   
   ```
   first
   second
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to