racer
racer copied to clipboard
Panic: on function parameter
#![allow(warnings)]
#![feature(async_await)]
use std::io;
use futures::prelude::*;
use futures::StreamExt;
use futures::executor::{self, ThreadPool};
use futures::io::AsyncWriteExt;
use futures::io::AsyncReadExt;
use futures::task::{SpawnExt};
use hyper::server::*;
use hyper::server::conn::*;
use hyper::service::service_fn_ok;
use hyper::{Body, Request, Response};
use romio::tcp::{TcpListener, TcpStream};
async fn listen() -> io::Result<()> {
let mut listener = TcpListener::bind(&"127.0.0.1:8000".parse().unwrap())?;
let mut streams = listener.incoming();
while let Some(stream) = streams.next().await {
let service = service_fn_ok(|req: Request<Body>| {
Response::new(Body::from("Hello, World!"))
});
}
Ok(())
}
fn tag(in: String) {
}
fn main() {
}
racer complete 32 8 src/main.rs
results in ERROR 2019-07-19T03:36:40.729973000Z: racer: Search thread panicked: Any
. I tried to minify the example but any code that I remove now avoids the panic for some reason.
Yeah, I've found this to happen quite often. Currently, it happens in nearly every function.
EDIT: Ended up disabling it now, was unable to reproduce on a small set of code, can't really find what causes it.