玩rust进服务器显示eac,thread 'rustc' panicked at 'called

在使用nightly版Rust编译器(版本1.47.0-nightly(8e21bd063 2020-08-14))时,出现编译错误。当尝试编译依赖naga库的项目时,rustc崩溃并报告在match_branches.rs文件中调用Option::unwrap()时遇到了None值。错误仅在特定版本的编译器中出现,不包括之前的nightly-2020-08-13及其更早版本。
摘要由CSDN通过智能技术生成

This issue appears in the nightly compiler since toolchain version nightly-2020-08-14 (rustc 1.47.0-nightly (81dc88f88 2020-08-13)). It does not appear with toolchain nightly-2020-08-13 (rustc 1.47.0-nightly (576d27c5a 2020-08-12)) or earlier.

Code

Create an empty project and add the following dependency.

[dependencies]

naga = {git = "https://github.com/gfx-rs/naga", rev = "1eb637038dd15fc1dad770eca8e6943424dbc122"}

Upon cargo run, rustc panics with the below output.

Meta

rustc --version --verbose:

rustc 1.47.0-nightly (8e21bd063 2020-08-14)

binary: rustc

commit-hash: 8e21bd0633b8d970646ee6eb706c9e8acfad19af

commit-date: 2020-08-14

host: x86_64-pc-windows-msvc

release: 1.47.0-nightly

LLVM version: 10.0

Error output

Compiling naga v0.1.0 (https://github.com/gfx-rs/naga?rev=1eb637038dd15fc1dad770eca8e6943424dbc122#1eb63703)

Running `rustc --crate-name naga --edition=2018 C:\Users\Chris\.cargo\git\checkouts\naga-dbb2b19faed49210\1eb6370\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -Cembed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" -C metadata=b78cb55e6bbf7f02 -C extra-filename=-b78cb55e6bbf7f02 --out-dir C:\Users\Chris\Development\ice-test-2020-08-15\target\debug\deps -L dependency=C:\Users\Chris\Development\ice-test-2020-08-15\target\debug\deps --extern bitflags=C:\Users\Chris\Development\ice-test-2020-08-15\target\debug\deps\libbitflags-b3aa381b8c8a158c.rmeta --extern fxhash=C:\Users\Chris\Development\ice-test-2020-08-15\target\debug\deps\libfxhash-abd942eca949d6c8.rmeta --extern log=C:\Users\Chris\Development\ice-test-2020-08-15\target\debug\deps\liblog-5edde9ce5ee6a1cc.rmeta --extern num_traits=C:\Users\Chris\Development\ice-test-2020-08-15\target\debug\deps\libnum_traits-55b459a9

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值