summaryrefslogtreecommitdiff
path: root/compiler/PrePasses.ml
diff options
context:
space:
mode:
authorGuillaume Boisseau2024-06-24 14:27:11 +0200
committerGitHub2024-06-24 14:27:11 +0200
commite2e2e17c71ed389cd97b81f35d2bdcfad5c9c59c (patch)
tree141566558cff2e1e496e32691be1dc843fc58da8 /compiler/PrePasses.ml
parent25e294f859d7899ee45e44f21d710b33d610942e (diff)
parent16aa66aabffeaaebc03c264b89387f010750dac3 (diff)
Merge pull request #258 from Nadrieril/bump-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 }