From 3819f74574d357f733702315dcfe36c5160e1fb6 Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Thu, 26 Oct 2023 17:31:32 +0300 Subject: [PATCH] dep: target-lexicon: 0.12.3 -> 0.12.12 Largely just additions of new targets and such, as well as support for serde. --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- cranelift/codegen/src/isa/aarch64/inst/unwind/systemv.rs | 1 - cranelift/codegen/src/isa/mod.rs | 1 - cranelift/codegen/src/isa/riscv64/inst/unwind/systemv.rs | 1 - cranelift/codegen/src/isa/s390x/inst/unwind/systemv.rs | 1 - cranelift/codegen/src/isa/x64/inst/unwind/systemv.rs | 1 - 7 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e8403c460ee6..97178eb73c00 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2570,9 +2570,9 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.12.3" +version = "0.12.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7fa7e55043acb85fca6b3c01485a2eeb6b69c5d21002e273c79e465f43b7ac1" +checksum = "14c39fd04924ca3a864207c66fc2cd7d22d7c016007f9ce846cbb9326331930a" [[package]] name = "tempfile" diff --git a/Cargo.toml b/Cargo.toml index 167a46a657ee..e377d4b8d865 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -195,7 +195,7 @@ byte-array-literals = { path = "crates/wasi-preview1-component-adapter/byte-arra regalloc2 = "0.9.3" # cap-std family: -target-lexicon = { version = "0.12.3", default-features = false, features = ["std"] } +target-lexicon = { version = "0.12.12", default-features = false, features = ["std"] } cap-std = "2.0.0" cap-rand = { version = "2.0.0", features = ["small_rng"] } cap-fs-ext = "2.0.0" diff --git a/cranelift/codegen/src/isa/aarch64/inst/unwind/systemv.rs b/cranelift/codegen/src/isa/aarch64/inst/unwind/systemv.rs index a40e49e3dca1..efd1b0a2fe93 100644 --- a/cranelift/codegen/src/isa/aarch64/inst/unwind/systemv.rs +++ b/cranelift/codegen/src/isa/aarch64/inst/unwind/systemv.rs @@ -77,7 +77,6 @@ mod tests { use crate::settings::{builder, Flags}; use crate::Context; use gimli::write::Address; - use std::str::FromStr; use target_lexicon::triple; #[test] diff --git a/cranelift/codegen/src/isa/mod.rs b/cranelift/codegen/src/isa/mod.rs index 4508c68d7758..8e68e7aaba27 100644 --- a/cranelift/codegen/src/isa/mod.rs +++ b/cranelift/codegen/src/isa/mod.rs @@ -115,7 +115,6 @@ pub const ALL_ARCHITECTURES: &[&str] = &["x86_64", "aarch64", "s390x", "riscv64" /// Look for a supported ISA with the given `name`. /// Return a builder that can create a corresponding `TargetIsa`. pub fn lookup_by_name(name: &str) -> Result { - use alloc::str::FromStr; lookup(triple!(name)) } diff --git a/cranelift/codegen/src/isa/riscv64/inst/unwind/systemv.rs b/cranelift/codegen/src/isa/riscv64/inst/unwind/systemv.rs index 75bd6cebf7ec..4bb40f7db9de 100644 --- a/cranelift/codegen/src/isa/riscv64/inst/unwind/systemv.rs +++ b/cranelift/codegen/src/isa/riscv64/inst/unwind/systemv.rs @@ -72,7 +72,6 @@ mod tests { use crate::settings::{builder, Flags}; use crate::Context; use gimli::write::Address; - use std::str::FromStr; use target_lexicon::triple; #[test] diff --git a/cranelift/codegen/src/isa/s390x/inst/unwind/systemv.rs b/cranelift/codegen/src/isa/s390x/inst/unwind/systemv.rs index 5f0a657c7212..441e4134bbc4 100644 --- a/cranelift/codegen/src/isa/s390x/inst/unwind/systemv.rs +++ b/cranelift/codegen/src/isa/s390x/inst/unwind/systemv.rs @@ -108,7 +108,6 @@ mod tests { use crate::settings::{builder, Flags}; use crate::Context; use gimli::write::Address; - use std::str::FromStr; use target_lexicon::triple; #[test] diff --git a/cranelift/codegen/src/isa/x64/inst/unwind/systemv.rs b/cranelift/codegen/src/isa/x64/inst/unwind/systemv.rs index 68a1ecf2e5cf..f31277cb3750 100644 --- a/cranelift/codegen/src/isa/x64/inst/unwind/systemv.rs +++ b/cranelift/codegen/src/isa/x64/inst/unwind/systemv.rs @@ -104,7 +104,6 @@ mod tests { use crate::settings::{builder, Flags}; use crate::Context; use gimli::write::Address; - use std::str::FromStr; use target_lexicon::triple; #[test]