Skip to content
Prev Previous commit
Next Next commit
compiler
  • Loading branch information
ShaharNaveh committed Jul 4, 2025
commit 8adcaa509fe85f79dcf0f9ce9391c899ff027848
2 changes: 1 addition & 1 deletion compiler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl CompileError {
}
}

pub fn python_location(&self) -> (usize, usize) {
pub const fn python_location(&self) -> (usize, usize) {
match self {
Self::Codegen(codegen_error) => {
if let Some(location) = &codegen_error.location {
Expand Down