fn filter<'a>(sess: &Session, path: Option<&'a Path>) -> Option<&'a Path>