jackwener commented on PR #5440:
URL: 
https://github.com/apache/arrow-datafusion/pull/5440#issuecomment-1450144964

   BTW, there is more error in `cargo clippy` of nightly.
   
   ```
   error[E0428]: the name `ALLOC` is defined multiple times
     --> benchmarks/src/bin/tpch.rs:62:1
      |
   58 | static ALLOC: snmalloc_rs::SnMalloc = snmalloc_rs::SnMalloc;
      | ------------------------------------------------------------ previous 
definition of the value `ALLOC` here
   ...
   62 | static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ALLOC` 
redefined here
      |
      = note: `ALLOC` must be defined only once in the value namespace of this 
module
   
   error: cannot define multiple global allocators
     --> benchmarks/src/bin/tpch.rs:62:1
      |
   58 | static ALLOC: snmalloc_rs::SnMalloc = snmalloc_rs::SnMalloc;
      | ------------------------------------------------------------ previous 
global allocator defined here
   ...
   61 | #[global_allocator]
      | ------------------- in this procedural macro expansion
   62 | static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot define a 
new global allocator
      |
      = note: this error originates in the attribute macro `global_allocator` 
(in Nightly builds, run with -Z macro-backtrace for more info)
   
   ```


-- 
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