diff --git a/full-moon/src/ast/parser_structs.rs b/full-moon/src/ast/parser_structs.rs index 91dc7016..b70ba249 100644 --- a/full-moon/src/ast/parser_structs.rs +++ b/full-moon/src/ast/parser_structs.rs @@ -7,6 +7,8 @@ use super::{parsers::parse_block, Ast, Block, LuaVersion}; pub struct ParserState { errors: Vec, lexer: Lexer, + // Unused with no features enabled + #[allow(unused)] lua_version: LuaVersion, } @@ -19,6 +21,8 @@ impl ParserState { } } + // Unused with no features enabled + #[allow(unused)] pub fn lua_version(&self) -> LuaVersion { self.lua_version } diff --git a/full-moon/src/ast/parsers.rs b/full-moon/src/ast/parsers.rs index 0bf33389..e7f8e250 100644 --- a/full-moon/src/ast/parsers.rs +++ b/full-moon/src/ast/parsers.rs @@ -107,6 +107,9 @@ fn expect_block_with_end( enum StmtVariant { Stmt(ast::Stmt), + + // Used for things like Luau's `continue`, but nothing constructs it in Lua 5.1 alone. + #[allow(unused)] LastStmt(ast::LastStmt), }