From: fisnikhasani <[email protected]>
Fixes: Rust-GCC/gccrs#4503
gcc/rust/ChangeLog:
* lang.opt (flag_name_resolution_2_0): Remove.
* resolve/rust-name-resolver.cc: Remove include.
Signed-off-by: Fisnik Hasani <[email protected]>
---
gcc/rust/lang.opt | 4 ----
gcc/rust/resolve/rust-name-resolver.cc | 3 ---
2 files changed, 7 deletions(-)
diff --git a/gcc/rust/lang.opt b/gcc/rust/lang.opt
index aa8e9b1b42e..2fe63fa7093 100644
--- a/gcc/rust/lang.opt
+++ b/gcc/rust/lang.opt
@@ -208,10 +208,6 @@ Enum(frust_compile_until) String(compilation) Value(12)
EnumValue
Enum(frust_compile_until) String(end) Value(13)
-frust-name-resolution-2.0
-Rust Var(flag_name_resolution_2_0) Init(1)
-Use the temporary and experimental name resolution pipeline instead of the
stable one.
-
frust-borrowcheck
Rust Var(flag_borrowcheck)
Use the WIP borrow checker.
diff --git a/gcc/rust/resolve/rust-name-resolver.cc
b/gcc/rust/resolve/rust-name-resolver.cc
index be134681e34..ab6fcb839ef 100644
--- a/gcc/rust/resolve/rust-name-resolver.cc
+++ b/gcc/rust/resolve/rust-name-resolver.cc
@@ -19,9 +19,6 @@
#include "rust-name-resolver.h"
#include "rust-ast-full.h"
-// for flag_name_resolution_2_0
-#include "options.h"
-
namespace Rust {
namespace Resolver {
--
2.50.1