aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.h
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2024-11-01 14:07:54 +0000
committerPhilip Herron <philip.herron@embecosm.com>2024-11-01 15:19:22 +0000
commitc5ae11b632a081650be2dbaa6f1a9f30233aef04 (patch)
treebaa21f45015ea4f015c3d0c75eb5ac3bfd12a04d /gcc/cfgexpand.h
parentd800490dd996bdcb50bc9159801c2bb72c1c116b (diff)
downloadgcc-c5ae11b632a081650be2dbaa6f1a9f30233aef04.zip
gcc-c5ae11b632a081650be2dbaa6f1a9f30233aef04.tar.gz
gcc-c5ae11b632a081650be2dbaa6f1a9f30233aef04.tar.bz2
gccrs: add test case to show method resolution is working
The issue here was that the impl block for Cell<T> defines that T must have the bound of Copy implemented. But simultaneously if you do an deref you get direct access to the unsafe cell which also defines a get method so these are two valid ways of accessing the method in question but when Copy is implementet the simplest case is prefered so it does resolve to Cell<T>::get. Fixes #3033 gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: nr can't handle this * rust/compile/issue-3033.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/cfgexpand.h')
0 files changed, 0 insertions, 0 deletions