aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-session-manager.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2020-12-12 12:56:02 +0000
committerPhilip Herron <herron.philip@googlemail.com>2020-12-17 17:23:46 +0000
commit44d10d9547612b5fda3d27bb628d5d6ee79108af (patch)
treeee39563bec035ad3882c1e655a49ba55df12d47c /gcc/rust/rust-session-manager.h
parent4fb0ab7e635c65318aadf958e0e1303f3435c4e5 (diff)
downloadgcc-44d10d9547612b5fda3d27bb628d5d6ee79108af.zip
gcc-44d10d9547612b5fda3d27bb628d5d6ee79108af.tar.gz
gcc-44d10d9547612b5fda3d27bb628d5d6ee79108af.tar.bz2
TypeResolution pass now with a TyTy module
Resolution must implement the Gathering specified in the rust-dev guide. We need to be able to handle cases such as: let mut x; x = 1; or let mut x = vec!{} x.push(1) Now the TyTy module has a combine abstract method to allow the combination of types to condense down from their integral parts.
Diffstat (limited to 'gcc/rust/rust-session-manager.h')
-rw-r--r--gcc/rust/rust-session-manager.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/rust/rust-session-manager.h b/gcc/rust/rust-session-manager.h
index 2bb1dfb..4836cc8 100644
--- a/gcc/rust/rust-session-manager.h
+++ b/gcc/rust/rust-session-manager.h
@@ -37,6 +37,10 @@ class Lexer;
namespace AST {
struct Crate;
}
+// crate forward decl
+namespace HIR {
+struct Crate;
+}
/* Data related to target, most useful for conditional compilation and
* whatever. */
@@ -240,6 +244,11 @@ private:
* Performs name resolution and type resolution, maybe complete gated
* feature checking, maybe create buffered lints in future. */
void resolution (AST::Crate &crate);
+ /* This lowers the AST down to HIR and assigns all mappings from AST
+ * NodeIds back to HirIds */
+ HIR::Crate lower_ast (AST::Crate &crate);
+ /* This adds the type resolution process */
+ void type_resolution (HIR::Crate &crate);
};
} // namespace Rust