getsentry / pdb

A parser for Microsoft PDB (Program Database) debugging information
https://docs.rs/pdb/
Apache License 2.0
368 stars 68 forks source link

Fixes compilation on rust 1.37.0 #77

Closed ko1N closed 4 years ago

ko1N commented 4 years ago

Compiling on rust 1.37.0 gives the following error:

error[E0008]: cannot bind by-move into a pattern guard
   --> src/msf/mod.rs:393:28
    |
393 |             Error::IoError(x) if x.kind() == std::io::ErrorKind::UnexpectedEof => {
    |                            ^ moves value into pattern guard

error: aborting due to previous error

Modifying the match statement slightly will let rust 1.37.0 as well as 1.40.0 compile the pdb crate successfully.

willglynn commented 4 years ago

Good catch, thanks!