These are chat archives for rust-lang/rust

26th
Jul 2017
Ahmed Mohamed
@kerrhau
Jul 26 2017 06:19
hi
Joonas Koivunen
@koivunej
Jul 26 2017 11:51
@lemonxah just ran across this RE: our brief discussion yesterday: https://internals.rust-lang.org/t/comparing-dangling-pointers/3019 and the work rust-lang/rfcs#1643
Sherab Giovannini
@Shaddy
Jul 26 2017 14:16
is there any guide for debugging Rust in OSX?
had no problems in Windows, but not sure of how to do it in osx
Marcus Bizal
@marcbizal
Jul 26 2017 14:21
I use Visual Code with native debug and llvm extension. It works well for me.
There are some guides on setting up Visual Code around.
Sherab Giovannini
@Shaddy
Jul 26 2017 14:28
native debug + llvm
ok
tt
ty
Keep in mind Rusty Code isn’t applicable anymore. vscode-rust is the new thing.
Andrey Lesnikov
@ozkriff
Jul 26 2017 14:33
rls-vscode is the new thing :)
Sherab Giovannini
@Shaddy
Jul 26 2017 14:33
thats what I was about to say
xD
rls-vscode is the rust-dev-team plugin isn't it?
Marcus Bizal
@marcbizal
Jul 26 2017 14:35
Someone should write an up to date guide to setting up vs code :P
stevensonmt
@stevensonmt
Jul 26 2017 14:55
28 |         let case_sensitive = <bool as FromStr>::from_str(&args.next().unwrap()) || false;
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected bool, found enum `std::result::Result`
   |
   = note: expected type `bool`
              found type `std::result::Result<bool, std::str::ParseBoolError>`
why is unwrap() not giving the bool type in this code?
n/m had to unwrap() the from_str result too.
Aleksandr Denisov
@alerdenisov
Jul 26 2017 16:03
Hello there. Short question: what is best way to debug proc-macro code?
I got this error:
error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
  --> src/main.rs:26:10
   |
26 | #[derive(exonum_record)]
   |          ^^^^^^^^^^^^^
   |
note: first, the lifetime cannot outlive the anonymous lifetime #1 defined on the method body at 26:10...
  --> src/main.rs:26:10
   |
26 | #[derive(exonum_record)]
   |          ^^^^^^^^^^^^^
note: ...so that types are compatible (expected &&WalletApi, found &&WalletApi)
  --> src/main.rs:26:10
   |
26 | #[derive(exonum_record)]
   |          ^^^^^^^^^^^^^
   = note: but, the lifetime must be valid for the static lifetime...
note: ...so that the type `[closure@src/main.rs:26:10: 26:23 self_:&WalletApi]` will meet its required lifetime bounds
  --> src/main.rs:26:10
   |
26 | #[derive(exonum_record)]
   |          ^^^^^^^^^^^^^
and have no idea where it could be
Joonas Koivunen
@koivunej
Jul 26 2017 16:25