Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #157346 - dianqk:gvn-nest-ref, r=cjgillot
GVN: Don't assume nested shared references are read-only.
Fixes https://github.com/rust-lang/rust/issues/155884.
https://github.com/rust-lang/rust/pull/150485 only checks the type, whether it is a reference, which is not enough. The PR extends to other types.
cc @RalfJung @saethlin
r? @cjgillot