Sha256: 1898d94cff0975815eb348651702e95c8f2f63886501d3b7043ee75668480472

Contents?: true

Size: 733 Bytes

Versions: 31

Compression:

Stored size: 733 Bytes

Contents

//! Debug tracing helpers.
use core::fmt;

/// Prefix added to the log file names, just before the thread name or id.
pub static LOG_FILENAME_PREFIX: &str = "cranelift.dbg.";

/// Helper for printing lists.
pub struct DisplayList<'a, T>(pub &'a [T])
where
    T: 'a + fmt::Display;

impl<'a, T> fmt::Display for DisplayList<'a, T>
where
    T: 'a + fmt::Display,
{
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        match self.0.split_first() {
            None => write!(f, "[]"),
            Some((first, rest)) => {
                write!(f, "[{}", first)?;
                for x in rest {
                    write!(f, ", {}", x)?;
                }
                write!(f, "]")
            }
        }
    }
}

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
wasmtime-24.0.0 ./ext/cargo-vendor/cranelift-codegen-0.111.0/src/dbg.rs
wasmtime-23.0.2 ./ext/cargo-vendor/cranelift-codegen-0.110.2/src/dbg.rs
wasmtime-22.0.0 ./ext/cargo-vendor/cranelift-codegen-0.109.0/src/dbg.rs
wasmtime-21.0.1 ./ext/cargo-vendor/cranelift-codegen-0.108.1/src/dbg.rs
wasmtime-20.0.2 ./ext/cargo-vendor/cranelift-codegen-0.107.2/src/dbg.rs
wasmtime-20.0.0 ./ext/cargo-vendor/cranelift-codegen-0.107.2/src/dbg.rs
wasmtime-18.0.3 ./ext/cargo-vendor/cranelift-codegen-0.105.3/src/dbg.rs
wasmtime-17.0.1 ./ext/cargo-vendor/cranelift-codegen-0.104.1/src/dbg.rs
wasmtime-17.0.0 ./ext/cargo-vendor/cranelift-codegen-0.104.0/src/dbg.rs
wasmtime-16.0.0 ./ext/cargo-vendor/cranelift-codegen-0.103.0/src/dbg.rs
wasmtime-15.0.1 ./ext/cargo-vendor/cranelift-codegen-0.102.1/src/dbg.rs
wasmtime-15.0.0 ./ext/cargo-vendor/cranelift-codegen-0.102.1/src/dbg.rs
wasmtime-14.0.4 ./ext/cargo-vendor/cranelift-codegen-0.101.4/src/dbg.rs
wasmtime-14.0.3 ./ext/cargo-vendor/cranelift-codegen-0.101.4/src/dbg.rs
wasmtime-14.0.1 ./ext/cargo-vendor/cranelift-codegen-0.101.1/src/dbg.rs
wasmtime-14.0.0 ./ext/cargo-vendor/cranelift-codegen-0.101.1/src/dbg.rs
wasmtime-13.0.0 ./ext/cargo-vendor/cranelift-codegen-0.100.0/src/dbg.rs
wasmtime-12.0.1 ./ext/cargo-vendor/cranelift-codegen-0.99.1/src/dbg.rs
wasmtime-12.0.0 ./ext/cargo-vendor/cranelift-codegen-0.99.1/src/dbg.rs
wasmtime-11.0.0 ./ext/cargo-vendor/cranelift-codegen-0.98.1/src/dbg.rs