Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
28bd22c
rustdoc: Gate unstable `doc(cfg())` predicates
clubby789 Mar 9, 2025
85b1116
rustdoc: Add FIXME test for `doc_cfg` interaction with `check_cfg`
clubby789 Mar 10, 2025
aa2c24b
uefi: Add OwnedEvent abstraction
Ayush1325 Mar 8, 2025
bcac931
Update test for SGX now implementing read_buf
thaliaarchi Mar 18, 2025
526a689
std: fs: uefi: Implement canonicalize
Ayush1325 Mar 18, 2025
456eedc
std: fs: uefi: Make lstat call stat
Ayush1325 Mar 18, 2025
80229a2
std: fs: uefi: Implement OpenOptions
Ayush1325 Mar 18, 2025
ec487bf
Test that `supported-crate-types` is `-Zunstable-options`-gated
jieyouxu Mar 18, 2025
83d3197
Add smoke test for `supported-crate-types` print request
jieyouxu Mar 18, 2025
e8cf087
Implement `supported-crate-types` print request
jieyouxu Mar 18, 2025
aafcdda
Document `supported-crate-types` print request in unstable book
jieyouxu Mar 18, 2025
675bfeb
Rebless tests with changed help due to new print request option
jieyouxu Mar 18, 2025
405d1c4
Adjust `rustc-print-info-issue-138612.rs`
jieyouxu Mar 21, 2025
b523301
Add test to ensure no index out of bounds panic (#135474)
reddevilmidzy Mar 14, 2025
c25e4bf
resolve: Avoid some unstable iteration 3
petrochenkov Mar 22, 2025
fa0c951
doc: rename reference #create-a-configtoml to #create-a-bootstraptoml
chiichen Mar 23, 2025
5950c86
Slim `rustc_parse_format` dependencies down
Veykril Mar 17, 2025
0b0773d
Rollup merge of #138236 - Ayush1325:uefi-event, r=petrochenkov
jieyouxu Mar 23, 2025
0631764
Rollup merge of #138293 - clubby789:doc-cfg-gate, r=GuillaumeGomez
jieyouxu Mar 23, 2025
21d89ff
Rollup merge of #138509 - reddevilmidzy:add-test, r=compiler-errors
jieyouxu Mar 23, 2025
16447db
Rollup merge of #138602 - Veykril:push-purxoytpktpu, r=SparrowLii
jieyouxu Mar 23, 2025
34892c1
Rollup merge of #138631 - thaliaarchi:sgx-read-buf-test, r=workingjub…
jieyouxu Mar 23, 2025
51e1840
Rollup merge of #138641 - jieyouxu:print-supported-crate-types, r=Urgau
jieyouxu Mar 23, 2025
22f8caa
Rollup merge of #138662 - Ayush1325:uefi-fs-1, r=nicholasbishop,petro…
jieyouxu Mar 23, 2025
7b54a2f
Rollup merge of #138837 - petrochenkov:resinstab2, r=jieyouxu
jieyouxu Mar 23, 2025
5c17679
Rollup merge of #138849 - chiichen:dev/master/doc-correct-configtoml,…
jieyouxu Mar 23, 2025
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
Prev Previous commit
Next Next commit
Update test for SGX now implementing read_buf
In #108326, `read_buf` was implemented for a variety of types, but SGX
was saved for later. Update a test from then, now that #137355
implemented it for SGX types.
  • Loading branch information
thaliaarchi committed Mar 18, 2025
commit bcac931956f7a5c271914f8e1973b8195eedb498
8 changes: 2 additions & 6 deletions library/std/src/net/tcp/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,8 @@ fn read_buf() {
let mut buf = BorrowedBuf::from(buf.as_mut_slice());
t!(s.read_buf(buf.unfilled()));
assert_eq!(buf.filled(), &[1, 2, 3, 4]);

// FIXME: sgx uses default_read_buf that initializes the buffer.
if cfg!(not(target_env = "sgx")) {
// TcpStream::read_buf should omit buffer initialization.
assert_eq!(buf.init_len(), 4);
}
// TcpStream::read_buf should omit buffer initialization.
assert_eq!(buf.init_len(), 4);

t.join().ok().expect("thread panicked");
})
Expand Down
Loading