Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

ICE building warp with 1.39.0-beta.2 #1561

@tomjakubowski

Description

@tomjakubowski

I was unsure whether to file here or on the rust project itself, but an ordinary cargo build doesn't fail so I'm trying here first.

Building the warp crate as a dependency with RLS 1.39.0-beta.2 reliably causes an ICE on my machine.

Sample crate:
rls-warp-ice.tar.gz

To reproduce the error, run rustup add beta, and then cd to the project directory and run rls +beta --cli.

Log:

{"message":"src/librustc/ty/context.rs:211: node type <U>::Future (hir_id=HirId { owner: DefIndex(569), local_id: 9 }) with HirId::owner DefId(0:569 ~ warp[ef68]::filter[0]::filter_fn_one[0]::{{opaque}}[0]) cannot be placed in TypeckTables with local_id_root DefId(0:566 ~ warp[ef68]::filter[0]::filter_fn_one[0])","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":"error: internal compiler error: src/librustc/ty/context.rs:211: node type <U>::Future (hir_id=HirId { owner: DefIndex(569), local_id: 9 }) with HirId::owner DefId(0:569 ~ warp[ef68]::filter[0]::filter_fn_one[0]::{{opaque}}[0]) cannot be placed in TypeckTables with local_id_root DefId(0:566 ~ warp[ef68]::filter[0]::filter_fn_one[0])\n\n"}
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:812:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.39.0-beta.2 (5752b6348 2019-09-27) running on x86_64-apple-darwin

note: compiler flags: -C debuginfo=2 --crate-type lib

note: some of the compiler flags provided by cargo are hidden

{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
{"jsonrpc":"2.0","method":"window/progress","params":{"done":true,"id":"progress_1","message":null,"percentage":null,"title":"Building"}}
{"jsonrpc":"2.0","method":"window/progress","params":{"done":null,"id":"progress_0","message":null,"percentage":null,"title":"Indexing"}}
{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"message":"could not compile `warp`.\nprocess didn't exit successfully: `/Users/tom/.rustup/toolchains/beta-x86_64-apple-darwin/bin/rls --crate-name warp /Users/tom/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/warp-0.1.20/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg 'feature=\"default\"' --cfg 'feature=\"multipart\"' --cfg 'feature=\"tungstenite\"' --cfg 'feature=\"websocket\"' -C metadata=a806adc6f97230d3 -C extra-filename=-a806adc6f97230d3 --out-dir /Users/tom/tmp/xxx/target/rls/debug/deps -L dependency=/Users/tom/tmp/xxx/target/rls/debug/deps --extern bytes=/Users/tom/tmp/xxx/target/rls/debug/deps/libbytes-b858fac7c939b188.rmeta --extern futures=/Users/tom/tmp/xxx/target/rls/debug/deps/libfutures-d393ff739e6916a2.rmeta --extern headers=/Users/tom/tmp/xxx/target/rls/debug/deps/libheaders-ac5baf66962c7641.rmeta --extern http=/Users/tom/tmp/xxx/target/rls/debug/deps/libhttp-b930a5463c7ebf21.rmeta --extern hyper=/Users/tom/tmp/xxx/target/rls/debug/deps/libhyper-5e91a7ea75e66494.rmeta --extern log=/Users/tom/tmp/xxx/target/rls/debug/deps/liblog-4fbe6ec8a87651f6.rmeta --extern mime=/Users/tom/tmp/xxx/target/rls/debug/deps/libmime-dce6ffbe9dd96773.rmeta --extern mime_guess=/Users/tom/tmp/xxx/target/rls/debug/deps/libmime_guess-de40ebdac97b5d7c.rmeta --extern multipart=/Users/tom/tmp/xxx/target/rls/debug/deps/libmultipart-b47b629d2c6ba8ab.rmeta --extern scoped_tls=/Users/tom/tmp/xxx/target/rls/debug/deps/libscoped_tls-4e2e03a0e361e1dc.rmeta --extern serde=/Users/tom/tmp/xxx/target/rls/debug/deps/libserde-af8dd93d165b83fe.rmeta --extern serde_json=/Users/tom/tmp/xxx/target/rls/debug/deps/libserde_json-be055cc0001918a9.rmeta --extern serde_urlencoded=/Users/tom/tmp/xxx/target/rls/debug/deps/libserde_urlencoded-469e16264c77e7c3.rmeta --extern tokio=/Users/tom/tmp/xxx/target/rls/debug/deps/libtokio-1aee804496919c8f.rmeta --extern tokio_io=/Users/tom/tmp/xxx/target/rls/debug/deps/libtokio_io-bda4c9260ad6b058.rmeta --extern tokio_threadpool=/Users/tom/tmp/xxx/target/rls/debug/deps/libtokio_threadpool-e8727a297323fa2f.rmeta --extern tungstenite=/Users/tom/tmp/xxx/target/rls/debug/deps/libtungstenite-cbe8bedb949d8ea9.rmeta --extern urlencoding=/Users/tom/tmp/xxx/target/rls/debug/deps/liburlencoding-911bc3985b985a10.rmeta --cap-lints allow --error-format=json --sysroot /Users/tom/.rustup/toolchains/beta-x86_64-apple-darwin` (exit code: 101)","range":{"end":{"character":0,"line":9999},"start":{"character":0,"line":0}},"severity":1}],"uri":"file:///Users/tom/tmp/xxx/Cargo.toml"}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions