Rust snippets, lua diagnostics, clang fixes