diff options
author | Liam Naddell <liam.naddell@mail.utoronto.ca> | 2024-07-06 20:34:28 -0400 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-07-25 09:04:43 +0000 |
commit | a218b0335d1a453f4449bac8b8765258c30ea505 (patch) | |
tree | d9e04fb330c43c54ad782b1754eb5022100a63bb /gcc/rust/resolve | |
parent | 47c947cfd91b1ea61766b2b0039a26da2b04d518 (diff) | |
download | gcc-a218b0335d1a453f4449bac8b8765258c30ea505.zip gcc-a218b0335d1a453f4449bac8b8765258c30ea505.tar.gz gcc-a218b0335d1a453f4449bac8b8765258c30ea505.tar.bz2 |
[#3045] #[may_dangle] in safe impl
gcc/rust/ChangeLog:
* ast/rust-ast.cc:
Fix Attribute constructors to copy inner_attribute
* checks/errors/rust-unsafe-checker.cc:
Add pass for #[may_dangle] in safe impl's
* hir/rust-ast-lower-item.cc:
Add support for unsafe impl's
* hir/rust-ast-lower-type.cc:
Lower attributes in impl's from AST to HIR
* hir/rust-hir-dump.cc:
Change single attribute to AttrVec
* hir/tree/rust-hir-item.h:
Add unsafe support to Impl blocks in HIR
* hir/tree/rust-hir.cc:
Change single attribute to AttrVec
* hir/tree/rust-hir.h:
Add has/get_outer_attribute to GenericParam
gcc/testsuite/ChangeLog:
* rust/compile/issue-3045-1.rs:
Add test for #[may_dangle] Generic Type triggering error
* rust/compile/issue-3045-2.rs:
Add test for #[may_dangle] Lifetime triggering error
Signed-off-by: Liam Naddell <liam.naddell@mail.utoronto.ca>
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions