Unsafe lifetime

This commit is contained in:
2026-06-16 03:59:28 +02:00
parent d7e5e72bbb
commit f07bde8d3f
5 changed files with 48 additions and 10 deletions
+4 -1
View File
@@ -82,6 +82,7 @@ module_program = {
visibility = { "pub" ~ ("(" ~ static_path ~ ")")? }
mutable = { "mut" }
unsafe_kw = { "unsafe" }
// ======================================================
// GENERICS
@@ -104,8 +105,10 @@ path_type = {
static_path ~ generics?
}
ref_lifetime = { lifetime | unsafe_kw }
ref_type = {
"*" ~ lifetime? ~ mutable? ~ type_expr
"*" ~ ref_lifetime? ~ mutable? ~ type_expr
}
dyn_type = {