Skip to content
New issue

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

Allow test suite to pass under miri, and fix various other miri/stacked borrow issues #134

Merged
merged 2 commits into from Jan 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
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
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