Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nils Fitinghoff
why3
Commits
09794e8a
Commit
09794e8a
authored
Nov 16, 2018
by
nilfit
Browse files
Options
Downloads
Patches
Plain Diff
remove print_todo
parent
780895af
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mlw/rust_printer.ml
+6
-4
6 additions, 4 deletions
src/mlw/rust_printer.ml
with
6 additions
and
4 deletions
src/mlw/rust_printer.ml
+
6
−
4
View file @
09794e8a
...
...
@@ -863,8 +863,6 @@ module Print = struct
let
protect_on
b
s
=
if
b
then
"("
^^
s
^^
")"
else
s
let
print_todo
fmt
msg
=
fprintf
fmt
"TODO(%s)"
msg
let
rec
print_list2
sep
sep_m
print1
print2
fmt
(
l1
,
l2
)
=
match
l1
,
l2
with
|
[
x1
]
,
[
x2
]
->
...
...
@@ -1025,7 +1023,8 @@ module Print = struct
let
print_type_def
info
fmt
(
td
:
t_defn
)
=
let
pub
=
if
not
td
.
priv
then
"pub "
else
""
in
match
td
.
def
with
|
None
->
print_todo
fmt
"panic!(
\"
None type def
\"
);"
|
None
->
raise
(
TODO
"None type def"
)
(* TODO error out in translation instead of passing it along this far *)
|
Some
(
Denum
csl
)
->
let
print_constr
fmt
(
id
,
tl
)
=
match
tl
with
...
...
@@ -1051,9 +1050,12 @@ module Print = struct
|
Dfn
fn
->
print_fn
info
fmt
fn
|
Dstatic
(
pv
,
e
)
->
(*
let id = pv_name pv in
fprintf fmt "static %a: %a = %a;" (print_IDENT info) id
print_todo
"ty from pv"
(
print_expr
info
)
e
(??) pv (print_expr info) e
*)
raise
(
TODO
"Dstatic ty"
)
|
Dtype
td
->
print_type_def
info
fmt
td
|
Dmodule
(
s
,
dl
)
->
fprintf
fmt
"mod %s {
\n
%a}
\n
"
s
(
print_list
newline
(
print_def
info
))
dl
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment