Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 8 pull requests #133350

Closed
Closed
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
cbe428d
use `confstr(_CS_DARWIN_USER_TEMP_DIR, ...)` as a `TMPDIR` fallback o…
thomcc Aug 19, 2022
6d075dc
Prefer `target_vendor = "apple"` on confstr
madsmtm Oct 10, 2024
b62ee10
Use with_capacity(0) because we're reading the capacity later on
madsmtm Oct 10, 2024
e32a118
btree: don't leak value if destructor of key panics
Nov 4, 2024
0a619dd
Rename `parse_no_flag` to `parse_no_value`
Zalathar Nov 18, 2024
660246b
Don't allow `-Zunstable-options` to take a value
Zalathar Nov 18, 2024
d318878
Reduce integer `Display` implementation size
GuillaumeGomez Nov 20, 2024
0465f71
Stop being so bail-y in candidate assembly
compiler-errors Nov 21, 2024
5d30436
Re-delay a resolve `bug`
jieyouxu Nov 21, 2024
9a30362
Update TRPL to latest, including new Chapter 17: Async and Await
chriskrycho Oct 17, 2024
34b4518
Update messages which reference book chs. 17-20
chriskrycho Oct 17, 2024
85c582c
Add support for `--library-path` to `rustbook test`
chriskrycho Oct 18, 2024
e0d7cf0
Update bootstrap tests to support book dependencies
chriskrycho Oct 18, 2024
99832cb
rustbook: fix two small typos
chriskrycho Oct 18, 2024
21dd59f
Update tests for new TRPL chapter order
chriskrycho Oct 30, 2024
30f9f60
Vendor `trpl` crate so The Book tests work offline
chriskrycho Nov 20, 2024
f98d9dd
Don't try to use confstr in Miri
madsmtm Oct 10, 2024
30c7df6
Improve code by using `unsigned_abs`
GuillaumeGomez Nov 20, 2024
7540306
Simplify logic a bit
compiler-errors Nov 11, 2024
4c53ad5
Pretty print AsyncFn traits too
compiler-errors Nov 11, 2024
f2eaa20
Rollup merge of #131505 - madsmtm:darwin_user_temp_dir, r=dtolnay
compiler-errors Nov 22, 2024
8f3ee9f
Rollup merge of #131859 - chriskrycho:update-trpl, r=onur-ozkan
compiler-errors Nov 22, 2024
b397caf
Rollup merge of #132090 - compiler-errors:baily, r=lcnr
compiler-errors Nov 22, 2024
01cb11d
Rollup merge of #132597 - lukas-code:btree-plug-leak, r=jhpratt
compiler-errors Nov 22, 2024
348333d
Rollup merge of #132911 - compiler-errors:async-fn-sugar, r=fmease
compiler-errors Nov 22, 2024
5e43751
Rollup merge of #133159 - Zalathar:unstable-options-no-value, r=jieyouxu
compiler-errors Nov 22, 2024
c4b1835
Rollup merge of #133247 - GuillaumeGomez:reduce-integer-display-impl,…
compiler-errors Nov 22, 2024
c9dff9d
Rollup merge of #133286 - jieyouxu:bug-ourselves, r=compiler-errors
compiler-errors Nov 22, 2024
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
Use with_capacity(0) because we're reading the capacity later on
  • Loading branch information
madsmtm committed Oct 10, 2024
commit b62ee10e5448a077e67e46f6907a4a04415895a8
2 changes: 1 addition & 1 deletion library/std/src/sys/pal/unix/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ pub fn page_size() -> usize {
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/confstr.html
#[cfg(target_vendor = "apple")]
fn confstr(key: c_int, size_hint: Option<usize>) -> io::Result<OsString> {
let mut buf: Vec<u8> = Vec::new();
let mut buf: Vec<u8> = Vec::with_capacity(0);
let mut bytes_needed_including_nul = size_hint
.unwrap_or_else(|| {
// Treat "None" as "do an extra call to get the length". In theory
Expand Down
Loading