diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml
index 13949638..88aab426 100644
--- a/.github/workflows/doc.yml
+++ b/.github/workflows/doc.yml
@@ -22,7 +22,9 @@ jobs:
run: rustup update --no-self-update stable
- name: Build Documentation
- run: cargo doc --all --no-deps
+ run: |
+ export RUSTDOCFLAGS="--no-check"
+ cargo doc --all --no-deps
- name: Doc Index Page Redirection
run: echo '' > ./target/doc/index.html
diff --git a/src/IR/ir.rs b/src/IR/ir.rs
index 73f7bef7..2f0aa9f7 100644
--- a/src/IR/ir.rs
+++ b/src/IR/ir.rs
@@ -7,11 +7,11 @@ macro_rules! IrTypeWith3 {
#[derive(Debug, Clone)]
pub struct $name<$param1, $param2, $param3> {
/// first inner value
- pub inner1: $param1,
+ pub(crate) inner1: $param1,
/// second inner value
- pub inner2: $param2,
+ pub(crate) inner2: $param2,
/// third inner value
- pub inner3: $param3,
+ pub(crate) inner3: $param3,
}
@@ -62,7 +62,7 @@ macro_rules! IrTypeWith1 {
#[derive(Debug, Clone)]
pub(crate) struct $name<$param1> {
/// inner value
- pub inner1: $param1,
+ pub(crate) inner1: $param1,
}
diff --git a/src/lib.rs b/src/lib.rs
index 90ac257c..ddd7ba6d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,5 +1,7 @@
#![allow(non_snake_case)]
#![warn(missing_docs)]
+#![warn(unreachable_pub)]
+#![allow(clippy::redundant_field_names)]
#![allow(rustdoc::invalid_html_tags)]
//! Ygen - Yet another Code Generator