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

[Chapter 6.5] -Zmiri-tag-raw-pointers does not exist anymore #298

Open
el-sambal opened this issue Apr 24, 2024 · 0 comments
Open

[Chapter 6.5] -Zmiri-tag-raw-pointers does not exist anymore #298

el-sambal opened this issue Apr 24, 2024 · 0 comments

Comments

@el-sambal
Copy link

In chapter 6.5 of the book, it says

In fact, this messiness is why there is an extra-experimental extra-strict mode of miri: -Zmiri-tag-raw-pointers.

To enable it, we need to pass it via a MIRIFLAGS environment variable like this:

MIRIFLAGS="-Zmiri-tag-raw-pointers" cargo +nightly-2022-01-21 miri test
Or like this on Windows, where you need to just set the variable globally:

$env:MIRIFLAGS="-Zmiri-tag-raw-pointers"
cargo +nightly-2022-01-21 miri test

Today I tried running
MIRIFLAGS="-Zmiri-tag-raw-pointers" cargo +nightly miri test
but Miri says
error: unknown unstable option: miri-tag-raw-pointers

According to https://www.ralfj.de/blog/2022/07/02/miri.html, the option miri-tag-raw-pointers does not exist anymore and is currently on-by-default. Maybe this information could be included in the book.

Thanks for having made/making such a useful educational resource!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant