Skip to content

Commit

Permalink
Merge pull request 134 from thomcc/mirimiri
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 10, 2021
2 parents 52c2c4c + 9757e7f commit ae372df
Show file tree
Hide file tree
Showing 6 changed files with 184 additions and 103 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,13 @@ jobs:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@clippy
- run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic

miri:
name: Miri
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@nightly
with:
components: miri
- run: cargo miri test
2 changes: 1 addition & 1 deletion src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ where
}

fn source(&self) -> Option<&(dyn StdError + 'static)> {
Some(self.error.inner.error())
Some(unsafe { crate::ErrorImpl::error(self.error.inner) })
}
}

Expand Down
Loading

0 comments on commit ae372df

Please sign in to comment.