mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-12 07:35:07 +00:00
Use Rust 1.76 (#9897)
This commit is contained in:
parent
eb2784c495
commit
688177ff6a
6 changed files with 24 additions and 25 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue