pub fn register_plugins<'a>( sess: &'a Session, metadata_loader: &'a dyn MetadataLoader, register_lints: impl Fn(&Session, &mut LintStore), krate: Crate, crate_name: &str) -> Result<(Crate, LintStore)>