yjshen opened a new pull request, #2198:
URL: https://github.com/apache/arrow-datafusion/pull/2198
# Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases. You can
link an issue to this PR using the GitHub syntax. For example `Closes #123`
indicates that this PR will close issue #123.
-->
Closes #.
# Rationale for this change
Encounter the need for nightly while running `datafusion-cli`, pin
`lock_api` version to `0.4.6` could fix.
```
error[E0658]: trait bounds other than `Sized` on const fn parameters are
unstable
-->
/Users/shenyijie/.cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.7/src/mutex.rs:150:6
|
150 | impl<R: RawMutex, T> Mutex<R, T> {
| ^
...
154 | pub const fn new(val: T) -> Mutex<R, T> {
| --------------------------------------- function declared as const
here
|
= note: see issue #93706
<https://github.com/rust-lang/rust/issues/93706> for more information
= help: add `#![feature(const_fn_trait_bound)]` to the crate attributes
to enable
error[E0658]: trait bounds other than `Sized` on const fn parameters are
unstable
-->
/Users/shenyijie/.cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.7/src/remutex.rs:231:6
|
231 | impl<R: RawMutex, G: GetThreadId, T> ReentrantMutex<R, G, T> {
| ^
...
235 | pub const fn new(val: T) -> ReentrantMutex<R, G, T> {
| --------------------------------------------------- function
declared as const here
|
= note: see issue #93706
<https://github.com/rust-lang/rust/issues/93706> for more information
= help: add `#![feature(const_fn_trait_bound)]` to the crate attributes
to enable
error[E0658]: trait bounds other than `Sized` on const fn parameters are
unstable
-->
/Users/shenyijie/.cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.7/src/remutex.rs:231:19
|
231 | impl<R: RawMutex, G: GetThreadId, T> ReentrantMutex<R, G, T> {
| ^
...
235 | pub const fn new(val: T) -> ReentrantMutex<R, G, T> {
| --------------------------------------------------- function
declared as const here
|
= note: see issue #93706
<https://github.com/rust-lang/rust/issues/93706> for more information
= help: add `#![feature(const_fn_trait_bound)]` to the crate attributes
to enable
error[E0658]: trait bounds other than `Sized` on const fn parameters are
unstable
-->
/Users/shenyijie/.cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.7/src/rwlock.rs:367:6
|
367 | impl<R: RawRwLock, T> RwLock<R, T> {
| ^
...
371 | pub const fn new(val: T) -> RwLock<R, T> {
| ---------------------------------------- function declared as
const here
|
= note: see issue #93706
<https://github.com/rust-lang/rust/issues/93706> for more information
= help: add `#![feature(const_fn_trait_bound)]` to the crate attributes
to enable
For more information about this error, try `rustc --explain E0658`.
```
--
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]