(node: &ast::StmtAssert)
| 1968 | } |
| 1969 | |
| 1970 | fn stmt_assert_fields(node: &ast::StmtAssert) -> StmtAssertFields<'_> { |
| 1971 | let ast::StmtAssert { |
| 1972 | test, |
| 1973 | msg, |
| 1974 | range: _, |
| 1975 | node_index: _, |
| 1976 | } = node; |
| 1977 | StmtAssertFields { |
| 1978 | test: test.into(), |
| 1979 | msg: msg.as_ref().map(Into::into), |
| 1980 | } |
| 1981 | } |
| 1982 | |
| 1983 | #[derive(Debug, PartialEq, Eq, Hash)] |
| 1984 | struct StmtImportFields<'a> { |