Make `token_stream_[printer|matchers].rs` depend on regular `anyhow`.
`Result`s of printing or matching a `TokenStream` are never used with
`salsa` and therefore there is no need to use and depend on `arc_anyhow`
from `token_stream_printer.rs` and `token_stream_matchers.rs`.
PiperOrigin-RevId: 476130867
diff --git a/common/BUILD b/common/BUILD
index 700be73..162f5c4 100644
--- a/common/BUILD
+++ b/common/BUILD
@@ -91,7 +91,7 @@
data = [
],
deps = [
- ":arc_anyhow",
+ "@crate_index//:anyhow",
"@crate_index//:proc-macro2",
],
)
diff --git a/common/token_stream_printer.rs b/common/token_stream_printer.rs
index 5d036fa..72928c4 100644
--- a/common/token_stream_printer.rs
+++ b/common/token_stream_printer.rs
@@ -2,7 +2,7 @@
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-use arc_anyhow::{bail, Result};
+use anyhow::{bail, Result};
use proc_macro2::{Delimiter, TokenStream, TokenTree};
use std::ffi::{OsStr, OsString};
use std::fmt::Write as _;
diff --git a/rs_bindings_from_cc/BUILD b/rs_bindings_from_cc/BUILD
index 92b4c8b..7cefb1c 100644
--- a/rs_bindings_from_cc/BUILD
+++ b/rs_bindings_from_cc/BUILD
@@ -443,8 +443,8 @@
visibility = ["//:__subpackages__"],
deps = [
":ir",
- "//common:arc_anyhow",
"//common:token_stream_printer",
+ "@crate_index//:anyhow",
"@crate_index//:itertools",
"@crate_index//:proc-macro2",
"@crate_index//:quote",
diff --git a/rs_bindings_from_cc/token_stream_matchers.rs b/rs_bindings_from_cc/token_stream_matchers.rs
index af70982..9419d1c 100644
--- a/rs_bindings_from_cc/token_stream_matchers.rs
+++ b/rs_bindings_from_cc/token_stream_matchers.rs
@@ -126,7 +126,7 @@
/// Only used to make stuff needed by exported macros available
pub mod internal {
- use arc_anyhow::{anyhow, Result};
+ use anyhow::{anyhow, Result};
use ir::{Item, IR};
use itertools::Itertools;
pub use proc_macro2::TokenStream;