about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2024-04-17 18:23:36 -0700
committerDavid Tolnay <dtolnay@gmail.com>2024-04-17 18:43:29 -0700
commitfdf93bbde02ddaf2eb75b82a9ef4e8d5590f9c37 (patch)
treec7eba43ade5a5ad81d8ca21c06232af5d9fc971a /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentbecebb3158149a115cad8a402612e25436a7e37b (diff)
downloadrust-fdf93bbde02ddaf2eb75b82a9ef4e8d5590f9c37.tar.gz
rust-fdf93bbde02ddaf2eb75b82a9ef4e8d5590f9c37.zip
Improve std::fs::Metadata Debug representation
Before:

    Metadata {
        file_type: FileType(
            FileType {
                mode: 0o100600 (-rw-------),
            },
        ),
        is_dir: false,
        is_file: true,
        permissions: Permissions(
            FilePermissions {
                mode: 0o100600 (-rw-------),
            },
        ),
        modified: Ok(
            SystemTime {
                tv_sec: 1713402981,
                tv_nsec: 682983531,
            },
        ),
        accessed: Ok(
            SystemTime {
                tv_sec: 1713402983,
                tv_nsec: 206999623,
            },
        ),
        created: Ok(
            SystemTime {
                tv_sec: 1713402981,
                tv_nsec: 682983531,
            },
        ),
        ..
    }

After:

    Metadata {
        file_type: FileType {
            is_dir: false,
            is_file: true,
            is_symlink: false,
            ..
        },
        permissions: Permissions(
            FilePermissions {
                mode: 0o100600 (-rw-------),
            },
        ),
        len: 2096,
        modified: SystemTime {
            tv_sec: 1713402981,
            tv_nsec: 682983531,
        },
        accessed: SystemTime {
            tv_sec: 1713402983,
            tv_nsec: 206999623,
        },
        created: SystemTime {
            tv_sec: 1713402981,
            tv_nsec: 682983531,
        },
        ..
    }
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions