Compare commits

...

1 Commits

Author SHA1 Message Date
d8b4e6b104 Ban stdlib trig functions 2025-06-16 20:04:07 -05:00
2 changed files with 18 additions and 0 deletions

17
rust/clippy.toml Normal file
View File

@ -0,0 +1,17 @@
disallowed-methods = [
"f64::sin",
"f64::cos",
"f64::tan",
"f64::asin",
"f64::acos",
"f64::atan",
"f64::atan2",
"f32::sin",
"f32::cos",
"f32::tan",
"f32::asin",
"f32::acos",
"f32::atan",
"f32::atan2",
# "std::vec::Vec::new",
]

View File

@ -45,6 +45,7 @@ thread_local! {
pub fn run_parser(i: TokenSlice) -> super::ParseResult {
let _stats = crate::log::LogPerfStats::new("Parsing");
let _q = f64::sin(0.12);
ParseContext::init();
let result = match program.parse(i) {