We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustc panics destructuring a struct-like enum variant in the following code (using this library: https://github.com/netvl/xml-rs):
extern crate xml; use xml::reader::events::XmlEvent; fn main() { let e = XmlEvent::ProcessingInstruction { name: "Test".to_string(), data: None }; match e { XmlEvent::ProcessingInstruction { name, data } => { println!("name: {}, data: {}", name, data); }, _ => {} } }
the following, however, does not panic for some reason:
extern crate xml; use xml::reader::events::XmlEvent; fn main() { match (XmlEvent::ProcessingInstruction { name: "Test".to_string(), data: None }) { XmlEvent::ProcessingInstruction { name, data } => { println!("name: {}, data: {}", name, data); }, _ => {} } }
task 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libcore/option.rs:358 stack backtrace: 1: 0x7fa54ecbbe50 - rt::backtrace::imp::write::hf87c140cfcd95fbaBly 2: 0x7fa54ecbf0a0 - failure::on_fail::h343c4b97464b676eZNy 3: 0x7fa54e911fa0 - unwind::begin_unwind_inner::hb4b9831d2f5e86936Qc 4: 0x7fa54e911bd0 - unwind::begin_unwind_fmt::h5c8826b0094c4275hOc 5: 0x7fa54e911b90 - rust_begin_unwind 6: 0x7fa54e95a4a0 - panicking::panic_fmt::h55316e4e118a4d4bcxl 7: 0x7fa54e9581a0 - panicking::panic::h0e0d0e8df2dbf5d1eul 8: 0x7fa54cf64950 - middle::borrowck::move_data::fragments::add_fragment_siblings::hf1c2017286e03984bYg 9: 0x7fa54cf61970 - middle::borrowck::move_data::fragments::fixup_fragment_sets::h5d485254dfae5a72cFg 10: 0x7fa54cf6bb30 - middle::borrowck::move_data::FlowedMoveData<'a, 'tcx>::new::h992ddcd9e1966007F9h 11: 0x7fa54cf76a60 - middle::borrowck::build_borrowck_dataflow_data::ha030304e52c4fd74Pui 12: 0x7fa54cf73ae0 - middle::borrowck::borrowck_fn::h5c20904efff1f8a4Nri 13: 0x7fa54cf75b80 - visit::walk_item::h10222699424413289430 14: 0x7fa54cf748e0 - visit::walk_mod::h7223407092731541154 15: 0x7fa54cf742e0 - middle::borrowck::check_crate::haaa04dfbd8f4f7fbjki 16: 0x7fa54f1309e0 - util::common::time::h6027610953602738173 17: 0x7fa54f0f1300 - driver::phase_3_run_analysis_passes::h63031984c677effauta 18: 0x7fa54f0e0100 - driver::compile_input::h022976239e8f5a3cpba 19: 0x7fa54f17cd80 - run_compiler::h2b243518ea560709z4b 20: 0x7fa54f17cc70 - run::closure.21242 21: 0x7fa54f18e670 - task::TaskBuilder::try_future::closure.22690 22: 0x7fa54ec94410 - task::TaskBuilder::spawn_internal::closure.31179 23: 0x7fa54e90fd70 - task::Task::spawn::closure.5765 24: 0x7fa54e96d280 - rust_try_inner 25: 0x7fa54e96d270 - rust_try 26: 0x7fa54e90fe50 - unwind::try::ha36bc8815a761f13pFc 27: 0x7fa54e90fc10 - task::Task::run::h24525a73fb4c9bb3fOb 28: 0x7fa54e90f800 - task::Task::spawn::closure.5741 29: 0x7fa54e911250 - thread::thread_start::ha943fdda31374bc3i6b 30: 0x7fa5498110c0 - start_thread 31: 0x7fa54e5d5ec9 - __clone 32: 0x0 - <unknown>
rustc 0.13.0-nightly (8bca470 2014-12-08 00:12:30 +0000) binary: rustc commit-hash: 8bca470 commit-date: 2014-12-08 00:12:30 +0000 host: x86_64-unknown-linux-gnu release: 0.13.0-nightly
Ubuntu 14.04.1
The text was updated successfully, but these errors were encountered:
I'm now confident this is a duplicate of #19340.
Sorry, something went wrong.
No branches or pull requests
rustc panics destructuring a struct-like enum variant in the following code (using this library: https://github.com/netvl/xml-rs):
the following, however, does not panic for some reason:
rustc 0.13.0-nightly (8bca470 2014-12-08 00:12:30 +0000)
binary: rustc
commit-hash: 8bca470
commit-date: 2014-12-08 00:12:30 +0000
host: x86_64-unknown-linux-gnu
release: 0.13.0-nightly
Ubuntu 14.04.1
The text was updated successfully, but these errors were encountered: