You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiler options can influence the MIR that gets generated. For example, the Rvalue::Len expression may be turned into a constant for -Z mir-opt-level=n where n > 0. Since the default level is 1, cargo test will not run in a mode where the code path that handles Rvalue::Len gets reached.
In order to test this case using cargo test, the code integration_test.rs needs to be enhanced to look for comments that specify which compiler options should be used to compile the test case.
Steps to Reproduce
Add an info level log statement to the code that handles Rvalue::Len and observe that MIRAI_LOG=info cargo test produces no output from this log statement.
Expected Behavior
When this issue is fixed, you can add the compiler option -Z mir-opt-level=0 to the test case array_literal.rs and you should observe a log entry from your added log statement.
What you expected to happen. For example the error message you expected to see.
Actual Results
No test coverage for Rvalue::Len when running cargo test.
The text was updated successfully, but these errors were encountered:
Issue
Compiler options can influence the MIR that gets generated. For example, the
Rvalue::Len
expression may be turned into a constant for-Z mir-opt-level=n
wheren > 0
. Since the default level is 1,cargo test
will not run in a mode where the code path that handlesRvalue::Len
gets reached.In order to test this case using
cargo test
, the code integration_test.rs needs to be enhanced to look for comments that specify which compiler options should be used to compile the test case.Steps to Reproduce
Add an info level log statement to the code that handles
Rvalue::Len
and observe thatMIRAI_LOG=info cargo test
produces no output from this log statement.Expected Behavior
When this issue is fixed, you can add the compiler option
-Z mir-opt-level=0
to the test case array_literal.rs and you should observe a log entry from your added log statement.What you expected to happen. For example the error message you expected to see.
Actual Results
No test coverage for
Rvalue::Len
when runningcargo test
.The text was updated successfully, but these errors were encountered: