aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-path.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-01-08 17:18:00 +0000
committerPhilip Herron <herron.philip@googlemail.com>2021-01-10 15:59:22 +0000
commit9a3ad294e0af5ed45b53c340382a7806fb150bdf (patch)
tree81458d62a2191b38be775026f2f8583d3ca7c2ee /gcc/rust/ast/rust-path.h
parent0f42a240e53e932de0ae4799d54fe0bd15d06047 (diff)
downloadgcc-9a3ad294e0af5ed45b53c340382a7806fb150bdf.zip
gcc-9a3ad294e0af5ed45b53c340382a7806fb150bdf.tar.gz
gcc-9a3ad294e0af5ed45b53c340382a7806fb150bdf.tar.bz2
Add in a check for unused decls within ribs.
This lead to cleanup of the name resolver as the usage of mappings means that in a given rib if there are no references to a decl NodeId that means it was not used. To get on par with the offical rust compiler it should be allowed to have a reference where the name was assigned but not used but this might be a seperate pass.
Diffstat (limited to 'gcc/rust/ast/rust-path.h')
0 files changed, 0 insertions, 0 deletions