aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-context.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-03-03 09:23:06 +0000
committerPhilip Herron <philip.herron@embecosm.com>2022-03-03 11:08:18 +0000
commitd6e1771291c792f665f5b9ed7d065bf292051e6a (patch)
treed26c37ac592965fdb52caa73c41cd6e95ae322c8 /gcc/rust/backend/rust-compile-context.h
parent57b50607988481238275d8a2f73722896cbe0fe2 (diff)
downloadgcc-d6e1771291c792f665f5b9ed7d065bf292051e6a.zip
gcc-d6e1771291c792f665f5b9ed7d065bf292051e6a.tar.gz
gcc-d6e1771291c792f665f5b9ed7d065bf292051e6a.tar.bz2
must use attribute support
This ports over the code from the cpp front-end which implements the cpp nodiscard attribute which has the same behaviour and is also implemented in the front-end explicitly. Fixes #856
Diffstat (limited to 'gcc/rust/backend/rust-compile-context.h')
-rw-r--r--gcc/rust/backend/rust-compile-context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-compile-context.h b/gcc/rust/backend/rust-compile-context.h
index 46f88b3..3fefd8d 100644
--- a/gcc/rust/backend/rust-compile-context.h
+++ b/gcc/rust/backend/rust-compile-context.h
@@ -25,9 +25,9 @@
#include "rust-hir-type-check.h"
#include "rust-backend.h"
#include "rust-compile-tyty.h"
-#include "rust-ast-full.h"
#include "rust-hir-full.h"
#include "rust-mangle.h"
+#include "rust-tree.h"
namespace Rust {
namespace Compile {