-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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 11 pull requests #127837
Rollup of 11 pull requests #127837
Commits on May 21, 2024
-
Simplify environment variable examples
I’ve found myself visiting the documentation for `std::env::vars` every few months, and every time I do, it is because I want to quickly get a snippet to print out all environment variables :-) So I think it could be nice to simplify the examples a little to make them self-contained. It is of course a style question if one should import a module a not, but I personally don’t import modules used just once in a code snippet.
Configuration menu - View commit details
-
Copy full SHA for 62e29fe - Browse repository at this point
Copy the full SHA 62e29feView commit details
Commits on Jun 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c4391b3 - Browse repository at this point
Copy the full SHA c4391b3View commit details
Commits on Jul 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7f8f178 - Browse repository at this point
Copy the full SHA 7f8f178View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23f26b1 - Browse repository at this point
Copy the full SHA 23f26b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8dafc5c - Browse repository at this point
Copy the full SHA 8dafc5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 51bdcf6 - Browse repository at this point
Copy the full SHA 51bdcf6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f9dfd4 - Browse repository at this point
Copy the full SHA 2f9dfd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9487d3 - Browse repository at this point
Copy the full SHA b9487d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ce78be - Browse repository at this point
Copy the full SHA 6ce78beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ce6229 - Browse repository at this point
Copy the full SHA 9ce6229View commit details -
Configuration menu - View commit details
-
Copy full SHA for b55fa8f - Browse repository at this point
Copy the full SHA b55fa8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b495bb - Browse repository at this point
Copy the full SHA 3b495bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for ea2b699 - Browse repository at this point
Copy the full SHA ea2b699View commit details -
std: unwrapped unsafe is VERBOTEN!
Co-authored-by: Jonas Böttiger <jonasboettiger@icloud.com>
Configuration menu - View commit details
-
Copy full SHA for 2499057 - Browse repository at this point
Copy the full SHA 2499057View commit details -
Configuration menu - View commit details
-
Copy full SHA for d9fde25 - Browse repository at this point
Copy the full SHA d9fde25View commit details -
Avoid comments that describe multiple
use
items.There are some comments describing multiple subsequent `use` items. When the big `use` reformatting happens some of these `use` items will be reordered, possibly moving them away from the comment. With this additional level of formatting it's not really feasible to have comments of this type. This commit removes them in various ways: - merging separate `use` items when appropriate; - inserting blank lines between the comment and the first `use` item; - outright deletion (for comments that are relatively low-value); - adding a separate "top-level" comment. We also entirely skip formatting for four library files that contain nothing but `pub use` re-exports, where reordering would be painful.
Configuration menu - View commit details
-
Copy full SHA for 75b6ec9 - Browse repository at this point
Copy the full SHA 75b6ec9View commit details -
Adjust some comments on individual
use
declarations.When we do the big `use` reformatting there are a tiny number of cases where rustfmt moves a comment from one `use` item to another in an undesirable way. This commit pre-emptively rearranges things to prevent this from happening.
Configuration menu - View commit details
-
Copy full SHA for 7f0ccfe - Browse repository at this point
Copy the full SHA 7f0ccfeView commit details -
zkvm: add
#[forbid(unsafe_op_in_unsafe_fn)]
instdlib
This also adds an additional `unsafe` block to address compiler errors.
Configuration menu - View commit details
-
Copy full SHA for e48d33e - Browse repository at this point
Copy the full SHA e48d33eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b5a83a6 - Browse repository at this point
Copy the full SHA b5a83a6View commit details -
Co-authored-by: Clar Fon <15850505+clarfonthey@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 33f1d9d - Browse repository at this point
Copy the full SHA 33f1d9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 586ef83 - Browse repository at this point
Copy the full SHA 586ef83View commit details -
Rollup merge of rust-lang#125206 - mgeisler:simplify-std-env-vars, r=…
…jhpratt,tgross35 Simplify environment variable examples I’ve found myself visiting the documentation for `std::env::vars` every few months, and every time I do, it is because I want to quickly get a snippet to print out all environment variables :-) So I think it could be nice to simplify the examples a little to make them self-contained. It is of course a style question if one should import a module a not, but I personally don’t import modules used just once in a code snippet.
Configuration menu - View commit details
-
Copy full SHA for 5e4a019 - Browse repository at this point
Copy the full SHA 5e4a019View commit details -
Rollup merge of rust-lang#126208 - Oneirical:one-flew-over-the-cuckoo…
…'s-test, r=jieyouxu Migrate `compiler-lookup-paths`, `dump-mono-stats` and `prune-link-args` `run-make` tests to `rmake` or `ui` format Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). try-job: x86_64-msvc try-job: aarch64-apple try-job: dist-x86_64-linux try-job: armhf-gnu
Configuration menu - View commit details
-
Copy full SHA for 5080c9f - Browse repository at this point
Copy the full SHA 5080c9fView commit details -
Rollup merge of rust-lang#126271 - diondokter:dec2flt-skip-fast-path,…
… r=tgross35 Skip fast path for dec2flt when optimize_for_size Tracking issue: rust-lang#125612 Skip the fast algorithm when optimizing for size. When compiling for https://github.com/quartiq/stabilizer I get these numbers: Before ``` text data bss dec hex filename 192192 8 49424 241624 3afd8 dual-iir ``` After ``` text data bss dec hex filename 191632 8 49424 241064 3ada8 dual-iir ``` This saves 560 bytes.
Configuration menu - View commit details
-
Copy full SHA for 004f420 - Browse repository at this point
Copy the full SHA 004f420View commit details -
Rollup merge of rust-lang#126776 - nnethercote:rustfmt-use-pre-cleanu…
…ps-2, r=cuviper Clean up more comments near use declarations rust-lang#125443 will reformat all use declarations in the repository. There are a few edge cases involving comments on use declarations that require care. This PR fixes them up so rust-lang#125443 can go ahead with a simple `x fmt --all`. A follow-up to rust-lang#126717. r? `@cuviper`
Configuration menu - View commit details
-
Copy full SHA for 6cdf3f1 - Browse repository at this point
Copy the full SHA 6cdf3f1View commit details -
Rollup merge of rust-lang#127444 - Sky9x:cstr-bytes-iter, r=dtolnay
`impl Send + Sync` and override `count` for the `CStr::bytes` iterator cc tracking issue rust-lang#112115
Configuration menu - View commit details
-
Copy full SHA for c242655 - Browse repository at this point
Copy the full SHA c242655View commit details -
Rollup merge of rust-lang#127792 - workingjubilee:read-unaligned-is-d…
…warfier, r=joboet std: Use `read_unaligned` for reads from DWARF There's a lot of... *stuff* going on here. Meanwhile, `read_unaligned` has been available since 1.17.0, so let's just use that.
Configuration menu - View commit details
-
Copy full SHA for 05c0b11 - Browse repository at this point
Copy the full SHA 05c0b11View commit details -
Rollup merge of rust-lang#127807 - ChrisDenton:win-parking, r=joboet
Use futex.rs for Windows thread parking If I'm not overlooking anything then the Windows 10+ thread parking implementation is practically the same as the futex.rs implementation. So we may as well use the same implementation for both. The old version is still kept around for Windows 7 support. r? ```@joboet``` if you wouldn't mind double checking I've not missed something
Configuration menu - View commit details
-
Copy full SHA for 53d935e - Browse repository at this point
Copy the full SHA 53d935eView commit details -
Rollup merge of rust-lang#127810 - compiler-errors:less-tcx, r=lcnr
Rename `tcx` to `cx` in `rustc_type_ir` Self-explanatory. Forgot that we had to do this in type_ir too, and not just the new solver crate lol. r? lcnr
Configuration menu - View commit details
-
Copy full SHA for 1562f72 - Browse repository at this point
Copy the full SHA 1562f72View commit details -
Rollup merge of rust-lang#127816 - oli-obk:misnomer, r=compiler-errors
Update method name to reflect changes to its internals forgot to do this in rust-lang#127431
Configuration menu - View commit details
-
Copy full SHA for ed73eac - Browse repository at this point
Copy the full SHA ed73eacView commit details -
Rollup merge of rust-lang#127833 - risc0:erik/zkvm-deny-unsafe, r=wor…
…kingjubilee zkvm: add `#[forbid(unsafe_op_in_unsafe_fn)]` in `stdlib` This also adds an additional `unsafe` block to address compiler errors. This PR is intended to address rust-lang#127747 for the zkvm target.
Configuration menu - View commit details
-
Copy full SHA for 0a0464b - Browse repository at this point
Copy the full SHA 0a0464bView commit details -
Rollup merge of rust-lang#127836 - workingjubilee:forbid-unsafe-ops-i…
…n-xous-uefi, r=tgross35 std: Forbid unwrapped unsafe ops in xous and uefi modules
Configuration menu - View commit details
-
Copy full SHA for e6dcab8 - Browse repository at this point
Copy the full SHA e6dcab8View commit details