diff --git a/Cargo.lock b/Cargo.lock index 58efdf939..8f488300f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -110,9 +110,9 @@ dependencies = [ [[package]] name = "anstyle-query" -version = "1.0.3" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a64c907d4e79225ac72e2a354c9ce84d50ebb4586dee56c82b3ee73004f537f5" +checksum = "ad186efb764318d35165f1758e7dcef3b10628e26d41a44bc5550652e6804391" dependencies = [ "windows-sys 0.52.0", ] @@ -315,9 +315,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cc" -version = "1.0.98" +version = "1.0.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41c270e7540d725e65ac7f1b212ac8ce349719624d7bcff99f8e2e488e8cf03f" +checksum = "96c51067fd44124faa7f870b4b1c969379ad32b2ba805aa959430ceaa384f695" dependencies = [ "jobserver", "libc", @@ -378,18 +378,18 @@ checksum = "b0fc239e0f6cb375d2402d48afb92f76f5404fd1df208a41930ec81eda078bea" [[package]] name = "clap" -version = "4.5.4" +version = "4.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bc066a67923782aa8515dbaea16946c5bcc5addbd668bb80af688e53e548a0" +checksum = "a9689a29b593160de5bc4aacab7b5d54fb52231de70122626c178e6a368994c7" dependencies = [ "clap_builder", ] [[package]] name = "clap_builder" -version = "4.5.2" +version = "4.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae129e2e766ae0ec03484e609954119f123cc1fe650337e155d03b022f24f7b4" +checksum = "2e5387378c84f6faa26890ebf9f0a92989f8873d4d380467bcd0d8d8620424df" dependencies = [ "anstream", "anstyle", @@ -399,9 +399,9 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.7.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" +checksum = "4b82cf0babdbd58558212896d1a4272303a57bdb245c2bf1147185fb45640e70" [[package]] name = "colorchoice" @@ -1624,14 +1624,14 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.4" +version = "1.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" +checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.6", - "regex-syntax 0.8.3", + "regex-automata 0.4.7", + "regex-syntax 0.8.4", ] [[package]] @@ -1645,13 +1645,13 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" +checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" dependencies = [ "aho-corasick", "memchr", - "regex-syntax 0.8.3", + "regex-syntax 0.8.4", ] [[package]] @@ -1662,9 +1662,9 @@ checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" [[package]] name = "regex-syntax" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" +checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" [[package]] name = "rustc-demangle" @@ -2053,9 +2053,9 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "0.113.6" +version = "0.113.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ae3fb68e165bb093ea05fe68dfbc5d378c8b41515a5160f733d7b45bfb9d96e" +checksum = "29f7cbdc8d3f31a863224649258942a537be44e37cb8f5413da63b51159779b9" dependencies = [ "bitflags 2.5.0", "is-macro", @@ -2070,9 +2070,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.144.1" +version = "0.144.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0499e69683ae5d67a20ff0279b94bc90f29df7922a46331b54d5dd367bf89570" +checksum = "31adf4599e8de70f3b754dfc34ec2ab09fa6841d79a9f4a888250a404eae7030" dependencies = [ "either", "new_debug_unreachable", @@ -2560,9 +2560,9 @@ checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" [[package]] name = "unicode-id-start" -version = "1.0.4" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02aebfa694eccbbbffdd92922c7de136b9fe764396d2f10e21bce1681477cfc1" +checksum = "b8f73150333cb58412db36f2aca8f2875b013049705cc77b94ded70a1ab1f5da" [[package]] name = "unicode-ident" @@ -2587,9 +2587,9 @@ checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202" [[package]] name = "unicode-width" -version = "0.1.12" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68f5e5f3158ecfd4b8ff6fe086db7c8467a2dfdac97fe420f2b7c4aa97af66d6" +checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d" [[package]] name = "unreal_engine_crash" @@ -2612,9 +2612,9 @@ dependencies = [ [[package]] name = "utf8parse" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "uuid" diff --git a/examples/symcache_debug/src/main.rs b/examples/symcache_debug/src/main.rs index 47e1e2703..fcce8a913 100644 --- a/examples/symcache_debug/src/main.rs +++ b/examples/symcache_debug/src/main.rs @@ -2,7 +2,6 @@ use std::fs::File; use std::io::{Cursor, Write}; use std::path::PathBuf; use std::str::FromStr; -use std::u64; use anyhow::{anyhow, Context, Result}; use clap::builder::ValueParser; diff --git a/symbolic-cfi/src/lib.rs b/symbolic-cfi/src/lib.rs index 9f710e41a..faf640977 100644 --- a/symbolic-cfi/src/lib.rs +++ b/symbolic-cfi/src/lib.rs @@ -894,7 +894,7 @@ impl AsciiCfiWriter { // occur with a `code_start` close to the end of a function's code range, it seems // likely that these belong to the function epilog and code_size has a different meaning // in this case. Until this value is understood, skip these entries. - if frame.code_size > i32::max_value() as u32 { + if frame.code_size > i32::MAX as u32 { continue; } diff --git a/symbolic-debuginfo/src/base.rs b/symbolic-debuginfo/src/base.rs index b3c350817..e6644076e 100644 --- a/symbolic-debuginfo/src/base.rs +++ b/symbolic-debuginfo/src/base.rs @@ -351,7 +351,7 @@ impl<'data> SymbolMap<'data> { let end = match range.end_bound() { Bound::Included(end) => *end, Bound::Excluded(end) => *end - 1, - Bound::Unbounded => u64::max_value(), + Bound::Unbounded => u64::MAX, }; if end <= start || symbol.contains(end) { diff --git a/symbolic-debuginfo/src/elf.rs b/symbolic-debuginfo/src/elf.rs index ed65c2fab..6ddb2f298 100644 --- a/symbolic-debuginfo/src/elf.rs +++ b/symbolic-debuginfo/src/elf.rs @@ -939,6 +939,7 @@ impl<'data> DebugLink<'data> { /// - A filename, with any leading directory components removed, followed by a zero byte, /// - zero to three bytes of padding, as needed to reach the next four-byte boundary within the section, and /// - a four-byte CRC checksum, stored in the same endianness used for the executable file itself. + /// /// (from ) /// /// # Errors diff --git a/symbolic-debuginfo/src/macho/compact.rs b/symbolic-debuginfo/src/macho/compact.rs index 4929a3b04..db40d21b0 100644 --- a/symbolic-debuginfo/src/macho/compact.rs +++ b/symbolic-debuginfo/src/macho/compact.rs @@ -272,7 +272,7 @@ //! (subtract the global count to get the local index). //! //! > Unclear detail: If the global palette is smaller than 127, can the local -//! palette be larger than 128? +//! > palette be larger than 128? //! //! To compress these entries into a single 32-bit value, the address is truncated //! to 24 bits and packed with the index. The addresses stored in these entries diff --git a/symbolic-debuginfo/src/pdb.rs b/symbolic-debuginfo/src/pdb.rs index 9aa30e524..dd2a24c9a 100644 --- a/symbolic-debuginfo/src/pdb.rs +++ b/symbolic-debuginfo/src/pdb.rs @@ -746,6 +746,7 @@ impl<'s> Unit<'s> { /// For example we have observed in a real-world pdb that has: /// - A function 0x33ea50 (size 0xc) /// - With one line record: 0x33e850 (size 0x26) + /// /// The line record is completely outside the range of the function. fn sanitize_lines(func: &mut Function) { let fn_start = func.address;