Skip to content

Commit 938ac21

Browse files
P-E-Pphilberty
authored andcommitted
Add missing direct include
gcc/rust/ChangeLog: * util/bi-map.h: Add include directive for required declarations. * util/fnv-hash.h: Likewise. * util/rust-dump.h: Likewise. * util/rust-inline-visitor.h: Likewise. * util/rust-unwrap-segment.h: Likewise. Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
1 parent 3dada30 commit 938ac21

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

gcc/rust/util/bi-map.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// <http://www.gnu.org/licenses/>.
1818

1919
#include "rust-system.h"
20+
#include "optional.h"
2021

2122
#ifndef BIMAP_H
2223
#define BIMAP_H

gcc/rust/util/fnv-hash.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// You should have received a copy of the GNU General Public License
1616
// along with GCC; see the file COPYING3. If not see
1717
// <http://www.gnu.org/licenses/>.
18+
#include "rust-system.h"
1819

1920
#ifndef RUST_FNV_HASH_H
2021
#define RUST_FNV_HASH_H

gcc/rust/util/rust-dump.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// along with GCC; see the file COPYING3. If not see
1717
// <http://www.gnu.org/licenses/>.
1818

19+
#include "rust-system.h"
20+
1921
// Common definitions useful for textual dump of IRs (AST and HIR).
2022

2123
#ifndef RUST_DUMP_H

gcc/rust/util/rust-inline-visitor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// You should have received a copy of the GNU General Public License
1616
// along with GCC; see the file COPYING3. If not see
1717
// <http://www.gnu.org/licenses/>.
18+
#include "rust-system.h"
1819

1920
// An improved implementation of the inline visitor.
2021
// Original idea from https://members.accu.org/index.php/articles/2021

gcc/rust/util/rust-unwrap-segment.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
// along with GCC; see the file COPYING3. If not see
1717
// <http://www.gnu.org/licenses/>.
1818

19+
#include "rust-system.h"
20+
#include "optional.h"
21+
#include "rust-lang-item.h"
22+
#include "rust-mapping-common.h"
1923
#include <ast/rust-ast-full-decls.h>
2024

2125
namespace Rust {

0 commit comments

Comments
 (0)