diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-01-26 17:28:52 +0000 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2021-01-27 10:42:43 +0000 |
commit | 244c2d2ea1a5a69ab6f7f50902512c1a7daa29c9 (patch) | |
tree | 6e7cd01cd95637ad9606570e5ee92d549bd85594 /gcc/rust/rust-session-manager.cc | |
parent | 8578c61be5061fab91fe679a15fd68ab5fad987c (diff) | |
download | gcc-244c2d2ea1a5a69ab6f7f50902512c1a7daa29c9.zip gcc-244c2d2ea1a5a69ab6f7f50902512c1a7daa29c9.tar.gz gcc-244c2d2ea1a5a69ab6f7f50902512c1a7daa29c9.tar.bz2 |
Support binding functions to LetStmts.
This supports basic function pointers in rust most of the code was already
there to infer this but this has now helped tidy it up and make it work.
Fixes #184
Diffstat (limited to 'gcc/rust/rust-session-manager.cc')
-rw-r--r-- | gcc/rust/rust-session-manager.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc index 281049d..afc238b 100644 --- a/gcc/rust/rust-session-manager.cc +++ b/gcc/rust/rust-session-manager.cc @@ -550,8 +550,8 @@ Session::parse_file (const char *filename) type_resolution (hir); // FIXME this needs an option of itself - // auto buf = Resolver::TypeResolverDump::go (hir); - // fprintf (stderr, "%s\n", buf.c_str ()); + auto buf = Resolver::TypeResolverDump::go (hir); + fprintf (stderr, "%s\n", buf.c_str ()); if (saw_errors ()) return; |