Skip to content

Commit

Permalink
Update and pin anyhow to 1.0.72
Browse files Browse the repository at this point in the history
Summary:
anyhow-1.0.73 [uses][1] the new `Error::provide` API. This API is
available starting in Rust 1.73. This means that if you want backtraces,
you need one:

- anyhow-1.0.72 & Rust 1.72
- anyhow-1.0.73 & Rust 1.73

Since we're still on 1.72, pin the version to avoid accidentally losing
backtraces.

There are no real changes between anyhow-1.0.71 and anyhow-1.0.72. But
update to anyhow-1.0.72 so that we're right up until the point where we
get backtrace support.

[1]: dtolnay/anyhow#319

Reviewed By: shayne-fletcher

Differential Revision: D49970958

fbshipit-source-id: 1193611e6d16bc840e63b689e932ea3d33562152
  • Loading branch information
zertosh authored and facebook-github-bot committed Oct 5, 2023
1 parent 4c1a284 commit 1d4a484
Show file tree
Hide file tree
Showing 57 changed files with 58 additions and 58 deletions.
4 changes: 2 additions & 2 deletions hphp/hack/src/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ doctest = false
crate-type = ["lib", "staticlib"]

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
bumpalo = { version = "3.11.1", features = ["collections"] }
direct_decl_parser = { version = "0.0.0", path = "../../../../parser/api/cargo/direct_decl_parser" }
hackrs_provider_backend = { version = "0.0.0", path = "../../../../providers/hackrs_provider_backend" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ path = "../../human_readable_dep_map/human_readable_dep_map.rs"
crate-type = ["lib", "staticlib"]

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
depgraph_reader = { version = "0.0.0", path = "../depgraph_reader" }
hash = { version = "0.0.0", path = "../../../utils/hash" }
typing_deps_hash = { version = "0.0.0", path = "../../../deps/cargo/typing_deps_hash" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/depgraph/depgraph_decompress/ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ edition = "2021"
path = "depgraph_decompress_rust_ffi.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
decompress = { version = "0.0.0", path = "../decompress" }
ocamlrep_ocamlpool = { version = "0.1.0", git = "https://github.com/facebook/ocamlrep/", branch = "main" }
2 changes: 1 addition & 1 deletion hphp/hack/src/depgraph/hhdg/cargo/hhdg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name = "hhdg"
path = "../../hhdg.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
clap = { version = "3.2.25", features = ["derive", "env", "regex", "unicode", "wrap_help"] }
depgraph_reader = { version = "0.0.0", path = "../../../cargo/depgraph_reader" }
hash = { version = "0.0.0", path = "../../../../utils/hash" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/generate_hhi/cargo/generate_hhi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ name = "generate_hhi"
path = "../../generate_hhi.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
clap = { version = "3.2.25", features = ["derive", "env", "regex", "unicode", "wrap_help"] }
generate_hhi_lib = { version = "0.0.0", path = "../generate_hhi_lib" }
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "../../generate_hhi_lib.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
parser_core_types = { version = "0.0.0", path = "../../../parser/cargo/core_types" }
positioned_parser = { version = "0.0.0", path = "../../../parser/api/cargo/positioned_parser" }
relative_path = { version = "0.0.0", path = "../../../utils/rust/relative_path" }
2 changes: 1 addition & 1 deletion hphp/hack/src/hackc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ path = "cli/hackc.rs"

[dependencies]
aast_parser = { version = "0.0.0", path = "../parser/cargo/aast_parser" }
anyhow = "1.0.71"
anyhow = "=1.0.72"
assemble = { version = "0.0.0", path = "cargo/assemble" }
bc_to_ir = { version = "0.0.0", path = "ir/conversions/bc_to_ir" }
bumpalo = { version = "3.11.1", features = ["collections"] }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/hackc/bytecode_printer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "lib.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] }
escaper = { version = "0.0.0", path = "../../utils/escaper" }
ffi = { version = "0.0.0", path = "../../utils/ffi" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/hackc/cargo/assemble/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "../../assemble/lib.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
assemble_opcode_macro = { version = "0.0.0", path = "../assemble_opcode_macro" }
bumpalo = { version = "3.11.1", features = ["collections"] }
escaper = { version = "0.0.0", path = "../../../utils/escaper" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/hackc/compile/cargo/compile/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ path = "../../compile.rs"

[dependencies]
aast_parser = { version = "0.0.0", path = "../../../../parser/cargo/aast_parser" }
anyhow = "1.0.71"
anyhow = "=1.0.72"
bc_to_ir = { version = "0.0.0", path = "../../../ir/conversions/bc_to_ir" }
bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] }
bumpalo = { version = "3.11.1", features = ["collections"] }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/hackc/ffi_bridge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ path = "compiler_ffi.rs"
crate-type = ["lib", "staticlib"]

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
bincode = "1.3.3"
bumpalo = { version = "3.11.1", features = ["collections"] }
compile = { version = "0.0.0", path = "../compile/cargo/compile" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/hackc/hhbc/cargo/dump-opcodes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name = "dump_opcodes"
path = "../../dump_opcodes.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
clap = { version = "4.3.5", features = ["derive", "env", "string", "unicode", "wrap_help"] }
emit_opcodes = { version = "0.0.0", path = "../emit_opcodes" }
hhbc-gen = { version = "0.0.0", path = "../../../../../../tools/hhbc-gen" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/hackc/hhvm_config/cargo/options/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ edition = "2021"
path = "../../hhvm_config.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
hhvm_options = { version = "0.0.0", path = "../../../../utils/hhvm_options" }
options = { version = "0.0.0", path = "../../../compile/cargo/options" }
2 changes: 1 addition & 1 deletion hphp/hack/src/hackc/ir/assemble/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "lib.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] }
bumpalo = { version = "3.11.1", features = ["collections"] }
ffi = { version = "0.0.0", path = "../../../utils/ffi" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "../../lib.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
ascii = "1.0"
escaper = { version = "0.0.0", path = "../../../../../../utils/escaper" }
hash = { version = "0.0.0", path = "../../../../../../utils/hash" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/hackc/print_expr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "lib.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
ast_scope = { version = "0.0.0", path = "../emitter/cargo/ast_scope" }
bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] }
bumpalo = { version = "3.11.1", features = ["collections"] }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/hackc/sem_diff/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test = false
doctest = false

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
ffi = { version = "0.0.0", path = "../../utils/ffi" }
hash = { version = "0.0.0", path = "../../utils/hash" }
hhbc = { version = "0.0.0", path = "../hhbc/cargo/hhbc" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/hackrs/datastore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "datastore.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
dashmap = { version = "5.4", features = ["rayon", "serde"] }
hash = { version = "0.0.0", path = "../../utils/hash" }
parking_lot = { version = "0.12.1", features = ["send_guard"] }
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "../../decl_parser.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
bumpalo = { version = "3.11.1", features = ["collections"] }
direct_decl_parser = { version = "0.0.0", path = "../../../../parser/api/cargo/direct_decl_parser" }
file_provider = { version = "0.0.0", path = "../../../file_provider/cargo/file_provider" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "../../file_provider.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] }
pos = { version = "0.0.0", path = "../../../pos/cargo/pos" }
tempdir = "0.3"
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "../../folded_decl_provider.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
datastore = { version = "0.0.0", path = "../../../datastore" }
decl_enforceability = { version = "0.0.0", path = "../../../decl_enforceability" }
eq_modulo_pos = { version = "0.0.0", path = "../../../../utils/eq_modulo_pos" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "../../hackrs_test.rs"

[dev-dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
datastore = { version = "0.0.0", path = "../../../datastore" }
decl_parser = { version = "0.0.0", path = "../../../decl_parser/cargo/decl_parser" }
fbinit = { version = "0.1.2", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "main" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "../../mod.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
bincode = "1.3.3"
datastore = { version = "0.0.0", path = "../../../datastore" }
decl_parser = { version = "0.0.0", path = "../../../decl_parser/cargo/decl_parser" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "../../naming_provider.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
hh24_types = { version = "0.0.0", path = "../../../../utils/hh24_types" }
names = { version = "0.0.0", path = "../../../../naming/names_rust" }
oxidized = { version = "0.0.0", path = "../../../../oxidized" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "../../shallow_decl_provider.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
datastore = { version = "0.0.0", path = "../../../datastore" }
decl_parser = { version = "0.0.0", path = "../../../decl_parser/cargo/decl_parser" }
itertools = "0.10.3"
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/hh_codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name = "hh_codegen"
path = "hh_codegen.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
clap = { version = "4.3.5", features = ["derive", "env", "string", "unicode", "wrap_help"] }
hash = { version = "0.0.0", path = "../utils/hash" }
proc-macro2 = { version = "1.0.64", features = ["span-locations"] }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/hh_manual/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ version = "0.0.0"
edition = "2021"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
clap = { version = "3.2.25", features = ["derive", "env", "regex", "unicode", "wrap_help"] }
pulldown-cmark = "0.9.1"
2 changes: 1 addition & 1 deletion hphp/hack/src/hh_naming_table_builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ name = "hh_naming_table_builder"
path = "hh_naming_table_builder.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
bumpalo = { version = "3.11.1", features = ["collections"] }
clap = { version = "3.2.25", features = ["derive", "env", "regex", "unicode", "wrap_help"] }
direct_decl_parser = { version = "0.0.0", path = "../parser/api/cargo/direct_decl_parser" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ doctest = false
crate-type = ["lib", "staticlib"]

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
naming_table_builder = { version = "0.0.0", path = "../.." }
ocamlrep_custom = { version = "0.1.0", git = "https://github.com/facebook/ocamlrep/", branch = "main" }
ocamlrep_ocamlpool = { version = "0.1.0", git = "https://github.com/facebook/ocamlrep/", branch = "main" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/naming/names_rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "names.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
crossbeam = "0.8"
hh24_types = { version = "0.0.0", path = "../../utils/hh24_types" }
oxidized = { version = "0.0.0", path = "../../oxidized" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/oxidized/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "lib.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
arena_deserializer = { version = "0.0.0", path = "../utils/arena_deserializer" }
arena_trait = { version = "0.0.0", path = "../arena_trait" }
bitflags = "1.3"
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/package/cargo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "../package.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
hash = { version = "0.0.0", path = "../../utils/hash" }
once_cell = "1.12"
serde = { version = "1.0.185", features = ["derive", "rc"] }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/parser/api/cargo/ddp_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ path = "../../ddp_test.rs"
test = false

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
bumpalo = { version = "3.11.1", features = ["collections"] }
clap = { version = "4.3.5", features = ["derive", "env", "string", "unicode", "wrap_help"] }
direct_decl_parser = { version = "0.0.0", path = "../direct_decl_parser" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/providers/hackrs_provider_backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "hackrs_provider_backend.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] }
bumpalo = { version = "3.11.1", features = ["collections"] }
datastore = { version = "0.0.0", path = "../../hackrs/datastore" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/rust_to_ocaml/rust_to_ocaml/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name = "rust_to_ocaml"
path = "../src/rust_to_ocaml.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
attr_parser = { version = "0.0.0", path = "../attr_parser" }
clap = { version = "3.2.25", features = ["derive", "env", "regex", "unicode", "wrap_help"] }
convert_case = "0.4.0"
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/shmffi/cargo/shm_store/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ doctest = false
crate-type = ["lib", "staticlib"]

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
bincode = "1.3.3"
datastore = { version = "0.0.0", path = "../../../hackrs/datastore" }
hh24_types = { version = "0.0.0", path = "../../../utils/hh24_types" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/utils/cargo/hh24_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "../../hh24_test.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
bumpalo = { version = "3.11.1", features = ["collections"] }
direct_decl_parser = { version = "0.0.0", path = "../../../parser/api/cargo/direct_decl_parser" }
hh24_types = { version = "0.0.0", path = "../../hh24_types" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/utils/ffi_cbindgen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ name = "ffi_cbindgen"
path = "ffi_cbindgen.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
cbindgen = "0.22.0"
clap = { version = "3.2.25", features = ["derive", "env", "regex", "unicode", "wrap_help"] }
2 changes: 1 addition & 1 deletion hphp/hack/src/utils/find_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "../find_utils.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
files_to_ignore = { version = "0.0.0", path = "../files_to_ignore" }
jwalk = "0.6"
relative_path = { version = "0.0.0", path = "../rust/relative_path" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/utils/hh24_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "hh24_types.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
derive_more = "0.99.17"
file_info = { version = "0.0.0", path = "../../deps/rust/file_info" }
hh_hash = { version = "0.0.0", path = "../hh_hash" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/utils/hh_config/cargo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "../hh_config.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
config_file = { version = "0.0.0", path = "../../config_file/rust" }
oxidized = { version = "0.0.0", path = "../../../oxidized" }
package = { version = "0.0.0", path = "../../../package/cargo" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/utils/hhvm_options/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "hhvm_options.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
clap = { version = "4.3.5", features = ["derive", "env", "string", "unicode", "wrap_help"] }
hdf = { version = "0.0.0", path = "../hdf" }
hhvm_runtime_options = { version = "0.0.0", path = "hhvm_runtime_options" }
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
path = "lib.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
cxx = "1.0.100"
hdf = { version = "0.0.0", path = "../../hdf" }
log = { version = "0.4.17", features = ["kv_unstable", "kv_unstable_std"] }
Expand Down
Loading

0 comments on commit 1d4a484

Please sign in to comment.