aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy_tests/rust_tidy.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-03-21 18:52:46 +0100
committerMartin Robinson <mrobinson@igalia.com>2023-03-22 15:37:56 +0100
commitec9cbeefd88176e4fb85d1066beafa9eec19d51e (patch)
tree2dda9ca8c59bce80bec9b0c5cb9d93c8ecb21cf1 /python/tidy/servo_tidy_tests/rust_tidy.rs
parent259ccff4919d5a764fc38cd8ebb0f7eaa0ad12c0 (diff)
downloadservo-ec9cbeefd88176e4fb85d1066beafa9eec19d51e.tar.gz
servo-ec9cbeefd88176e4fb85d1066beafa9eec19d51e.zip
Merge forbidden panic check into test-tidy
This cleans up the GitHub actions yaml a bit and ensures that developers are running this check locally before submitting changes. In addition, it allows adding tests for this check. Finally, this change fixes the tidy tests by upgrading voluptuous for Python 3.10 as well as by reverting an inadvertent change for NixOS compatibility on one of the dummy testing files.
Diffstat (limited to 'python/tidy/servo_tidy_tests/rust_tidy.rs')
-rw-r--r--python/tidy/servo_tidy_tests/rust_tidy.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy_tests/rust_tidy.rs b/python/tidy/servo_tidy_tests/rust_tidy.rs
index 1bd0cfa3d27..abd533d5807 100644
--- a/python/tidy/servo_tidy_tests/rust_tidy.rs
+++ b/python/tidy/servo_tidy_tests/rust_tidy.rs
@@ -78,4 +78,8 @@ impl test {
} else {
let xif = 42 in { xif } // Should not trigger
}
+
+ let option = Some(3);
+ println!("{}", option.unwrap());
+ panic!("What a way to end.");
}