We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
as_ref().map()
is_some().to_option()
1 parent 6ea4697 commit 8579fe6Copy full SHA for 8579fe6
src/librustc_session/session.rs
@@ -752,7 +752,7 @@ impl Session {
752
}
753
754
pub fn incr_comp_session_dir_opt(&self) -> Option<cell::Ref<'_, PathBuf>> {
755
- self.opts.incremental.is_some().to_option_with(|| self.incr_comp_session_dir())
+ self.opts.incremental.as_ref().map(|_| self.incr_comp_session_dir())
756
757
758
pub fn print_perf_stats(&self) {
0 commit comments