You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This also happens with some other attributes and macros.
Full backtrace:
thread '<unnamed>' panicked at 'range end index 4 out of range for slice of length 0', library\core\src\slice\index.rs:73:5
stack backtrace:0: std::panicking::begin_panic_handler
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509/library\std\src\panicking.rs:5841:core::panicking::panic_fmt
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509/library\core\src\panicking.rs:1422:core::slice::index::slice_end_index_len_fail_rt
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509/library\core\src\slice\index.rs:733:core::ops::function::FnOnce::call_once<never$ (*)(usize,usize),tuple$<usize,usize> >
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509/library\core\src\ops\function.rs:2484:core::intrinsics::const_eval_select<tuple$<usize,usize>,never$ (*)(usize,usize),never$ (*)(usize,usize),never$>
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509/library\core\src\intrinsics.rs:26955:core::slice::index::slice_end_index_len_fail
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509/library\core\src\slice\index.rs:676:core::slice::index::impl$3::index<u8>
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509\library\core\src\slice\index.rs:3047:core::slice::index::impl$0::index
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509\library\core\src\slice\index.rs:188:proc_macro::bridge::rpc::impl$26::decode<tuple$<> >
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509\library\proc_macro\src\bridge\rpc.rs:389:proc_macro::bridge::rpc::impl$9::decode<tuple$<> >
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509\library\proc_macro\src\bridge\rpc.rs:16910:proc_macro::bridge::client::impl$79::decode<tuple$<> >
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509\library\proc_macro\src\bridge\client.rs:16611:proc_macro::bridge::impl$81::decode<tuple$<>,proc_macro::bridge::client::Span>
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509\library\proc_macro\src\bridge\rpc.rs:5712:proc_macro::bridge::rpc::impl$11::decode<tuple$<>,proc_macro::bridge::ExpnGlobals<proc_macro::bridge::client::Span>,tuple$<proc_macro::bridge::client::TokenStream,proc_macro::bridge::client::TokenStream> >
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509\library\proc_macro\src\bridge\rpc.rs:18413:proc_macro::bridge::client::run_client::closure$0<tuple$<proc_macro::bridge::client::TokenStream,proc_macro::bridge::client::TokenStream>,enum$<core::option::Option<proc_macro::bridge::client::TokenStream>,1,4294967295,Some>,proc_macro::bridge::client:
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509\library\proc_macro\src\bridge\client.rs:40914:core::panic::unwind_safe::impl$23::call_once<tuple$<>,proc_macro::bridge::client::run_client::closure_env$0<tuple$<proc_macro::bridge::client::TokenStream,proc_macro::bridge::client::TokenStream>,enum$<core::option::Option<proc_macro::bridge::client::Toke
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509\library\core\src\panic\unwind_safe.rs:27115:std::panicking::try::do_call<core::panic::unwind_safe::AssertUnwindSafe<proc_macro::bridge::client::run_client::closure_env$0<tuple$<proc_macro::bridge::client::TokenStream,proc_macro::bridge::client::TokenStream>,enum$<core::option::Option<proc_macro::br
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509\library\std\src\panicking.rs:49216:proc_macro2::impl$44::clone
17: std::panicking::try<tuple$<>,core::panic::unwind_safe::AssertUnwindSafe<proc_macro::bridge::client::run_client::closure_env$0<tuple$<proc_macro::bridge::client::TokenStream,proc_macro::bridge::client::TokenStream>,enum$<core::option::Option<proc_macro::br
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509\library\std\src\panicking.rs:45618:std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<proc_macro::bridge::client::run_client::closure_env$0<tuple$<proc_macro::bridge::client::TokenStream,proc_macro::bridge::client::TokenStream>,enum$<core::option::Option<proc_macro::bridge
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509\library\std\src\panic.rs:13719:proc_macro::bridge::client::run_client<tuple$<proc_macro::bridge::client::TokenStream,proc_macro::bridge::client::TokenStream>,enum$<core::option::Option<proc_macro::bridge::client::TokenStream>,1,4294967295,Some>,proc_macro::bridge::client::impl$14::e
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509\library\proc_macro\src\bridge\client.rs:40520:proc_macro::bridge::client::impl$14::expand2::closure$0<proc_macro::TokenStream(*)(proc_macro::TokenStream,proc_macro::TokenStream)>
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509\library\proc_macro\src\bridge\client.rs:46321:proc_macro::bridge::selfless_reify::reify_to_extern_c_fn_hrt_bridge::wrapper<proc_macro::bridge::buffer::Buffer,proc_macro::bridge::client::impl$14::expand2::closure_env$0<proc_macro::TokenStream(*)(proc_macro::TokenStream,proc_macro::TokenStream)> >
at /rustc/6dba4ed215e7a60f0a2a19c04f3f73691f89c509\library\proc_macro\src\bridge\selfless_reify.rs:6422:ZN14proc_macro_srv4abis8abi_1_6310proc_macro6bridge6server271_$LT$impl$u20$proc_macro_srv..abis..abi_1_63..proc_macro..bridge..client..Client$LT$$LP$proc_macro_srv..abis..abi_1_63..proc_macro..TokenStream$C$proc_macro_srv..abis..abi_1_63..proc_macro..Toke23: proc_macro_srv::abis::abi_1_63::Abi::expand
24: proc_macro_srv::abis::Abi::expand
25: proc_macro_srv::dylib::Expander::expand
26: proc_macro_srv::ProcMacroSrv::expand
27: proc_macro_srv::cli::run
note:Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
rust-analyzer version: (eg. output of "Rust Analyzer: Show RA Version" command) rust-analyzer version: 0.4.1129-standalone (766c5f086 2022-07-16)
I am getting this strange error from the rust analyzer:
range end index 4 out of range for slice of length 0 rust-analyzer [macro-error](https://rust-analyzer.github.io/manual.html#macro-error)
I just added the
#memoize
config before a function like this:This also happens with some other attributes and macros.
Full backtrace:
rust-analyzer version: (eg. output of "Rust Analyzer: Show RA Version" command)
rust-analyzer version: 0.4.1129-standalone (766c5f086 2022-07-16)
rustc version: (eg. output of
rustc -V
)rustc 1.64.0-nightly (6dba4ed21 2022-07-09)
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTUP_HOME
orCARGO_HOME
) default valuesThe text was updated successfully, but these errors were encountered: