component bindgen: accept strs as well as identifiers for wit identifiers (#5600)
This is required because not all wit identifiers are Rust identifiers, so we can smuggle the invalid ones inside quotes.
This commit is contained in:
@@ -373,7 +373,9 @@ mod record_error {
|
||||
record-error: func(a: float64) -> result<float64, e2>
|
||||
}
|
||||
}",
|
||||
trappable_error_type: { imports::e2: TrappableE2 }
|
||||
// Literal strings can be used for the interface and typename fields instead of
|
||||
// identifiers, because wit identifiers arent always Rust identifiers.
|
||||
trappable_error_type: { "imports"::"e2": TrappableE2 }
|
||||
});
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user