aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-06-03 09:29:34 +0000
committerGitHub <noreply@github.com>2022-06-03 09:29:34 +0000
commit957914b4284213b1d72c9c4210892367acaf1419 (patch)
tree5e4ff911f6d4682bb886f574eca437955c462b08 /gcc/rust/backend/rust-compile-expr.h
parent664bd46f4cfff6e1864b674d6ec6a10b2985104c (diff)
parentfb2fc585fdcc2dd4f3e5ac0c3a895b33e8213c53 (diff)
parenta89eb96d79ec3d001579fca8e4bead46080bba7d (diff)
parent8d1f5f99484f2b79439b86dca7123eb0260776d7 (diff)
downloadgcc-957914b4284213b1d72c9c4210892367acaf1419.zip
gcc-957914b4284213b1d72c9c4210892367acaf1419.tar.gz
gcc-957914b4284213b1d72c9c4210892367acaf1419.tar.bz2
Merge #1290 #1291 #1294
1290: Reformat copyright header in rust-parse-impl.h r=philberty a=philberty 1291: Fix bad impl item overlap check r=philberty a=philberty This issue here was the equality checks for reference and pointer types did not check the mutability. Fixes #1289 1294: Add new mappings for items within a module r=philberty a=philberty This patch adds two new interfaces to the mappings class. - Lookup the child items within a module - Lookup the parent module id from the child item id Each of these API's are going to be required so that we can resolve two new types of path segment: super::foo::bar Where we need to be able to lookup the super module node id from the current scope node id. To then lookup the children within that scope. The other path is simpler such as: crate::foo::bar. Where we lookup the items within the current Crate NodeId and follow on as normal. Addresses #1227 Co-authored-by: Philip Herron <philip.herron@embecosm.com>