aboutsummaryrefslogtreecommitdiff
path: root/syntax/trivial.rs
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/trivial.rs')
-rw-r--r--syntax/trivial.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/syntax/trivial.rs b/syntax/trivial.rs
index 067e2d75..95334005 100644
--- a/syntax/trivial.rs
+++ b/syntax/trivial.rs
@@ -5,7 +5,7 @@ use proc_macro2::Ident;
use std::fmt::{self, Display};
#[derive(Copy, Clone)]
-pub enum TrivialReason<'a> {
+pub(crate) enum TrivialReason<'a> {
StructField(&'a Struct),
FunctionArgument(&'a ExternFn),
FunctionReturn(&'a ExternFn),
@@ -15,7 +15,7 @@ pub enum TrivialReason<'a> {
UnpinnedMut(&'a ExternFn),
}
-pub fn required_trivial_reasons<'a>(
+pub(crate) fn required_trivial_reasons<'a>(
apis: &'a [Api],
all: &Set<&'a Type>,
structs: &UnorderedMap<&'a Ident, &'a Struct>,
@@ -124,7 +124,7 @@ pub fn required_trivial_reasons<'a>(
// Context:
// "type {type} should be trivially move constructible and trivially destructible in C++ to be used as {what} in Rust"
// "needs a cxx::ExternType impl in order to be used as {what}"
-pub fn as_what<'a>(name: &'a Pair, reasons: &'a [TrivialReason]) -> impl Display + 'a {
+pub(crate) fn as_what<'a>(name: &'a Pair, reasons: &'a [TrivialReason]) -> impl Display + 'a {
struct Description<'a> {
name: &'a Pair,
reasons: &'a [TrivialReason<'a>],