Is this per crate? Is that why generate_scopes() clears it out at its end?