summaryrefslogtreecommitdiff
path: root/compiler/PrePasses.ml
diff options
context:
space:
mode:
authorNadrieril2024-06-24 11:10:28 +0200
committerNadrieril2024-06-24 13:53:31 +0200
commit16aa66aabffeaaebc03c264b89387f010750dac3 (patch)
tree141566558cff2e1e496e32691be1dc843fc58da8 /compiler/PrePasses.ml
parent25e294f859d7899ee45e44f21d710b33d610942e (diff)
Update charon
Diffstat (limited to 'compiler/PrePasses.ml')
-rw-r--r--compiler/PrePasses.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/PrePasses.ml b/compiler/PrePasses.ml
index 5cef8b05..6bdf0a01 100644
--- a/compiler/PrePasses.ml
+++ b/compiler/PrePasses.ml
@@ -482,7 +482,7 @@ let apply_passes (crate : crate) : crate =
However, we replace the body of the function, and save an error to
report to the user the fact that we will ignore the function body *)
let fmt = Print.Crate.crate_to_fmt_env crate in
- let name = Print.name_to_string fmt f.name in
+ let name = Print.name_to_string fmt f.item_meta.name in
save_error __FILE__ __LINE__ (Some f.item_meta.span)
("Ignoring the body of '" ^ name ^ "' because of previous error");
{ f with body = None }