diff options
Diffstat (limited to 'gcc/rust/ast')
-rw-r--r-- | gcc/rust/ast/rust-ast-collector.cc | 12 | ||||
-rw-r--r-- | gcc/rust/ast/rust-ast-dump.h | 2 | ||||
-rw-r--r-- | gcc/rust/ast/rust-ast-formatting.cc | 4 | ||||
-rw-r--r-- | gcc/rust/ast/rust-ast.cc | 4 | ||||
-rw-r--r-- | gcc/rust/ast/rust-ast.h | 4 | ||||
-rw-r--r-- | gcc/rust/ast/rust-macro.h | 4 | ||||
-rw-r--r-- | gcc/rust/ast/rust-path.h | 4 |
7 files changed, 17 insertions, 17 deletions
diff --git a/gcc/rust/ast/rust-ast-collector.cc b/gcc/rust/ast/rust-ast-collector.cc index 9859861..ad2ffd0 100644 --- a/gcc/rust/ast/rust-ast-collector.cc +++ b/gcc/rust/ast/rust-ast-collector.cc @@ -208,7 +208,7 @@ TokenCollector::visit (Attribute &attrib) break; } default: - gcc_unreachable (); + rust_unreachable (); } } push (Rust::Token::make (RIGHT_SQUARE, UNDEF_LOCATION)); @@ -668,7 +668,7 @@ TokenCollector::visit (GenericArg &arg) } break; case GenericArg::Kind::Error: - gcc_unreachable (); + rust_unreachable (); } } @@ -822,11 +822,11 @@ TokenCollector::visit (Literal &lit, Location locus) else if (value == "true") push (Rust::Token::make (TRUE_LITERAL, locus)); else - gcc_unreachable (); // Not a boolean + rust_unreachable (); // Not a boolean break; } case Literal::LitType::ERROR: - gcc_unreachable (); + rust_unreachable (); break; } } @@ -1188,7 +1188,7 @@ void TokenCollector::visit (StructExprStructBase &) { // FIXME: Implement this node - gcc_unreachable (); + rust_unreachable (); } void @@ -2252,7 +2252,7 @@ get_delimiters (DelimType delim) case CURLY: return {LEFT_CURLY, RIGHT_CURLY}; default: - gcc_unreachable (); + rust_unreachable (); } } diff --git a/gcc/rust/ast/rust-ast-dump.h b/gcc/rust/ast/rust-ast-dump.h index 38df5f3..b76cbbf 100644 --- a/gcc/rust/ast/rust-ast-dump.h +++ b/gcc/rust/ast/rust-ast-dump.h @@ -71,7 +71,7 @@ public: previous = nullptr; break; default: - gcc_unreachable (); + rust_unreachable (); } } } diff --git a/gcc/rust/ast/rust-ast-formatting.cc b/gcc/rust/ast/rust-ast-formatting.cc index 4c13ef0..e6f969f 100644 --- a/gcc/rust/ast/rust-ast-formatting.cc +++ b/gcc/rust/ast/rust-ast-formatting.cc @@ -51,7 +51,7 @@ get_string_in_delims (std::string str_input, DelimType delim_type) default: return "ERROR-MARK-STRING (delims)"; } - gcc_unreachable (); + rust_unreachable (); } std::string @@ -64,7 +64,7 @@ get_mode_dump_desc (AttrMode mode) case INNER: return "inner attributes"; default: - gcc_unreachable (); + rust_unreachable (); return ""; } } diff --git a/gcc/rust/ast/rust-ast.cc b/gcc/rust/ast/rust-ast.cc index 1319b7d..4e24f1d 100644 --- a/gcc/rust/ast/rust-ast.cc +++ b/gcc/rust/ast/rust-ast.cc @@ -225,7 +225,7 @@ Visibility::as_string () const case PUB_IN_PATH: return std::string ("pub(in ") + in_path.as_string () + std::string (")"); default: - gcc_unreachable (); + rust_unreachable (); } } @@ -623,7 +623,7 @@ UseTreeGlob::as_string () const // some kind of error return "ERROR-PATH"; } - gcc_unreachable (); + rust_unreachable (); } std::string diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index 520baae..85dae48 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -1887,7 +1887,7 @@ public: return type == nullptr; } - gcc_unreachable (); + rust_unreachable (); return true; } @@ -1913,7 +1913,7 @@ public: return "Type: " + type->as_string (); } - gcc_unreachable (); + rust_unreachable (); return ""; } }; diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h index 1620ff6..55fbd3a 100644 --- a/gcc/rust/ast/rust-macro.h +++ b/gcc/rust/ast/rust-macro.h @@ -473,14 +473,14 @@ private: /** * Default function to use as an associated transcriber. This function should - * never be called, hence the gcc_unreachable(). + * never be called, hence the rust_unreachable(). * If this function is used, then the macro is not builtin and the compiler * should make use of the actual rules. If the macro is builtin, then another * associated transcriber should be used */ static Fragment dummy_builtin (Location, MacroInvocData &) { - gcc_unreachable (); + rust_unreachable (); return Fragment::create_error (); } diff --git a/gcc/rust/ast/rust-path.h b/gcc/rust/ast/rust-path.h index cdd90e8..5675fda 100644 --- a/gcc/rust/ast/rust-path.h +++ b/gcc/rust/ast/rust-path.h @@ -224,7 +224,7 @@ public: case Kind::Either: break; case Kind::Error: - gcc_unreachable (); + rust_unreachable (); } } @@ -254,7 +254,7 @@ public: switch (get_kind ()) { case Kind::Error: - gcc_unreachable (); + rust_unreachable (); case Kind::Either: return "Ambiguous: " + path.as_string (); case Kind::Const: |