Use Rust 1.76 (#9897)

This commit is contained in:
Micha Reiser 2024-02-08 19:20:08 +01:00 committed by GitHub
parent eb2784c495
commit 688177ff6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 24 additions and 25 deletions

View file

@ -560,21 +560,19 @@ impl From<ExprSlice> for ParenthesizedExpr {
}
}
#[cfg(target_pointer_width = "64")]
mod size_assertions {
use static_assertions::assert_eq_size;
use crate::parser::ParenthesizedExpr;
assert_eq_size!(ParenthesizedExpr, [u8; 88]);
}
#[cfg(test)]
mod tests {
use insta::assert_debug_snapshot;
use super::*;
#[cfg(target_pointer_width = "64")]
#[test]
fn size_assertions() {
// 80 with Rustc >= 1.76, 88 with Rustc < 1.76
assert!(matches!(std::mem::size_of::<ParenthesizedExpr>(), 80 | 88));
}
#[test]
fn test_parse_empty() {
let parse_ast = parse_suite("").unwrap();