rust-analyzer / lsp-server

Apache License 2.0
158 stars 19 forks source link

build error: error[E0658]: use of unstable library feature 'panic_any' #33

Closed tanj closed 3 years ago

tanj commented 3 years ago

Was trying to build texlab and got this error.

 % cargo install --path ./
  Installing texlab v3.0.0 (C:\dev\rust\texlab)
    Updating crates.io index
    Updating git repository `https://github.com/cormacrelf/citeproc-rs`
   Compiling markup5ever v0.9.0
   Compiling lsp-server v0.5.1
   Compiling texlab v3.0.0 (C:\dev\rust\texlab)
   Compiling xml5ever v0.16.1
   Compiling html5ever v0.25.1
error[E0658]: use of unstable library feature 'panic_any'
  --> C:\Users\jtebokkel\.cargo\registry\src\github.com-1ecc6299db9ec823\lsp-server-0.5.1\src\stdio.rs:60:17
   |
60 |                 std::panic::panic_any(err)
   |                 ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #78500 <https://github.com/rust-lang/rust/issues/78500> for more information

error[E0658]: use of unstable library feature 'panic_any'
  --> C:\Users\jtebokkel\.cargo\registry\src\github.com-1ecc6299db9ec823\lsp-server-0.5.1\src\stdio.rs:67:17
   |
67 |                 std::panic::panic_any(err);
   |                 ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #78500 <https://github.com/rust-lang/rust/issues/78500> for more information

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
error: could not compile `lsp-server`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `texlab v3.0.0 (C:\dev\rust\texlab)`, intermediate artifacts can be found at `C:\dev\rust\texlab\target`
bjorn3 commented 3 years ago

Which version of rustc are you using? panic_any has been stabilized in rust 1.51.0.

tanj commented 3 years ago
 % rustc --version
rustc 1.50.0 (cb75ad5db 2021-02-10)

Did a rustup update and now it builds fine. (rustc 1.52.1) Sorry for the erroneous report.