diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-07-08 14:45:56 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2021-07-10 21:31:35 +0100 |
commit | 97b917f8d287b362fabf7b8da0796237bb8e16d1 (patch) | |
tree | e770d1e29b40090775bb63cde68a5a46fc86727e /gcc/rust/resolve/rust-ast-resolve-toplevel.h | |
parent | 99355534ef44f316ec2b72f4776e08cf01169715 (diff) | |
download | gcc-97b917f8d287b362fabf7b8da0796237bb8e16d1.zip gcc-97b917f8d287b362fabf7b8da0796237bb8e16d1.tar.gz gcc-97b917f8d287b362fabf7b8da0796237bb8e16d1.tar.bz2 |
Traits must inherit the prefix trait path
TraitItems must inherent the Trait name such that the items are prefixed
accordingly:
trait foo { // Path foo
fn bar().. // Path foo::bar
}
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-toplevel.h')
-rw-r--r-- | gcc/rust/resolve/rust-ast-resolve-toplevel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/resolve/rust-ast-resolve-toplevel.h b/gcc/rust/resolve/rust-ast-resolve-toplevel.h index 44f5b22..9f0d816 100644 --- a/gcc/rust/resolve/rust-ast-resolve-toplevel.h +++ b/gcc/rust/resolve/rust-ast-resolve-toplevel.h @@ -183,7 +183,7 @@ public: }); for (auto &item : trait.get_trait_items ()) - ResolveTopLevelTraitItems::go (item.get ()); + ResolveTopLevelTraitItems::go (item.get (), path); } private: |