[meta] Make more things pub(crate) instead of pub;

This could help the compiler find unused fields/methods. It didn't find any
during this migration.
This commit is contained in:
Benjamin Bouvier
2019-09-17 10:57:28 +02:00
parent c2587c9d61
commit f0244516c5
16 changed files with 38 additions and 38 deletions

View File

@@ -18,7 +18,7 @@ fn enc(inst: impl Into<InstSpec>, recipe: EncodingRecipeNumber, bits: u16) -> En
EncodingBuilder::new(inst.into(), recipe, bits)
}
pub struct PerCpuModeEncodings<'defs> {
pub(crate) struct PerCpuModeEncodings<'defs> {
pub inst_pred_reg: InstructionPredicateRegistry,
pub enc32: Vec<Encoding>,
pub enc64: Vec<Encoding>,

View File

@@ -18,7 +18,7 @@ use crate::shared::Definitions as SharedDefinitions;
use super::recipes::{RecipeGroup, Template};
pub struct PerCpuModeEncodings {
pub(crate) struct PerCpuModeEncodings {
pub enc32: Vec<Encoding>,
pub enc64: Vec<Encoding>,
pub recipes: Recipes,

View File

@@ -13,7 +13,7 @@ use crate::shared::Definitions as SharedDefinitions;
/// Helper data structure to create recipes and template recipes.
/// It contains all the recipes and recipe templates that might be used in the encodings crate of
/// this same directory.
pub struct RecipeGroup<'builder> {
pub(crate) struct RecipeGroup<'builder> {
/// Memoized format pointer, to pass it to builders later.
formats: &'builder FormatRegistry,