gccrs: Statics are a coercion site
authorPhilip Herron <philip.herron@embecosm.com>
Sat, 17 Sep 2022 09:05:59 +0000 (10:05 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 31 Jan 2023 13:16:51 +0000 (14:16 +0100)
commit408ab8a6e412270996ec10369b778cfcb3946ae5
tree07a23c0dbd1b06a749bcda94ae95ee015c6e4977
parent70fc174b78a2df9cd31fb1ec054d9d8c641b78af
gccrs: Statics are a coercion site

Statics can be assigned to a block expression meaning they need to behave
similarly to constant items.

gcc/rust/ChangeLog:

* typecheck/rust-hir-type-check-toplevel.cc (TypeCheckTopLevel::visit):
Make static items behave more similarly to const items.
gcc/rust/typecheck/rust-hir-type-check-toplevel.cc