diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f8395c76..c4dd5fa1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,10 @@ jobs: run: | cd full-moon cargo test --no-default-features --features serde - - name: Clippy + - name: Clippy (default) + run: | + cargo clippy -- -D warnings + - name: Clippy (all features) run: | cargo clippy --all-features -- -D warnings - name: Rustfmt diff --git a/full-moon/src/ast/parsers.rs b/full-moon/src/ast/parsers.rs index 8be315a7..7820f44b 100644 --- a/full-moon/src/ast/parsers.rs +++ b/full-moon/src/ast/parsers.rs @@ -1088,6 +1088,7 @@ define_parser!(ParseIdentifier, TokenReference, |_, state| { #[derive(Clone, Copy, Debug, PartialEq)] enum TypeInfoContext { /// A standard type info, with no context + #[cfg(feature = "roblox")] None, /// A type inside of parentheses, either for the parameters in a `TypeInfo::Callback`, or for a `TypeInfo::Tuple` /// Variadic type infos are only permitted inside of here