diff options
Diffstat (limited to 'gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc')
-rw-r--r-- | gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc b/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc index 6125298..a09c738 100644 --- a/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc +++ b/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc @@ -75,9 +75,8 @@ void TopLevel::visit (AST::ExternCrate &crate) { CrateNum num; - if (!Analysis::Mappings::get ()->lookup_crate_name ( - crate.get_referenced_crate (), num)) - rust_unreachable (); + rust_assert (Analysis::Mappings::get ()->lookup_crate_name ( + crate.get_referenced_crate (), num)); auto attribute_macros = Analysis::Mappings::get ()->lookup_attribute_proc_macros (num); |