pub(crate) fn create_lint_store(
    sess: &Session,
    register_lints: Option<impl Fn(&Session, &mut LintStore)>
) -> LintStore