diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-06-28 17:00:54 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-06-28 17:00:54 +0100 |
commit | 5b8502d862f647edb1ab41467759177983b4ddfc (patch) | |
tree | 5265d279ba60160bb1609071c59920a36609d1fa /gcc/rust/resolve/rust-ast-resolve-expr.cc | |
parent | 76aeea68f518dba8a29bd7ad82e049ad106fe8bd (diff) | |
download | gcc-5b8502d862f647edb1ab41467759177983b4ddfc.zip gcc-5b8502d862f647edb1ab41467759177983b4ddfc.tar.gz gcc-5b8502d862f647edb1ab41467759177983b4ddfc.tar.bz2 |
Remove default keyword flags in ResolveType interface
This patch also decouples handle the case where we need to resolve the full
canonical path of a TypeNoBounds such as:
struct Foo;
impl &Foo { .. }
And te canonical path for the impl block Self type is actually
&crate_name::Foo
This is used in name mangling right now.
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.cc')
-rw-r--r-- | gcc/rust/resolve/rust-ast-resolve-expr.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/resolve/rust-ast-resolve-expr.cc b/gcc/rust/resolve/rust-ast-resolve-expr.cc index f0ad567..2087bad 100644 --- a/gcc/rust/resolve/rust-ast-resolve-expr.cc +++ b/gcc/rust/resolve/rust-ast-resolve-expr.cc @@ -167,7 +167,7 @@ ResolveExpr::visit (AST::NegationExpr &expr) void ResolveExpr::visit (AST::TypeCastExpr &expr) { - ResolveType::go (expr.get_type_to_cast_to ().get (), expr.get_node_id ()); + ResolveType::go (expr.get_type_to_cast_to ().get ()); ResolveExpr::go (expr.get_casted_expr ().get (), prefix, canonical_prefix); } |