These are chat archives for rust-lang/rust

20th
Jun 2017
Venkata Giri Reddy
@venkatagiri
Jun 20 2017 18:55
I am trying to debug the rust compiler but am not sure how to get the debug logs printed. I have tried RUST_LOG=debug but I could only see INFO messages. Is there any other way to get the debug! messages?
vagrant@rust-lang rust $ RUST_LOG=debug ./build/x86_64-unknown-linux-gnu/stage2/bin/rustc  src/test/ui/type-check/unknown_type_for_closure.rs 2>&1 | tail
INFO:rustc_metadata::creader:   reqd: Explicit
INFO:rustc_metadata::creader:    rlib: /home/vagrant/repos/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-2f795c5424ac8f8c.rlib
error[E0282]: type annotations needed
  --> src/test/ui/type-check/unknown_type_for_closure.rs:12:17
   |
12 |     let x = |_| {    };
   |                 ^ cannot infer type for `_`

error: aborting due to previous error(s)
I am suspecting this is because the rustc is a release build and not debug build but I couldn't find any config to build a debug version of rustc.
Alejandro Gómez
@alexfuser
Jun 20 2017 22:00
Anyone know why this error?
thread 'main' panicked at 'called Result::unwrap() on an Err value: Error(OAuth(HttpStatus(Unauthorized)), State { next_error: None, backtrace: None })', src/libcore/result.rs:859
note: Run with RUST_BACKTRACE=1 for a backtrace.
It's in this line
twitter::update_status(&consumer, &access, "Hello").unwrap();
Anton Ugryumov
@dvec
Jun 20 2017 22:02

Error(OAuth(HttpStatus(Unauthorized))

Unauthorized