File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ Several `-Z` flags are relevant for Miri:
160
160
the program has access to host resources such as environment variables and
161
161
randomness (and, eventually, file systems and more).
162
162
* ` -Zmiri-ignore-leaks ` disables the memory leak checker.
163
- * ` -Zmiri-env-exclude=<var> ` keeps the ` var ` environment variable isolated from
163
+ * ` -Zmiri-env-exclude=<var> ` keeps the ` var ` environment variable isolated from
164
164
the host. Can be used multiple times to exclude several variables. The ` TERM `
165
165
environment variable is excluded by default.
166
166
* ` -Zmir-opt-level ` controls how many MIR optimizations are performed. Miri
@@ -171,6 +171,11 @@ Several `-Z` flags are relevant for Miri:
171
171
sets this flag per default.
172
172
* ` -Zmir-emit-retag ` controls whether ` Retag ` statements are emitted. Miri
173
173
enables this per default because it is needed for validation.
174
+ * ` -Zmiri-track-pointer-tag ` aborts interpretation with a backtrace when the
175
+ given pointer tag is popped from a borrow stack (which is where the tag
176
+ becomes invalid and any future use of it will error anyway). This helps you
177
+ in finding out why UB is happening and where in your code would be a good
178
+ place to look for it.
174
179
175
180
Moreover, Miri recognizes some environment variables:
176
181
You can’t perform that action at this time.
0 commit comments