Closed
Description
I am reading codes of rust-vmm project, there is a code snippet like in the following:
#[cfg(not(miri))]
if addr == libc::MAP_FAILED {
return Err(Error::Mmap(io::Error::last_os_error()));
}
#[cfg(miri)]
if self.size == 0 {
return Err(Error::Mmap(io::Error::from_raw_os_error(libc::EINVAL)));
}
Note that there are both cfg(miri)
and cfg(not(miri))
.
However, I found that PR #15284 has enabled cfg(miri)
in analysis by default.
Currently my editor deactivates all the code blocks annotated with #[cfg(not(miri))]
, and I do not know how to activate those blocks or disable cfg(miri)
.

Is there any possible method in RA to activate code blocks with #[cfg(not(miri))]
?