aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.cc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-07-15 11:02:55 +0000
committerGitHub <noreply@github.com>2022-07-15 11:02:55 +0000
commit0a9416fc0446b1da80cb39d2534bf030ae7739bd (patch)
treee742d5e608e54debbf4428ee5b0e5277216565bd /gcc/rust/resolve/rust-ast-resolve-expr.cc
parentf51284b598863eb0cbeb2984fd1499a672f2191d (diff)
parent8775525b042679bdd9c2b8dad68e65cec4b3dd79 (diff)
parent81c4b6989f044a45455717b752cafb96f04b768e (diff)
parent6bf6241f29e73678b8c7d3508cdb39b55ae9d1ab (diff)
parente3f135ef0beb51b77cae7c6af40c5a1c4dfe7722 (diff)
downloadgcc-0a9416fc0446b1da80cb39d2534bf030ae7739bd.zip
gcc-0a9416fc0446b1da80cb39d2534bf030ae7739bd.tar.gz
gcc-0a9416fc0446b1da80cb39d2534bf030ae7739bd.tar.bz2
Merge #1385 #1386 #1387 #1388
1385: Add missing include for intellisense r=philberty a=philberty 1386: Fix undefined behaviour using .get on unique_ptr r=philberty a=philberty As the move semantics for AST and HIR crates are unsafe on older compilers we are working around this by storing the pointer into the mappings class this was using the get method to store the pointer. The issue for loading extern crates the unique_ptr goes out of scope and this the deletion code resulting in undefined behaviour. This changes it to call release to take full ownership of the pointer as we expect. 1387: External Items with Rust ABI need to mangle the full path r=philberty a=philberty When compiling external rust abi item requires the fully qualified canonical path to be mangled in order to link correctly. 1388: Add new interfaces to mappings class r=philberty a=philberty In order to load and resolve extern crates we need to support detection of node_id is a crate in order to support paths outside of the current crate. Co-authored-by: Philip Herron <philip.herron@embecosm.com>