Skip to content

Instantly share code, notes, and snippets.

@killerswan
Created July 7, 2012 04:51
Show Gist options
  • Save killerswan/3064760 to your computer and use it in GitHub Desktop.
Save killerswan/3064760 to your computer and use it in GitHub Desktop.
unhelpful debug messages on a crash
$ rustc shootout-chameneos-redux.rs
shootout-chameneos-redux.rs:225:11: 225:26 warning: value assigned to `second_creature` is never read
shootout-chameneos-redux.rs:225 let mut second_creature = { name: 0, color: Red }; // of initializing to junk?
^~~~~~~~~~~~~~~
$
$
$ RUST_LOG=shootout-chameneos-redux ./shootout-chameneos-redux 50
blue + blue -> blue
blue + red -> yellow
blue + yellow -> red
red + blue -> yellow
red + red -> red
red + yellow -> blue
yellow + blue -> red
yellow + red -> blue
yellow + yellow -> yellow
rust: ~"0"
rust: ~"1"
rust: ~"0"
rust: task failed at 'option none', shootout-chameneos-redux.rs:1
rust: ~"no data available on 140141160079328, going to sleep."
rust: ~"no data available on 140141160049824, going to sleep."
rust: domain main @0x1163bd0 root task failed
rust: ~"3"
rust: task failed at 'option none', shootout-chameneos-redux.rs:1
rust: task failed at 'killed', /code/rust/src/libcore/task.rs:513
rust: ~"woke up, p.state = 3"
rust: ~"woke up, p.state = 3"
rust: ~"3"
rust: ~"3"
rust: task failed at 'option none', shootout-chameneos-redux.rs:1
rust: task failed at 'option none', shootout-chameneos-redux.rs:1
@killerswan
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment