[meta] Add pub(crate) to more types;

This caught one unused method, allowing us to remove it.
This commit is contained in:
Benjamin Bouvier
2019-10-01 18:19:37 +02:00
parent d3ef80147b
commit 566a143634
5 changed files with 24 additions and 23 deletions

View File

@@ -7,7 +7,7 @@ use crate::cdsl::regs::IsaRegs;
use crate::shared::Definitions as SharedDefinitions;
/// An helper to create recipes and use them when defining the RISCV encodings.
pub struct RecipeGroup<'formats> {
pub(crate) struct RecipeGroup<'formats> {
/// Memoized format registry, to pass it to the builders.
formats: &'formats FormatRegistry,

View File

@@ -164,7 +164,7 @@ fn replace_nonrex_constraints(
/// Encodings, in encodings.rs. This is an idiosyncrasy of the x86 meta-language, and could be
/// reconsidered later.
#[derive(Clone)]
pub struct Template<'builder> {
pub(crate) struct Template<'builder> {
/// Mapping of format indexes to format data, used in the build() method.
formats: &'builder FormatRegistry,