(arena: &mut Arena, s: Option<&str>)
| 1494 | } |
| 1495 | |
| 1496 | fn opt_str(arena: &mut Arena, s: Option<&str>) -> StrRef { |
| 1497 | match s { |
| 1498 | Some(s) => arena.put(s), |
| 1499 | None => NONE_STR, |
| 1500 | } |
| 1501 | } |
| 1502 | |
| 1503 | // --- a local that shadows the function a value names (#2596) --------------------- |
| 1504 |