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
I have been following the OS tutorial from https://os.phil-opp.com/, and after turning of the standard library and setting up my own panic_handler I ended up with the following code:
the intent is that the first one is active for normal use and the bottom one is only active when running something like cargo test. However rust-analyzer is giving me a hint that the first function is inactive code since: code is inactive due to #[cfg] directives: test is enabled.
I've checked, and it's definitely running the right panic handler for each version, so I think rust-analyzer is giving me a hint for no reason here.
The text was updated successfully, but these errors were encountered:
I have been following the OS tutorial from https://os.phil-opp.com/, and after turning of the standard library and setting up my own panic_handler I ended up with the following code:
the intent is that the first one is active for normal use and the bottom one is only active when running something like
cargo test
. However rust-analyzer is giving me a hint that the first function is inactive code since:code is inactive due to #[cfg] directives: test is enabled
.I've checked, and it's definitely running the right panic handler for each version, so I think rust-analyzer is giving me a hint for no reason here.
The text was updated successfully, but these errors were encountered: