Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3ed189e
Cleanup `PpMode` and friends
LeSeulArtichaut Feb 18, 2021
dd3772e
A few more code cleanups
LeSeulArtichaut Feb 19, 2021
7ad4b7a
Replace normalize.css 3.0.0 with unminified version.
jsha Feb 20, 2021
9bbd482
Update normalize.css to 8.0.1
jsha Feb 20, 2021
7acb105
Re-minify normalize.css.
jsha Feb 20, 2021
24c23f5
Test hexagon-enum only when llvm target is present
nagisa Feb 22, 2021
e8dcc02
Add a `size()` function to WASI's `MetadataExt`.
sunfishcode Feb 22, 2021
c9d86aa
Set RUST_BACKTRACE=0 when running `treat-err-as-bug` tests
Aaron1011 Feb 23, 2021
132ec26
Enable API documentation for `std::os::wasi`.
sunfishcode Feb 22, 2021
f94c15c
Fix typo in sanitizer flag in unstable book.
frewsxcv Feb 23, 2021
a6eb836
Use #[doc = include_str!()] in std
LeSeulArtichaut Dec 30, 2020
010a6f9
panic_bounds_checks should be panic_bounds_check
jrmuizel Feb 24, 2021
476c6c2
Update outdated comment in unix Command.
ehuss Feb 24, 2021
a03950b
rustdoc: Name fields of `ResolutionFailure::WrongNamespace`
camelid Jan 30, 2021
5ac6935
Move pick_by_value_method docs above function header
osa1 Feb 24, 2021
9c5f684
Turn Pick field comments into documentation
osa1 Feb 24, 2021
595b8be
Rollup merge of #80534 - LeSeulArtichaut:doc-include, r=jyn514
JohnTitor Feb 24, 2021
6fe9144
Rollup merge of #81575 - camelid:rustdoc-wrongnamespace-cleanup, r=jy…
JohnTitor Feb 24, 2021
67c85d7
Rollup merge of #82269 - LeSeulArtichaut:cleanup-ppmode, r=spastorino
JohnTitor Feb 24, 2021
761efcf
Rollup merge of #82313 - jsha:update-normalize-css, r=GuillaumeGomez
JohnTitor Feb 24, 2021
2fb67e0
Rollup merge of #82404 - nagisa:nagisa/hexagon-enums-llvm-comps, r=pe…
JohnTitor Feb 24, 2021
459edd6
Rollup merge of #82420 - sunfishcode:wasi-docs, r=alexcrichton
JohnTitor Feb 24, 2021
603332d
Rollup merge of #82421 - sunfishcode:wasi-metadata-size, r=alexcrichton
JohnTitor Feb 24, 2021
40374d2
Rollup merge of #82431 - Aaron1011:fix/bug-env, r=jyn514
JohnTitor Feb 24, 2021
000d9d7
Rollup merge of #82441 - frewsxcv:frewsxcv-docs, r=GuillaumeGomez
JohnTitor Feb 24, 2021
d62b71e
Rollup merge of #82463 - jrmuizel:patch-1, r=steveklabnik
JohnTitor Feb 24, 2021
c5a3305
Rollup merge of #82464 - ehuss:unix-command-comment, r=kennytm
JohnTitor Feb 24, 2021
56fc3c5
Rollup merge of #82468 - osa1:pick_by_value_method_docs, r=petrochenkov
JohnTitor Feb 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions library/std/src/sys/wasi/ext/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ pub trait MetadataExt {
fn ino(&self) -> u64;
/// Returns the `st_nlink` field of the internal `filestat_t`
fn nlink(&self) -> u64;
/// Returns the `st_size` field of the internal `filestat_t`
fn size(&self) -> u64;
/// Returns the `st_atim` field of the internal `filestat_t`
fn atim(&self) -> u64;
/// Returns the `st_mtim` field of the internal `filestat_t`
Expand All @@ -418,6 +420,9 @@ impl MetadataExt for fs::Metadata {
fn nlink(&self) -> u64 {
self.as_inner().as_wasi().nlink
}
fn size(&self) -> u64 {
self.as_inner().as_wasi().size
}
fn atim(&self) -> u64 {
self.as_inner().as_wasi().atim
}
Expand Down