From 775daef8ceca0b19d8dc3665d3adca0c6bb18e2f Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Thu, 27 Feb 2025 16:13:55 -0800 Subject: [PATCH] wasmtime-wit-bindgen: gen is a reserved keyword in the lexer starting in 2024 edition --- crates/wit-bindgen/src/rust.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/wit-bindgen/src/rust.rs b/crates/wit-bindgen/src/rust.rs index 8efd0b045d38..d5bf7d063873 100644 --- a/crates/wit-bindgen/src/rust.rs +++ b/crates/wit-bindgen/src/rust.rs @@ -431,6 +431,7 @@ pub fn to_rust_ident(name: &str) -> String { "virtual" => "virtual_".into(), "yield" => "yield_".into(), "try" => "try_".into(), + "gen" => "gen_".into(), s => s.to_snake_case(), } }