-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Add docs to Box conversions #89199
Add docs to Box conversions #89199
Commits on Oct 2, 2021
-
Configuration menu - View commit details
-
Copy full SHA for b06409e - Browse repository at this point
Copy the full SHA b06409eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 67ea84d - Browse repository at this point
Copy the full SHA 67ea84dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c2d52f - Browse repository at this point
Copy the full SHA 9c2d52fView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb0353b - Browse repository at this point
Copy the full SHA fb0353bView commit details
Commits on Oct 3, 2021
-
Configuration menu - View commit details
-
Copy full SHA for eec856b - Browse repository at this point
Copy the full SHA eec856bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e165c12 - Browse repository at this point
Copy the full SHA e165c12View commit details -
Auto merge of rust-lang#84267 - dtolnay:ptrunit, r=nagisa
Make *const (), *mut () okay for FFI Pointer-to-() is used occasionally in the standard library to mean "pointer to none-of-your-business". Examples: - `RawWakerVTable::new` https://doc.rust-lang.org/1.51.0/std/task/struct.RawWakerVTable.html#method.new - `<*const T>::to_raw_parts` https://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.to_raw_parts I believe it's useful for the same purpose in FFI signatures, even while `()` itself is not FFI safe. The following should be allowed: ```rust extern "C" { fn demo(pc: *const (), pm: *mut ()); } ``` Prior to this PR, those pointers were not considered okay for an extern signature. ```console warning: `extern` block uses type `()`, which is not FFI-safe --> src/main.rs:2:17 | 2 | fn demo(pc: *const (), pm: *mut ()); | ^^^^^^^^^ not FFI-safe | = note: `#[warn(improper_ctypes)]` on by default = help: consider using a struct instead = note: tuples have unspecified layout warning: `extern` block uses type `()`, which is not FFI-safe --> src/main.rs:2:32 | 2 | fn demo(pc: *const (), pm: *mut ()); | ^^^^^^^ not FFI-safe | = help: consider using a struct instead = note: tuples have unspecified layout ```
Configuration menu - View commit details
-
Copy full SHA for c70b35e - Browse repository at this point
Copy the full SHA c70b35eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3da9dea - Browse repository at this point
Copy the full SHA 3da9deaView commit details -
Configuration menu - View commit details
-
Copy full SHA for dc40430 - Browse repository at this point
Copy the full SHA dc40430View commit details -
Auto merge of rust-lang#89479 - camsteffen:diag-naming, r=Manishearth
Make diangostic item naming consistent Right now there is about a 50/50 split of naming diagnostic items as `vec_type` vs `Vec`. So it is hard to guess a diagnostic item name with confidence. I know it's not great to change these retroactively, but I think it will be much easier to maintain consistency after consistency is established.
Configuration menu - View commit details
-
Copy full SHA for 77f1e50 - Browse repository at this point
Copy the full SHA 77f1e50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 250d126 - Browse repository at this point
Copy the full SHA 250d126View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb0b1a5 - Browse repository at this point
Copy the full SHA fb0b1a5View commit details -
Auto merge of rust-lang#88060 - TennyZhuang:optimize-vec-retain, r=dt…
…olnay Optimize unnecessary check in Vec::retain The function `vec::Vec::retain` only have two stages: 1. Nothing was deleted. 2. Some elements were deleted. Here is an unnecessary check `if g.deleted_cnt > 0` in the loop, and it's difficult for compiler to optimize it. I split the loop into two stages manully and keep the code clean using const generics. I write a special but common bench case for this optimization. I call retain on vec but keep all elements. Before and after this optimization: ``` test vec::bench_retain_whole_100000 ... bench: 84,803 ns/iter (+/- 17,314) ``` ``` test vec::bench_retain_whole_100000 ... bench: 42,638 ns/iter (+/- 16,910) ``` The result is expected, there are two `if`s before the optimization and one `if` after.
Configuration menu - View commit details
-
Copy full SHA for c24c906 - Browse repository at this point
Copy the full SHA c24c906View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3818981 - Browse repository at this point
Copy the full SHA 3818981View commit details -
Add documentation to Box conversions
Among other changes, documents whether allocations are necessary to complete the type conversion. Part of rust-lang#51430 Co-authored-by: Giacomo Stevanato <giaco.stevanato@gmail.com> Co-authored-by: Joshua Nelson <github@jyn.dev>
Configuration menu - View commit details
-
Copy full SHA for 53bc9cf - Browse repository at this point
Copy the full SHA 53bc9cfView commit details -
Merge branch '51430-document-from' of github.com:timClicks/rust into …
…51430-document-from
Configuration menu - View commit details
-
Copy full SHA for caa61b5 - Browse repository at this point
Copy the full SHA caa61b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea8e65f - Browse repository at this point
Copy the full SHA ea8e65fView commit details -
Auto merge of rust-lang#7709 - Qwaz:drop_non_send, r=xFrednet
Implement `non_send_field_in_send_ty` lint changelog: Implement [`non_send_fields_in_send_ty`] lint Fixes rust-lang#7703
Configuration menu - View commit details
-
Copy full SHA for 33c34fb - Browse repository at this point
Copy the full SHA 33c34fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32e19fb - Browse repository at this point
Copy the full SHA 32e19fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ebc656 - Browse repository at this point
Copy the full SHA 0ebc656View commit details -
Auto merge of rust-lang#7755 - HKalbasi:master, r=xFrednet
exclude enum from derivable impls fix rust-lang#7753 changelog: Exclude enum from ``[`derivable_impls`]``
Configuration menu - View commit details
-
Copy full SHA for 63b04f7 - Browse repository at this point
Copy the full SHA 63b04f7View commit details -
Auto merge of rust-lang#89459 - tspiteri:idiv-overflow-bitand, r=kennytm
Use bitand when checking for signed integer division overflow For `self == Self::MIN && rhs == -1`, LLVM does not realize that this is the same check made by `self / rhs`, so the code generated may have some unnecessary duplication. For `(self == Self::MIN) & (rhs == -1)`, LLVM realizes it is the same check.
Configuration menu - View commit details
-
Copy full SHA for 4479cb8 - Browse repository at this point
Copy the full SHA 4479cb8View commit details -
Fixed numerus of error message Removed superfluous argument Using pluralize!() instead of code duplication Adjusted a test
Configuration menu - View commit details
-
Copy full SHA for d6a7e74 - Browse repository at this point
Copy the full SHA d6a7e74View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf19131 - Browse repository at this point
Copy the full SHA cf19131View commit details -
Configuration menu - View commit details
-
Copy full SHA for a0cc9bb - Browse repository at this point
Copy the full SHA a0cc9bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 677fb6b - Browse repository at this point
Copy the full SHA 677fb6bView commit details -
Move from grid layout to table based layout because of browser limits…
… that overlay row entries after a UA specific amount of rows
Configuration menu - View commit details
-
Copy full SHA for e599e2d - Browse repository at this point
Copy the full SHA e599e2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9626f2b - Browse repository at this point
Copy the full SHA 9626f2bView commit details -
Auto merge of rust-lang#87870 - WaffleLapkin:pub_split_at_unchecked, …
…r=dtolnay Make `<[T]>::split_at_unchecked` and `<[T]>::split_at_mut_unchecked` public The methods were originally added in rust-lang#75936 (sdroege@30dc32b), but for some reason as private. Nevertheless, the methods have documentation and even a [tracking issue](rust-lang#76014). It's very weird to have a tracking issue for private methods and these methods may be useful outside of the standard library. As such, this PR makes the methods public.
Configuration menu - View commit details
-
Copy full SHA for 5051904 - Browse repository at this point
Copy the full SHA 5051904View commit details -
Configuration menu - View commit details
-
Copy full SHA for 529c353 - Browse repository at this point
Copy the full SHA 529c353View commit details -
Configuration menu - View commit details
-
Copy full SHA for b66dfaa - Browse repository at this point
Copy the full SHA b66dfaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8961616 - Browse repository at this point
Copy the full SHA 8961616View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d38c53 - Browse repository at this point
Copy the full SHA 2d38c53View commit details -
Configuration menu - View commit details
-
Copy full SHA for c355b2e - Browse repository at this point
Copy the full SHA c355b2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 02025d8 - Browse repository at this point
Copy the full SHA 02025d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 471cb5c - Browse repository at this point
Copy the full SHA 471cb5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for fedd778 - Browse repository at this point
Copy the full SHA fedd778View commit details -
Configuration menu - View commit details
-
Copy full SHA for 48ae6ec - Browse repository at this point
Copy the full SHA 48ae6ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2ed9c4 - Browse repository at this point
Copy the full SHA b2ed9c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6dd6e7c - Browse repository at this point
Copy the full SHA 6dd6e7cView commit details -
Replace Fn impls with RPIT impls in rustc_index
This is cleaner and removes an unstable feature usage
Configuration menu - View commit details
-
Copy full SHA for 9f4cb86 - Browse repository at this point
Copy the full SHA 9f4cb86View commit details -
Configuration menu - View commit details
-
Copy full SHA for e34fd54 - Browse repository at this point
Copy the full SHA e34fd54View commit details -
Auto merge of rust-lang#88086 - ssomers:btree_clone_testing, r=dtolnay
BTree: toughen panicky test of clone() Test did not cover the second half of `clone_subtree` and why this clones key & value first.
Configuration menu - View commit details
-
Copy full SHA for 08759c6 - Browse repository at this point
Copy the full SHA 08759c6View commit details -
Add two inline annotations for hot functions
These two functions are essentially no-ops (and compile to just a load and return), but show up in process_obligations profiles with a high call count -- so worthwhile to try and inline them away.
Configuration menu - View commit details
-
Copy full SHA for 1c2ad79 - Browse repository at this point
Copy the full SHA 1c2ad79View commit details -
Auto merge of rust-lang#89486 - rusticstuff:docker_letsencrypt_ca_upd…
…ate, r=Mark-Simulacrum Update Let's Encrypt ROOT CA certificate in dist-(i686|x86_64)-linux docker images The DST Root CA X3 used by Let's Encrypt has expired ([Let's Encrypt announcement](https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/)). This patch installs the new root certificate (ISRG Root X1) and disables the old one. Disabling the old one is necessary because otherwise curl still fails to download from servers with Let's Encrypt certs even though they are cross-signed. Fixes rust-lang#89484.
Configuration menu - View commit details
-
Copy full SHA for 9dbb26e - Browse repository at this point
Copy the full SHA 9dbb26eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a28a78f - Browse repository at this point
Copy the full SHA a28a78fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20489ea - Browse repository at this point
Copy the full SHA 20489eaView commit details -
Co-authored-by: kennytm <kennytm@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 70e55a8 - Browse repository at this point
Copy the full SHA 70e55a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4846fd9 - Browse repository at this point
Copy the full SHA 4846fd9View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd9b476 - Browse repository at this point
Copy the full SHA dd9b476View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3996ff - Browse repository at this point
Copy the full SHA e3996ffView commit details -
Auto merge of rust-lang#88175 - camsteffen:let-desugar-span, r=Manish…
…earth Add expansion to while desugar spans In the same vein as rust-lang#88163, this reverts a change in Clippy behavior as a result of rust-lang#80357 (and reverts some `#[allow]`s): This changes `clippy::blocks_in_if_conditions` to not fire on `while` loops. Though we might actually want Clippy to lint those cases, we should introduce the change purposefully, with tests, and possibly under a different lint name. The actual change here is to add a desugaring expansion to the spans when lowering a `while` loop. r? `@Manishearth`
Configuration menu - View commit details
-
Copy full SHA for e737694 - Browse repository at this point
Copy the full SHA e737694View commit details -
Auto merge of rust-lang#88175 - camsteffen:let-desugar-span, r=Manish…
…earth Add expansion to while desugar spans In the same vein as rust-lang#88163, this reverts a change in Clippy behavior as a result of rust-lang#80357 (and reverts some `#[allow]`s): This changes `clippy::blocks_in_if_conditions` to not fire on `while` loops. Though we might actually want Clippy to lint those cases, we should introduce the change purposefully, with tests, and possibly under a different lint name. The actual change here is to add a desugaring expansion to the spans when lowering a `while` loop. r? `@Manishearth`
Configuration menu - View commit details
-
Copy full SHA for 87bb18e - Browse repository at this point
Copy the full SHA 87bb18eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b66048 - Browse repository at this point
Copy the full SHA 5b66048View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a57a46 - Browse repository at this point
Copy the full SHA 2a57a46View commit details
Commits on Oct 4, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 3760c91 - Browse repository at this point
Copy the full SHA 3760c91View commit details -
Don't suggest replacing region with 'static in NLL
Fixes rust-lang#73159 This is similar to rust-lang#69350 - if the user didn't initially write out a 'static lifetime, adding 'static in response to a lifetime error is usually the wrong thing to do.
Configuration menu - View commit details
-
Copy full SHA for fdd8a0d - Browse repository at this point
Copy the full SHA fdd8a0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 199b33f - Browse repository at this point
Copy the full SHA 199b33fView commit details -
Auto merge of rust-lang#89165 - jkugelman:read-to-end-overallocation,…
… r=joshtriplett Fix read_to_end to not grow an exact size buffer If you know how much data to expect and use `Vec::with_capacity` to pre-allocate a buffer of that capacity, `Read::read_to_end` will still double its capacity. It needs some space to perform a read, even though that read ends up returning `0`. It's a bummer to carefully pre-allocate 1GB to read a 1GB file into memory and end up using 2GB. This fixes that behavior by special casing a full buffer and reading into a small "probe" buffer instead. If that read returns `0` then it's confirmed that the buffer was the perfect size. If it doesn't, the probe buffer is appended to the normal buffer and the read loop continues. Fixing this allows several workarounds in the standard library to be removed: - `Take` no longer needs to override `Read::read_to_end`. - The `reservation_size` callback that allowed `Take` to inhibit the previous over-allocation behavior isn't needed. - `fs::read` doesn't need to reserve an extra byte in `initial_buffer_size`. Curiously, there was a unit test that specifically checked that `Read::read_to_end` *does* over-allocate. I removed that test, too.
Configuration menu - View commit details
-
Copy full SHA for d25de31 - Browse repository at this point
Copy the full SHA d25de31View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55a3c86 - Browse repository at this point
Copy the full SHA 55a3c86View commit details -
Rollup merge of rust-lang#86434 - CDirkx:ipv6-benchmarking, r=joshtri…
…plett Add `Ipv6Addr::is_benchmarking` This PR adds the unstable method `Ipv6Addr::is_benchmarking`. This method is added for parity with `Ipv4Addr::is_benchmarking`, and I intend to use it in a future rework of `Ipv6Addr::is_global` (edit: rust-lang#86634) to more accurately follow the [IANA Special Address Registry](https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml) (like is done in `Ipv4Addr::is_global`). With `Ipv6Addr::is_benchmarking` and `Ipv4Addr::is_benchmarking` now both existing, `IpAddr::is_benchmarking` is also added.
Configuration menu - View commit details
-
Copy full SHA for 22714ed - Browse repository at this point
Copy the full SHA 22714edView commit details -
Rollup merge of rust-lang#86828 - lambinoo:67441-const-fn-copied-take…
…-replace, r=joshtriplett const fn for option copied, take & replace Tracking issue: [rust-lang#67441](rust-lang#67441) Adding const fn for the copied, take and replace method of Option. Also adding necessary unit test. It's my first contribution so I am pretty sure I don't know what I'm doing but there's a first for everything!
Configuration menu - View commit details
-
Copy full SHA for 287af04 - Browse repository at this point
Copy the full SHA 287af04View commit details -
Rollup merge of rust-lang#87679 - ssomers:btree_comments, r=joshtriplett
BTree: refine some comments
Configuration menu - View commit details
-
Copy full SHA for 0f9e960 - Browse repository at this point
Copy the full SHA 0f9e960View commit details -
Rollup merge of rust-lang#87910 - iago-lito:mark_unsafe_nonzero_arith…
…metics_as_const, r=joshtriplett Mark unsafe methods NonZero*::unchecked_(add|mul) as const. Now that rust-lang/rfcs#3016 has landed, these two unstable `std` function can be marked `const`, according to this detail of rust-lang#84186.
Configuration menu - View commit details
-
Copy full SHA for e500f1c - Browse repository at this point
Copy the full SHA e500f1cView commit details -
Rollup merge of rust-lang#88286 - LeSeulArtichaut:unnecessary-unsafe-…
…block-std, r=dtolnay Remove unnecessary unsafe block in `process_unix` Because it's nested under this unsafe fn! This block isn't detected as unnecessary because of a bug in the compiler: rust-lang#88260.
Configuration menu - View commit details
-
Copy full SHA for f2ec71f - Browse repository at this point
Copy the full SHA f2ec71fView commit details -
Rollup merge of rust-lang#88305 - ijackson:exitstatus-debug, r=dtolnay
Manual Debug for Unix ExitCode ExitStatus ExitStatusError These structs have misleading names. An ExitStatus[Error] is actually a Unix wait status; an ExitCode is actually an exit status. These misleading names appear in the `Debug` output. The `Display` impls on Unix have been improved, but the `Debug` impls are still misleading, as reported in rust-lang#74832. Fix this by pretending that these internal structs are called `unix_exit_status` and `unix_wait_status` as applicable. (We can't actually rename the structs because of the way that the cross-platform machinery works: the names are cross-platform.) After this change, this program ``` #![feature(exit_status_error)] fn main(){ let x = std::process::Command::new("false").status().unwrap(); dbg!(x.exit_ok()); eprintln!("x={:?}",x); } ``` produces this output ``` [src/main.rs:4] x.exit_ok() = Err( ExitStatusError( unix_wait_status( 256, ), ), ) x=ExitStatus(unix_wait_status(256)) ``` Closes rust-lang#74832
Configuration menu - View commit details
-
Copy full SHA for e4d257e - Browse repository at this point
Copy the full SHA e4d257eView commit details -
Rollup merge of rust-lang#88353 - jhpratt:stabilize-array-as-ref, r=j…
…oshtriplett Partially stabilize `array_methods` This stabilizes `<[T; N]>::as_slice` and `<[T; N]>::as_mut_slice`, which is forms part of the `array_methods` feature: rust-lang#76118. This also makes `<[T; N]>::as_slice` const due to its trivial nature.
Configuration menu - View commit details
-
Copy full SHA for 70d82e0 - Browse repository at this point
Copy the full SHA 70d82e0View commit details -
Rollup merge of rust-lang#88370 - Seppel3210:master, r=dtolnay
Add missing `# Panics` section to `Vec` method namely `Vec::extend_from_within`
Configuration menu - View commit details
-
Copy full SHA for 5e66ba7 - Browse repository at this point
Copy the full SHA 5e66ba7View commit details -
Rollup merge of rust-lang#88481 - bjorn3:remove_feature_gates, r=cjgi…
…llot Remove some feature gates The first commit removes various feature gates that are unused. The second commit replaces some `Fn` implementations with `Iterator` implementations, which is much cleaner IMO. The third commit replaces an unboxed_closures feature gate with min_specialization. For some reason the unboxed_closures feature gate suppresses the min_specialization feature gate from triggering on an `TrustedStep` impl. The last comment just turns a regular comment into a doc comment as drive by cleanup. I can move it to a separate PR if preferred.
Configuration menu - View commit details
-
Copy full SHA for 5215b85 - Browse repository at this point
Copy the full SHA 5215b85View commit details -
Rollup merge of rust-lang#89138 - newpavlov:patch-2, r=dtolnay
Fix link in Ipv6Addr::to_ipv4 docs
Configuration menu - View commit details
-
Copy full SHA for c167eee - Browse repository at this point
Copy the full SHA c167eeeView commit details -
Rollup merge of rust-lang#89401 - owengage:master, r=joshtriplett
Add truncate note to Vec::resize A very minor addition to the `Vec::resize` documentation to point out the `truncate` method. When I was searching for something matching `truncate` I managed to miss it, along with some colleagues. We later found it by chance. We did find `resize` however, so I was hoping to point it out in the documentation.
Configuration menu - View commit details
-
Copy full SHA for d236c04 - Browse repository at this point
Copy the full SHA d236c04View commit details -
Rollup merge of rust-lang#89467 - tniessen:rustdoc-unecessary, r=jyn514
Fix typos in rustdoc/lints This PR merely fixes a few typos in a recently introduced change :) Refs: rust-lang#85223
Configuration menu - View commit details
-
Copy full SHA for 8c7c689 - Browse repository at this point
Copy the full SHA 8c7c689View commit details -
Rollup merge of rust-lang#89472 - nagisa:nagisa/wsa-cleanup, r=dtolnay
Only register `WSACleanup` if `WSAStartup` is actually ever called See rust-lang#85595 Fixes rust-lang#85441
Configuration menu - View commit details
-
Copy full SHA for e021a10 - Browse repository at this point
Copy the full SHA e021a10View commit details -
Rollup merge of rust-lang#89505 - Aaron1011:nll-const-test, r=Mark-Si…
…mulacrum Add regression test for spurious const error with NLL Fixes rust-lang#55825
Configuration menu - View commit details
-
Copy full SHA for 5c5dde8 - Browse repository at this point
Copy the full SHA 5c5dde8View commit details -
Configuration menu - View commit details
-
Copy full SHA for bce8621 - Browse repository at this point
Copy the full SHA bce8621View commit details -
Move generic error message to separate branches
This decomposes an error message in generic constants into more specific branches, for better readability.
Configuration menu - View commit details
-
Copy full SHA for 9cb30f4 - Browse repository at this point
Copy the full SHA 9cb30f4View commit details -
Auto merge of rust-lang#89512 - Manishearth:rollup-meh9x7r, r=Manishe…
…arth Rollup of 14 pull requests Successful merges: - rust-lang#86434 (Add `Ipv6Addr::is_benchmarking`) - rust-lang#86828 (const fn for option copied, take & replace) - rust-lang#87679 (BTree: refine some comments) - rust-lang#87910 (Mark unsafe methods NonZero*::unchecked_(add|mul) as const.) - rust-lang#88286 (Remove unnecessary unsafe block in `process_unix`) - rust-lang#88305 (Manual Debug for Unix ExitCode ExitStatus ExitStatusError) - rust-lang#88353 (Partially stabilize `array_methods`) - rust-lang#88370 (Add missing `# Panics` section to `Vec` method) - rust-lang#88481 (Remove some feature gates) - rust-lang#89138 (Fix link in Ipv6Addr::to_ipv4 docs) - rust-lang#89401 (Add truncate note to Vec::resize) - rust-lang#89467 (Fix typos in rustdoc/lints) - rust-lang#89472 (Only register `WSACleanup` if `WSAStartup` is actually ever called) - rust-lang#89505 (Add regression test for spurious const error with NLL) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Configuration menu - View commit details
-
Copy full SHA for 44593ae - Browse repository at this point
Copy the full SHA 44593aeView commit details -
librustdoc: Use correct heading levels.
- Avoid multiple <h1>s on a page. - The <h#> tags should follow a semantic hierarchy. - Cap at h6 (no h7)
Mukund Lakshman committedOct 4, 2021 Configuration menu - View commit details
-
Copy full SHA for a8a40ea - Browse repository at this point
Copy the full SHA a8a40eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 03fbc16 - Browse repository at this point
Copy the full SHA 03fbc16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00152d8 - Browse repository at this point
Copy the full SHA 00152d8View commit details -
Auto merge of rust-lang#89489 - FabianWolff:issue-89485, r=oli-obk
Fix unsound optimization with explicit variant discriminants Fixes rust-lang#89485.
Configuration menu - View commit details
-
Copy full SHA for a479766 - Browse repository at this point
Copy the full SHA a479766View commit details -
Auto merge of rust-lang#88834 - the8472:char-count, r=joshtriplett
optimize str::from_utf8() validation when slice contains multibyte chars and str.chars().count() in all cases The change shows small but consistent improvements across several x86 target feature levels. I also tried to optimize counting with `slice.as_chunks` but that yielded more inconsistent results, bigger improvements for some optimization levels, lesser ones in others. ``` old, -O2, x86-64 test str::str_char_count_emoji ... bench: 1,924 ns/iter (+/- 26) test str::str_char_count_lorem ... bench: 879 ns/iter (+/- 12) test str::str_char_count_lorem_short ... bench: 5 ns/iter (+/- 0) new, -O2, x86-64 test str::str_char_count_emoji ... bench: 1,878 ns/iter (+/- 21) test str::str_char_count_lorem ... bench: 851 ns/iter (+/- 11) test str::str_char_count_lorem_short ... bench: 4 ns/iter (+/- 0) old, -O2, x86-64-v2 test str::str_char_count_emoji ... bench: 1,477 ns/iter (+/- 46) test str::str_char_count_lorem ... bench: 675 ns/iter (+/- 15) test str::str_char_count_lorem_short ... bench: 5 ns/iter (+/- 0) new, -O2, x86-64-v2 test str::str_char_count_emoji ... bench: 1,323 ns/iter (+/- 39) test str::str_char_count_lorem ... bench: 593 ns/iter (+/- 18) test str::str_char_count_lorem_short ... bench: 4 ns/iter (+/- 0) old, -O2, x86-64-v3 test str::str_char_count_emoji ... bench: 748 ns/iter (+/- 7) test str::str_char_count_lorem ... bench: 348 ns/iter (+/- 2) test str::str_char_count_lorem_short ... bench: 5 ns/iter (+/- 0) new, -O2, x86-64-v3 test str::str_char_count_emoji ... bench: 650 ns/iter (+/- 4) test str::str_char_count_lorem ... bench: 301 ns/iter (+/- 1) test str::str_char_count_lorem_short ... bench: 5 ns/iter (+/- 0) ``` and for the multibyte-char string validation: ``` old, -O2, x86-64 test str::str_validate_emoji ... bench: 4,606 ns/iter (+/- 64) new, -O2, x86-64 test str::str_validate_emoji ... bench: 3,837 ns/iter (+/- 60) ```
Configuration menu - View commit details
-
Copy full SHA for 175b8db - Browse repository at this point
Copy the full SHA 175b8dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 72f0180 - Browse repository at this point
Copy the full SHA 72f0180View commit details -
Make
proc_macro_derive_resolution_fallback
a future-breakage lintWhen `cargo report future-incompatibilities` is stabilized (see rust-lang#71249), this will cause dependencies that trigger this lint to be included in the report.
Configuration menu - View commit details
-
Copy full SHA for 32a5abc - Browse repository at this point
Copy the full SHA 32a5abcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 47edde1 - Browse repository at this point
Copy the full SHA 47edde1View commit details -
Auto merge of rust-lang#7761 - giraffate:fix_ice_in_inplicit_hasher, …
…r=Manishearth Fix ICE in `implicit_hasher` close rust-lang#7712 changelog: Fix ICE in [`implicit_hasher`]
Configuration menu - View commit details
-
Copy full SHA for 3311b36 - Browse repository at this point
Copy the full SHA 3311b36View commit details -
Configuration menu - View commit details
-
Copy full SHA for 388a3d0 - Browse repository at this point
Copy the full SHA 388a3d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40fe064 - Browse repository at this point
Copy the full SHA 40fe064View commit details -
Configuration menu - View commit details
-
Copy full SHA for 013aa37 - Browse repository at this point
Copy the full SHA 013aa37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 388bcc1 - Browse repository at this point
Copy the full SHA 388bcc1View commit details -
Auto merge of rust-lang#7762 - HKalbasi:master, r=Manishearth
Add lint `equatable_if_let` This is my attempt for rust-lang#1716. There is a major false positive, which is people may implement `PartialEq` in a different way. It is unactionable at the moment so I put it into `nursery`. There is a trait `StructuralPartialEq` for solving this problem which is promising but it has several problems currently: * Integers and tuples doesn't implement it. * Some types wrongly implement it, like `Option<T>` when `T` doesn't implement it. I consider them bugs and against the propose of `StructuralPartialEq`. When they become fixed, this lint can become a useful lint with a single line change. changelog: New lint: [`equatable_if_let`]
Configuration menu - View commit details
-
Copy full SHA for abe551e - Browse repository at this point
Copy the full SHA abe551eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 079c075 - Browse repository at this point
Copy the full SHA 079c075View commit details -
Rollup merge of rust-lang#83655 - sebpop:arm64-outline-atomics, r=wor…
…kingjubilee [aarch64] add target feature outline-atomics Enable outline-atomics by default as enabled in clang by the following commit https://reviews.llvm.org/rGc5e7e649d537067dec7111f3de1430d0fc8a4d11 Performance improves by several orders of magnitude when using the LSE instructions instead of the ARMv8.0 compatible load/store exclusive instructions. Tested on Graviton2 aarch64-linux with x.py build && x.py install && x.py test
Configuration menu - View commit details
-
Copy full SHA for 4e9cf04 - Browse repository at this point
Copy the full SHA 4e9cf04View commit details -
Rollup merge of rust-lang#87091 - the8472:more-advance-by-impls, r=jo…
…shtriplett implement advance_(back_)_by on more iterators Add more efficient, non-default implementations for `feature(iter_advance_by)` (rust-lang#77404) on more iterators and adapters. This PR only contains implementations where skipping over items doesn't elide any observable side-effects such as user-provided closures or `clone()` functions. I'll put those in a separate PR.
Configuration menu - View commit details
-
Copy full SHA for ca8a108 - Browse repository at this point
Copy the full SHA ca8a108View commit details -
Rollup merge of rust-lang#88451 - theo-lw:issue-87771, r=jackh726
Fix an ICE caused by type mismatch errors being ignored This PR fixes rust-lang#87771. It turns out that the check on `compiler/rustc_typeck/src/check/demand.rs:148` leads to the ICE. I removed it because the early return in [`check_expr_assign`](https://github.com/theo-lw/rust/blob/dec7fc3ced5bc3c18d0e5d29921d087f93189cb8/compiler/rustc_typeck/src/check/expr.rs#L928) already prevents unnecessary error messages from the call to `check_expr_coercable_to_type`.
Configuration menu - View commit details
-
Copy full SHA for a2c6075 - Browse repository at this point
Copy the full SHA a2c6075View commit details -
Rollup merge of rust-lang#88452 - xu-cheng:vecdeque-from-array, r=m-o…
…u-se VecDeque: improve performance for From<[T; N]> Create `VecDeque` directly from the array instead of inserting items one-by-one. Benchmark ``` ./x.py bench library/alloc --test-args vec_deque::bench_from_array_1000 ``` * Before ``` test vec_deque::bench_from_array_1000 ... bench: 3,991 ns/iter (+/- 717) ``` * After ``` test vec_deque::bench_from_array_1000 ... bench: 268 ns/iter (+/- 37) ```
Configuration menu - View commit details
-
Copy full SHA for 19d9a14 - Browse repository at this point
Copy the full SHA 19d9a14View commit details -
Rollup merge of rust-lang#89400 - Nitepone:nitepone/map-or-else-docfi…
…x, r=dtolnay Improve wording of `map_or_else` docs Changes doc text to refer to the "default" parameter as the "default" function. Previously, the doc text referred to the "f" parameter as the "default" function; and the "default" parameter as the "fallback" function.
Configuration menu - View commit details
-
Copy full SHA for 9e387cf - Browse repository at this point
Copy the full SHA 9e387cfView commit details -
Rollup merge of rust-lang#89407 - pierwill:recommend-clean-E0514, r=d…
…avidtwco Recommend running `cargo clean` in E0514 output This suggestion has worked for me before. Seems to me it could help others.
Configuration menu - View commit details
-
Copy full SHA for 9381d7a - Browse repository at this point
Copy the full SHA 9381d7aView commit details -
Rollup merge of rust-lang#89443 - cuviper:btree-hash-len, r=dtolnay
Include the length in BTree hashes This change makes it consistent with `Hash` for all other collections.
Configuration menu - View commit details
-
Copy full SHA for e1478d6 - Browse repository at this point
Copy the full SHA e1478d6View commit details -
Rollup merge of rust-lang#89444 - notriddle:notriddle/contains-str, r…
…=jyn514 rustdoc: use slice::contains instead of open-coding it
Configuration menu - View commit details
-
Copy full SHA for b115a16 - Browse repository at this point
Copy the full SHA b115a16View commit details -
Rollup merge of rust-lang#89447 - FabianWolff:issue-89388, r=davidtwco
Improve error message for missing angle brackets in `[_]::method` Fixes rust-lang#89388.
Configuration menu - View commit details
-
Copy full SHA for 08dd414 - Browse repository at this point
Copy the full SHA 08dd414View commit details -
Rollup merge of rust-lang#89453 - waywardmonkeys:consistent-supertrai…
…t-usage, r=nagisa Consistently use 'supertrait'. A subset of places referred to 'super-trait', so this changes them to all use 'supertrait'. This matches 'supertype' and some other usages. An exception is 'auto-trait' which is consistently used in that manner.
Configuration menu - View commit details
-
Copy full SHA for 2bc89ce - Browse repository at this point
Copy the full SHA 2bc89ceView commit details -
Rollup merge of rust-lang#89483 - hkmatsumoto:patch-diagnostics-2, r=…
…estebank Practice diagnostic message convention Detected by rust-lang#89455. r? ```@estebank```
Configuration menu - View commit details
-
Copy full SHA for 5352e17 - Browse repository at this point
Copy the full SHA 5352e17View commit details -
Rollup merge of rust-lang#89500 - FabianWolff:issue-87308, r=petroche…
…nkov Fix ICE with buffered lint referring to AST node deleted by everybody_loops Fixes rust-lang#87308. Note the following comment: https://github.com/rust-lang/rust/blob/08759c691e2e9799a3c6780ffdf910240ebd4a6b/compiler/rustc_lint/src/early.rs#L415-L417 As it turns out, this is not _always_ a bug, because `-Zunpretty=everybody_loops` causes a lot of AST nodes to be deleted, and thus some buffered lints will refer to non-existent node ids. To fix this, my changes simply ignore buffered lints if `-Zunpretty=everybody_loops` is enabled, which, from my understanding, shouldn't be a big issue because it only affects pretty-printing. Of course, a more elegant solution would only ignore buffered lints that actually point at deleted node ids, but I haven't figured out an easy way of achieving this. For the concrete example in rust-lang#87308, the buffered lint is created [here](https://github.com/rust-lang/rust/blob/08759c691e2e9799a3c6780ffdf910240ebd4a6b/compiler/rustc_expand/src/mbe/macro_rules.rs#L145-L151) with the `lint_node_id` from [here](https://github.com/rust-lang/rust/blob/08759c691e2e9799a3c6780ffdf910240ebd4a6b/compiler/rustc_expand/src/mbe/macro_rules.rs#L319), i.e. it points at the macro _expansion_, which then gets deleted by `ReplaceBodyWithLoop` [here](https://github.com/rust-lang/rust/blob/08759c691e2e9799a3c6780ffdf910240ebd4a6b/compiler/rustc_interface/src/passes.rs#L377).
Configuration menu - View commit details
-
Copy full SHA for 3d4467d - Browse repository at this point
Copy the full SHA 3d4467dView commit details -
Rollup merge of rust-lang#89508 - jhpratt:stabilize-const_panic, r=jo…
…shtriplett Stabilize `const_panic` Closes rust-lang#51999 FCP completed in rust-lang#89006 ```@rustbot``` label +A-const-eval +A-const-fn +T-lang cc ```@oli-obk``` for review (not `r?`'ing as not on lang team)
Configuration menu - View commit details
-
Copy full SHA for 9866b09 - Browse repository at this point
Copy the full SHA 9866b09View commit details -
Auto merge of rust-lang#89530 - workingjubilee:rollup-ua14iq6, r=work…
…ingjubilee Rollup of 13 pull requests Successful merges: - rust-lang#83655 ([aarch64] add target feature outline-atomics) - rust-lang#87091 (implement advance_(back_)_by on more iterators) - rust-lang#88451 (Fix an ICE caused by type mismatch errors being ignored) - rust-lang#88452 (VecDeque: improve performance for From<[T; N]>) - rust-lang#89400 (Improve wording of `map_or_else` docs) - rust-lang#89407 (Recommend running `cargo clean` in E0514 output) - rust-lang#89443 (Include the length in BTree hashes) - rust-lang#89444 (rustdoc: use slice::contains instead of open-coding it) - rust-lang#89447 (Improve error message for missing angle brackets in `[_]::method`) - rust-lang#89453 (Consistently use 'supertrait'.) - rust-lang#89483 (Practice diagnostic message convention) - rust-lang#89500 (Fix ICE with buffered lint referring to AST node deleted by everybody_loops) - rust-lang#89508 (Stabilize `const_panic`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Configuration menu - View commit details
-
Copy full SHA for 003d8d3 - Browse repository at this point
Copy the full SHA 003d8d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02c2a35 - Browse repository at this point
Copy the full SHA 02c2a35View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f9f7f6 - Browse repository at this point
Copy the full SHA 9f9f7f6View commit details -
fix busted JavaScript in error index generator
The old JavaScript didn't work. It filled the browser console with "e.previousElementSibling not defined" errors, because it didn't account for the example-wrap div that a newer version of rustdoc added. Additionally, it had copied versions of utility functions that had been optimized in rustdoc main.js. This version updates those.
Configuration menu - View commit details
-
Copy full SHA for ccd2be5 - Browse repository at this point
Copy the full SHA ccd2be5View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5d0178 - Browse repository at this point
Copy the full SHA e5d0178View commit details
Commits on Oct 5, 2021
-
Fix heading for methods on trait impls.
Mukund Lakshman committedOct 5, 2021 Configuration menu - View commit details
-
Copy full SHA for 4a6aa6e - Browse repository at this point
Copy the full SHA 4a6aa6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c35a700 - Browse repository at this point
Copy the full SHA c35a700View commit details -
Change
Markdown(...)
toMarkdown { ... }
Mukund Lakshman committedOct 5, 2021 Configuration menu - View commit details
-
Copy full SHA for 6518a0a - Browse repository at this point
Copy the full SHA 6518a0aView commit details -
No need to default offset since we always override it.
Mukund Lakshman committedOct 5, 2021 Configuration menu - View commit details
-
Copy full SHA for 13558ee - Browse repository at this point
Copy the full SHA 13558eeView commit details -
heading_level: u32 -> heading_offset: HeadingOffset
Mukund Lakshman committedOct 5, 2021 Configuration menu - View commit details
-
Copy full SHA for f1425c7 - Browse repository at this point
Copy the full SHA f1425c7View commit details -
Add tests for ensuring docblock headings.
Mukund Lakshman committedOct 5, 2021 Configuration menu - View commit details
-
Copy full SHA for 08a4f24 - Browse repository at this point
Copy the full SHA 08a4f24View commit details -
Rollup merge of rust-lang#87993 - kornelski:try_reserve_stable, r=jos…
…htriplett Stabilize try_reserve Stabilization PR for the [`try_reserve` feature](rust-lang#48043 (comment)).
Configuration menu - View commit details
-
Copy full SHA for 99e6e3f - Browse repository at this point
Copy the full SHA 99e6e3fView commit details -
Rollup merge of rust-lang#88090 - nbdd0121:inference, r=nikomatsakis
Perform type inference in range pattern Fix rust-lang#88074
Configuration menu - View commit details
-
Copy full SHA for 4f6afee - Browse repository at this point
Copy the full SHA 4f6afeeView commit details -
Rollup merge of rust-lang#88780 - orlp:int-abs-diff, r=m-ou-se
Added abs_diff for integer types. Closes rust-lang#62111.
Configuration menu - View commit details
-
Copy full SHA for 234fa90 - Browse repository at this point
Copy the full SHA 234fa90View commit details -
Rollup merge of rust-lang#89270 - seanyoung:join_fold, r=m-ou-se
path.push() should work as expected on windows verbatim paths On Windows, std::fs::canonicalize() returns an so-called UNC path. UNC paths differ with regular paths because: - This type of path can much longer than a non-UNC path (32k vs 260 characters). - The prefix for a UNC path is ``Component::Prefix(Prefix::DiskVerbatim(..)))`` - No `/` is allowed - No `.` is allowed - No `..` is allowed Rust has poor handling of such paths. If you join a UNC path with a path with any of the above, then this will not work. I've implemented a new method `fn join_fold()` which joins paths and also removes any `.` and `..` from it, and replaces `/` with `\` on Windows. Using this function it is possible to use UNC paths without issue. In addition, this function is useful on Linux too; paths can be appended without having to call `canonicalize()` to remove the `.` and `..`. This PR needs test cases, which can I add. I hope this will a start of a discussion.
Configuration menu - View commit details
-
Copy full SHA for 7aa9ce5 - Browse repository at this point
Copy the full SHA 7aa9ce5View commit details -
Rollup merge of rust-lang#89413 - matthewjasper:spec-marker-fix, r=ni…
…komatsakis Correctly handle supertraits for min_specialization Supertraits of specialization markers could circumvent checks for min_specialization. Elaborating predicates prevents this. r? ````@nikomatsakis````
Configuration menu - View commit details
-
Copy full SHA for 05b4cd6 - Browse repository at this point
Copy the full SHA 05b4cd6View commit details -
Rollup merge of rust-lang#89456 - cuviper:llvm-13, r=nikic
Update to the final LLVM 13.0.0 release
Configuration menu - View commit details
-
Copy full SHA for a19537d - Browse repository at this point
Copy the full SHA a19537dView commit details -
Rollup merge of rust-lang#89466 - Mark-Simulacrum:query-macros, r=oli…
…-obk Fix bug with query modifier parsing The previous macro_rules! parsers failed when an additional modifier was added with ambiguity errors. The error is pretty unclear as to what exactly the cause here is, but this change simplifies the argument parsing code such that the error is avoided. Extracted from other work, and somewhat duplicates 0358edeb5 from rust-lang#85830, but this approach seems a little simpler to me. Not technically currently necessary but seems like a good cleanup.
Configuration menu - View commit details
-
Copy full SHA for 36f173f - Browse repository at this point
Copy the full SHA 36f173fView commit details -
Rollup merge of rust-lang#89473 - FabianWolff:issue-89469, r=joshtrip…
…lett Fix extra `non_snake_case` warning for shorthand field bindings Fixes rust-lang#89469. The problem is the innermost `if` condition here: https://github.com/rust-lang/rust/blob/d14731cb3ced8318d7fc83cbe838f0e7f2fb3b40/compiler/rustc_lint/src/nonstandard_style.rs#L435-L452 This code runs for every `PatKind::Binding`, so if a struct has multiple fields, say A and B, and both are bound in a pattern using shorthands, the call to `self.check_snake_case()` will indeed be skipped in the `check_pat()` call for `A`; but when `check_pat()` is called for `B`, the loop will still iterate over `A`, and `field.ident (= A) != ident (= B)` will be true. I have fixed this by only looking at non-shorthand bindings, and only the binding that `check_pat()` was actually called for.
Configuration menu - View commit details
-
Copy full SHA for c2bfe45 - Browse repository at this point
Copy the full SHA c2bfe45View commit details -
Rollup merge of rust-lang#89474 - camelid:better-pass-name, r=jyn514
rustdoc: Improve doctest pass's name and module's name As the docs at the top of the file say, it is an overloaded pass and actually runs two lints.
Configuration menu - View commit details
-
Copy full SHA for 02b52ca - Browse repository at this point
Copy the full SHA 02b52caView commit details -
Rollup merge of rust-lang#89478 - zvavybir:master, r=jyn514
Fixed numerus of error message When there are redundant trait requirements and these are hidden, a message is generated by the following code snippet: `format!("{} redundant requirements hidden", count)` But if there is only a single hidden requirement, it will still print this message in plural instead of singular.
Configuration menu - View commit details
-
Copy full SHA for ec41455 - Browse repository at this point
Copy the full SHA ec41455View commit details -
Rollup merge of rust-lang#89480 - hameerabbasi:issue-89118-test, r=ja…
…ckh726 Add test for issue 89118. This PR adds a test for issue 89118. Closes rust-lang#89118.
Configuration menu - View commit details
-
Copy full SHA for 25cc28e - Browse repository at this point
Copy the full SHA 25cc28eView commit details -
Rollup merge of rust-lang#89487 - FabianWolff:issue-89396, r=petroche…
…nkov Try to recover from a `=>` -> `=` or `->` typo in a match arm Fixes rust-lang#89396.
Configuration menu - View commit details
-
Copy full SHA for 90e96f9 - Browse repository at this point
Copy the full SHA 90e96f9View commit details -
Rollup merge of rust-lang#89494 - FabianWolff:issue-84075, r=davidtwco
Deny `where` clauses on `auto` traits Fixes rust-lang#84075.
Configuration menu - View commit details
-
Copy full SHA for c9158db - Browse repository at this point
Copy the full SHA c9158dbView commit details -
Rollup merge of rust-lang#89511 - lnicola:rust-analyzer-2021-10-04, r…
…=lnicola ⬆️ rust-analyzer
Configuration menu - View commit details
-
Copy full SHA for 92dbb69 - Browse repository at this point
Copy the full SHA 92dbb69View commit details -
Rollup merge of rust-lang#89536 - RalfJung:miri, r=RalfJung
update Miri Let's get the recent fixes and improvements shipped. r? ````@ghost````
Configuration menu - View commit details
-
Copy full SHA for 2ae8ced - Browse repository at this point
Copy the full SHA 2ae8cedView commit details -
Auto merge of rust-lang#89545 - workingjubilee:rollup-ooxf3p2, r=work…
…ingjubilee Rollup of 15 pull requests Successful merges: - rust-lang#87993 (Stabilize try_reserve) - rust-lang#88090 (Perform type inference in range pattern) - rust-lang#88780 (Added abs_diff for integer types.) - rust-lang#89270 (path.push() should work as expected on windows verbatim paths) - rust-lang#89413 (Correctly handle supertraits for min_specialization) - rust-lang#89456 (Update to the final LLVM 13.0.0 release) - rust-lang#89466 (Fix bug with query modifier parsing) - rust-lang#89473 (Fix extra `non_snake_case` warning for shorthand field bindings) - rust-lang#89474 (rustdoc: Improve doctest pass's name and module's name) - rust-lang#89478 (Fixed numerus of error message) - rust-lang#89480 (Add test for issue 89118.) - rust-lang#89487 (Try to recover from a `=>` -> `=` or `->` typo in a match arm) - rust-lang#89494 (Deny `where` clauses on `auto` traits) - rust-lang#89511 (:arrow_up: rust-analyzer) - rust-lang#89536 (update Miri) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Configuration menu - View commit details
-
Copy full SHA for a804c4b - Browse repository at this point
Copy the full SHA a804c4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c79447e - Browse repository at this point
Copy the full SHA c79447eView commit details -
Rollup merge of rust-lang#87631 - :solarish_upd_fs, r=joshtriplett
os current_exe using same approach as linux to get always the full ab… …solute path
Configuration menu - View commit details
-
Copy full SHA for 0fb0122 - Browse repository at this point
Copy the full SHA 0fb0122View commit details -
Rollup merge of rust-lang#88234 - hkmatsumoto:rustdoc-impls-for-primi…
…tive, r=jyn514 rustdoc-json: Don't ignore impls for primitive types Fix the issue discussed at [Zulip](https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/.E2.9C.94.20Json.20output.20lacks.20some.20item.20which.20are.20supposed.20to.20be.20there) r? ``@jyn514``
Configuration menu - View commit details
-
Copy full SHA for 7a09755 - Browse repository at this point
Copy the full SHA 7a09755View commit details -
Rollup merge of rust-lang#88651 - AGSaidi:monotonize-inner-64b-aarch6…
…4, r=dtolnay Use the 64b inner:monotonize() implementation not the 128b one for aarch64 aarch64 prior to v8.4 (FEAT_LSE2) doesn't have an instruction that guarantees untorn 128b reads except for completing a 128b load/store exclusive pair (ldxp/stxp) or compare-and-swap (casp) successfully. The requirement to complete a 128b read+write atomic is actually more expensive and more unfair than the previous implementation of monotonize() which used a Mutex on aarch64, especially at large core counts. For aarch64 switch to the 64b atomic implementation which is about 13x faster for a benchmark that involves many calls to Instant::now().
Configuration menu - View commit details
-
Copy full SHA for dd223d5 - Browse repository at this point
Copy the full SHA dd223d5View commit details -
Rollup merge of rust-lang#88816 - dns2utf8:rustdoc_test_gui_2k_consta…
…nts, r=GuillaumeGomez Rustdoc migrate to table so the gui can handle >2k constants Closes rust-lang#88545. This PR adds a test for overlapping entries in the `item-table` rust-lang#88545 It currently includes the commit with the workaround from rust-lang#88776
Configuration menu - View commit details
-
Copy full SHA for 52d3afa - Browse repository at this point
Copy the full SHA 52d3afaView commit details -
Rollup merge of rust-lang#89244 - DeveloperC286:pair_slices_fields_to…
…_private, r=joshtriplett refactor: VecDeques PairSlices fields to private Reducing VecDeque's PairSlices fields to private, a `from(...)` method is already used to create PairSlices.
Configuration menu - View commit details
-
Copy full SHA for eeadc9d - Browse repository at this point
Copy the full SHA eeadc9dView commit details -
Rollup merge of rust-lang#89364 - hkmatsumoto:encode-json-with-utf-8,…
… r=Mark-Simulacrum rustdoc-json: Encode json files with UTF-8 Currently, `check_missing_items.py` malfunctions when the index contains some letters like emojis. Related to rust-lang#89360.
Configuration menu - View commit details
-
Copy full SHA for 27b84a9 - Browse repository at this point
Copy the full SHA 27b84a9View commit details -
Rollup merge of rust-lang#89423 - DevinR528:reachable-fields, r=Nadri…
…eril Fix ICE caused by non_exaustive_omitted_patterns struct lint fixes rust-lang#89382 Add check that a list of `Pat`s is non empty to prevent ICE in `FnCtxt::lint_non_exhaustive_omitted_patterns`. Is related to rust-lang#89374 and rust-lang#89105
Configuration menu - View commit details
-
Copy full SHA for 87f782e - Browse repository at this point
Copy the full SHA 87f782eView commit details -
Rollup merge of rust-lang#89426 - davidtwco:bootstrap-nix-toolchain-e…
…nv-var, r=Mark-Simulacrum bootstrap: add config option for nix patching On NixOS systems, bootstrap will patch rustc used in bootstrapping after checking `/etc/os-release` (to confirm the current distribution is NixOS). However, when using Nix on a non-NixOS system, it can be desirable for bootstrap to patch rustc. In this commit, a `patch-binaries-for-nix` option is added to `config.toml`, which allows for user opt-in to bootstrap's Nix patching. r? ``@Mark-Simulacrum``
Configuration menu - View commit details
-
Copy full SHA for 94b72f4 - Browse repository at this point
Copy the full SHA 94b72f4View commit details -
Rollup merge of rust-lang#89462 - devnexen:haiku_thread_aff_build_fix…
…, r=nagisa haiku thread affinity build fix
Configuration menu - View commit details
-
Copy full SHA for a23d7f0 - Browse repository at this point
Copy the full SHA a23d7f0View commit details -
Rollup merge of rust-lang#89482 - hkmatsumoto:patch-diagnostics, r=jo…
…shtriplett Follow the diagnostic output style guide Detected by rust-lang#89455.
Configuration menu - View commit details
-
Copy full SHA for 04314a6 - Browse repository at this point
Copy the full SHA 04314a6View commit details -
Rollup merge of rust-lang#89504 - Aaron1011:rpit-nll-static, r=nikoma…
…tsakis Don't suggest replacing region with 'static in NLL Fixes rust-lang#73159 This is similar to rust-lang#69350 - if the user didn't initially write out a 'static lifetime, adding 'static in response to a lifetime error is usually the wrong thing to do.
Configuration menu - View commit details
-
Copy full SHA for bf62c6d - Browse repository at this point
Copy the full SHA bf62c6dView commit details -
Rollup merge of rust-lang#89535 - notriddle:notriddle/error-index-gen…
…erator-js, r=Mark-Simulacrum fix busted JavaScript in error index generator The old JavaScript didn't work. It filled the browser console with "e.previousElementSibling not defined" errors, because it didn't account for the example-wrap div that a newer version of rustdoc added. Additionally, it had copied versions of utility functions that had been optimized in rustdoc main.js. This version updates those.
Configuration menu - View commit details
-
Copy full SHA for 068683b - Browse repository at this point
Copy the full SHA 068683bView commit details -
Auto merge of rust-lang#89549 - Manishearth:rollup-mhkyc16, r=Manishe…
…arth Rollup of 12 pull requests Successful merges: - rust-lang#87631 (os current_exe using same approach as linux to get always the full ab…) - rust-lang#88234 (rustdoc-json: Don't ignore impls for primitive types) - rust-lang#88651 (Use the 64b inner:monotonize() implementation not the 128b one for aarch64) - rust-lang#88816 (Rustdoc migrate to table so the gui can handle >2k constants) - rust-lang#89244 (refactor: VecDeques PairSlices fields to private) - rust-lang#89364 (rustdoc-json: Encode json files with UTF-8) - rust-lang#89423 (Fix ICE caused by non_exaustive_omitted_patterns struct lint) - rust-lang#89426 (bootstrap: add config option for nix patching) - rust-lang#89462 (haiku thread affinity build fix) - rust-lang#89482 (Follow the diagnostic output style guide) - rust-lang#89504 (Don't suggest replacing region with 'static in NLL) - rust-lang#89535 (fix busted JavaScript in error index generator) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Configuration menu - View commit details
-
Copy full SHA for 074f636 - Browse repository at this point
Copy the full SHA 074f636View commit details -
Auto merge of rust-lang#89266 - cjgillot:session-ich, r=michaelwoerister
Move ICH to rustc_query_system Based on rust-lang#89183 The StableHashingContext does not need to be in rustc_middle. This PR moves it to rustc_query_system. This will avoid a dependency between rustc_ast_lowering and rustc_middle in rust-lang#89124.
Configuration menu - View commit details
-
Copy full SHA for 55111d6 - Browse repository at this point
Copy the full SHA 55111d6View commit details -
Auto merge of rust-lang#89363 - oli-obk:in_tracing_we_trust, r=Mark-S…
…imulacrum Fix performance regression with #[instrument] linked tracing PR: tokio-rs/tracing#1600 regression introduced by rust-lang#89048
Configuration menu - View commit details
-
Copy full SHA for 25ec827 - Browse repository at this point
Copy the full SHA 25ec827View commit details -
for signed overflowing remainder, delay comparing lhs with MIN
Since the wrapped remainder is going to be 0 for all cases when the rhs is -1, there is no need to divide in this case. Comparing the lhs with MIN is only done for the overflow bool. In particular, this results in better code generation for wrapping remainder, which discards the overflow bool completely.
Configuration menu - View commit details
-
Copy full SHA for 4ec0377 - Browse repository at this point
Copy the full SHA 4ec0377View commit details -
RustWrapper: adapt for LLVM API change of fatal_error_handler_t
No functional changes intended. The LLVM commit llvm/llvm-project@e463b69 changed an argument of fatal_error_handler_t from std::string to char*. This adapts RustWrapper accordingly.
Configuration menu - View commit details
-
Copy full SHA for 67a82e2 - Browse repository at this point
Copy the full SHA 67a82e2View commit details -
Make cfg implicitly imply doc(cfg)
This is only active when the `doc_cfg` feature is active. The implicit cfg can be overridden via #[doc(cfg(...))], so e.g. to hide a #[cfg] you can use something like: ```rust #[cfg(unix)] #[doc(cfg(all()))] pub struct Unix; ``` (since `all()` is always true, it is never shown in the docs)
Configuration menu - View commit details
-
Copy full SHA for 10cdbd8 - Browse repository at this point
Copy the full SHA 10cdbd8View commit details -
Allow adding a set of cfg's to hide from being implicitly doc(cfg)'d
By adding #![doc(cfg_hide(foobar))] to the crate attributes the cfg #[cfg(foobar)] (and _only_ that _exact_ cfg) will not be implicitly treated as a doc(cfg) to render a message in the documentation.
Configuration menu - View commit details
-
Copy full SHA for 18fdd81 - Browse repository at this point
Copy the full SHA 18fdd81View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0031ce3 - Browse repository at this point
Copy the full SHA 0031ce3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e36a370 - Browse repository at this point
Copy the full SHA e36a370View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56e5f61 - Browse repository at this point
Copy the full SHA 56e5f61View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2e4e59 - Browse repository at this point
Copy the full SHA b2e4e59View commit details -
refactor: VecDeques IterMut fields to private
Made the fields of VecDeque's IterMut private by creating a IterMut::new(...) function to create a new instance of IterMut and migrating usage to use IterMut::new(...).
Configuration menu - View commit details
-
Copy full SHA for 5af61cb - Browse repository at this point
Copy the full SHA 5af61cbView commit details -
Note specific regions involved in 'borrowed data escapes' error
Fixes rust-lang#67007 Currently, a 'borrowed data escapes' error does not mention the specific lifetime involved (except indirectly through a suggestion about adding a lifetime bound). We now explain the specific lifetime relationship that failed to hold, which improves otherwise vague error messages.
Configuration menu - View commit details
-
Copy full SHA for 3c974ad - Browse repository at this point
Copy the full SHA 3c974adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c82e78 - Browse repository at this point
Copy the full SHA 7c82e78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 320ecb1 - Browse repository at this point
Copy the full SHA 320ecb1View commit details -
Auto merge of rust-lang#7770 - zvavybir:master, r=xFrednet
improved help message for `suspicious_map` `suspicious_map`'s help message assumes that the literal behavior is never the intended one, although it's sometimes. This PR adds a mention of `inspect`, offering a idiomatic alternative. fixes rust-lang#7767 --- changelog: Improved help message of [`suspicious_map`].
Configuration menu - View commit details
-
Copy full SHA for b9dedf3 - Browse repository at this point
Copy the full SHA b9dedf3View commit details -
Rollup merge of rust-lang#88706 - ThePuzzlemaker:issue-88609, r=jackh726
Normalize associated type projections when checking return type of main This fixes rust-lang#88609. Previously, the return type of `fn main()` would not have any associated type projections within normalized before checking if it implements the standard library trait `std::process::Termination`. This commit appears to fix it. This feels vaguely symptomatic of a problem in the underlying trait solving engine, but I am not sure how I would solve that. I am unsure why the example in rust-lang#88609 with `assert_impl_termination` and `fn foo()` work, but simply `fn main()` doesn't. The way that I solved this is also probably not the best way to do this, so please let me know if there is a better way to do this. I have added a build-pass regression test for this issue.
Configuration menu - View commit details
-
Copy full SHA for 960e49e - Browse repository at this point
Copy the full SHA 960e49eView commit details -
Rollup merge of rust-lang#88828 - FabianWolff:issue-88585, r=dtolnay
Use `libc::sigaction()` instead of `sys::signal()` to prevent a deadlock Fixes rust-lang#88585. POSIX [specifies](https://man7.org/linux/man-pages/man3/fork.3p.html) that after forking, > to avoid errors, the child process may only execute async-signal-safe operations until such time as one of the exec functions is called. Rust's standard library does not currently adhere to this, as evidenced by rust-lang#88585. The child process calls [`sys::signal()`](https://github.com/rust-lang/rust/blob/7bf0736e130e2203c58654f7353dbf9575e49d5c/library/std/src/sys/unix/android.rs#L76), which on Android calls [`libc::dlsym()`](https://github.com/rust-lang/rust/blob/7bf0736e130e2203c58654f7353dbf9575e49d5c/library/std/src/sys/unix/weak.rs#L101), which is [**not**](https://man7.org/linux/man-pages/man7/signal-safety.7.html) async-signal-safe, and in fact causes a deadlock in the example in rust-lang#88585. I think the easiest solution here would be to just call `libc::sigaction()` instead, which [is](https://man7.org/linux/man-pages/man7/signal-safety.7.html) async-signal-safe, provides the functionality we need, and is apparently available on all Android versions because it is also used e.g. [here](https://github.com/rust-lang/rust/blob/7bf0736e130e2203c58654f7353dbf9575e49d5c/library/std/src/sys/unix/stack_overflow.rs#L112-L114).
Configuration menu - View commit details
-
Copy full SHA for eb86098 - Browse repository at this point
Copy the full SHA eb86098View commit details -
Rollup merge of rust-lang#88871 - FabianWolff:issue-88403, r=jackh726
Fix suggestion for nested struct patterns Fixes rust-lang#88403, and also a similar problem where the unused binding is in a function parameter pattern.
Configuration menu - View commit details
-
Copy full SHA for 60b9c5d - Browse repository at this point
Copy the full SHA 60b9c5dView commit details -
Rollup merge of rust-lang#89317 - JulianKnodt:precise_errors, r=BoxyUwU
Move generic error message to separate branches This decomposes an error message in generic constants into more specific branches, for better readability. r? ``@lcnr``
Configuration menu - View commit details
-
Copy full SHA for 0352a28 - Browse repository at this point
Copy the full SHA 0352a28View commit details -
Rollup merge of rust-lang#89351 - tspiteri:wrapping_rem, r=dtolnay
for signed wrapping remainder, do not compare lhs with MIN Since the wrapped remainder is going to be 0 for all cases when the rhs is -1, there is no need to compare the lhs with MIN.
Configuration menu - View commit details
-
Copy full SHA for e745e09 - Browse repository at this point
Copy the full SHA e745e09View commit details -
Rollup merge of rust-lang#89442 - GuillaumeGomez:duplicated-doc-alias…
…, r=estebank Add check for duplicated doc aliases r? ``@estebank``
Configuration menu - View commit details
-
Copy full SHA for 80f1f0d - Browse repository at this point
Copy the full SHA 80f1f0dView commit details -
Rollup merge of rust-lang#89502 - FabianWolff:issue-89493, r=joshtrip…
…lett Fix Lower/UpperExp formatting for integers and precision zero Fixes the integer part of rust-lang#89493 (I daren't touch the floating-point formatting code). The issue is that the "subtracted" precision essentially behaves like extra trailing zeros, but this is not currently reflected in the code properly.
Configuration menu - View commit details
-
Copy full SHA for 4e8c853 - Browse repository at this point
Copy the full SHA 4e8c853View commit details -
Rollup merge of rust-lang#89523 - Aaron1011:derive-future-compat, r=w…
…esleywiser Make `proc_macro_derive_resolution_fallback` a future-breakage lint When `cargo report future-incompatibilities` is stabilized (see rust-lang#71249), this will cause dependencies that trigger this lint to be included in the report.
Configuration menu - View commit details
-
Copy full SHA for 048b0fd - Browse repository at this point
Copy the full SHA 048b0fdView commit details -
Rollup merge of rust-lang#89532 - ecstatic-morse:maybe-live-locals-en…
…um, r=oli-obk,tmiasko Document behavior of `MaybeLiveLocals` regarding enums and field-senstivity This arose from a [discussion on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/MaybeLiveLocals.20and.20Discriminants) where a new contributor attempted to implement a dead-store elimination pass using this analysis. They ran into a nasty hack around `SetDiscriminant` the effect of which is to lets handle assignments of literals to enum-typed locals (e.g. `x = Some(4)`) correctly. This took me a while to figure out. Document this oddity, so the next person will have an easier time, and add a test to enshrine the current behavior. r? ``@tmiasko``
Configuration menu - View commit details
-
Copy full SHA for f71b3e2 - Browse repository at this point
Copy the full SHA f71b3e2View commit details -
Rollup merge of rust-lang#89546 - joshtriplett:grow-metadata-faster, …
…r=petrochenkov Make an initial guess for metadata size to reduce buffer resizes When reading metadata, the compiler starts with a `Vec::new()`, which will need to grow repeatedly as the metadata gets decompressed into it. Reduce the number of resizes by starting out at the size of the compressed data.
Configuration menu - View commit details
-
Copy full SHA for 5f8b161 - Browse repository at this point
Copy the full SHA 5f8b161View commit details -
Auto merge of rust-lang#89572 - Manishearth:rollup-obz5ycp, r=Manishe…
…arth Rollup of 10 pull requests Successful merges: - rust-lang#88706 (Normalize associated type projections when checking return type of main) - rust-lang#88828 (Use `libc::sigaction()` instead of `sys::signal()` to prevent a deadlock) - rust-lang#88871 (Fix suggestion for nested struct patterns) - rust-lang#89317 (Move generic error message to separate branches) - rust-lang#89351 (for signed wrapping remainder, do not compare lhs with MIN) - rust-lang#89442 (Add check for duplicated doc aliases) - rust-lang#89502 (Fix Lower/UpperExp formatting for integers and precision zero) - rust-lang#89523 (Make `proc_macro_derive_resolution_fallback` a future-breakage lint) - rust-lang#89532 (Document behavior of `MaybeLiveLocals` regarding enums and field-senstivity) - rust-lang#89546 (Make an initial guess for metadata size to reduce buffer resizes) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Configuration menu - View commit details
-
Copy full SHA for 98a5a98 - Browse repository at this point
Copy the full SHA 98a5a98View commit details -
Consider unfulfilled obligations in binop errors
When encountering a binop where the types would have been accepted, if all the predicates had been fulfilled, include information about the predicates and suggest appropriate `#[derive]`s if possible. Point at trait(s) that needs to be `impl`emented.
Configuration menu - View commit details
-
Copy full SHA for e8fc076 - Browse repository at this point
Copy the full SHA e8fc076View commit details
Commits on Oct 6, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a15879d - Browse repository at this point
Copy the full SHA a15879dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4c62d5 - Browse repository at this point
Copy the full SHA b4c62d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for edfd6d5 - Browse repository at this point
Copy the full SHA edfd6d5View commit details -
Auto merge of rust-lang#89323 - estebank:derive-binop, r=petrochenkov
Consider unfulfilled obligations in binop errors When encountering a binop where the types would have been accepted, if all the predicates had been fulfilled, include information about the predicates and suggest appropriate `#[derive]`s if possible. Fix rust-lang#84515.
Configuration menu - View commit details
-
Copy full SHA for d7539a6 - Browse repository at this point
Copy the full SHA d7539a6View commit details -
Drop exponent suggestion when 0
This commit changes numeric literal formatting to drop exponent when exponent is 0.
Configuration menu - View commit details
-
Copy full SHA for 42f2304 - Browse repository at this point
Copy the full SHA 42f2304View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e481b9 - Browse repository at this point
Copy the full SHA 0e481b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d9488c5 - Browse repository at this point
Copy the full SHA d9488c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for e476d05 - Browse repository at this point
Copy the full SHA e476d05View commit details -
Auto merge of rust-lang#7773 - Manishearth:update-lints-mods, r=flip1995
Move module declarations back into lib.rs With rust-lang#7673 we moved a lot of things from lib.rs to lib.foo.rs. Unfortunately, rustfmt doesn't seem to work when module declarations are included via `include!` (and trying the `mod foo; use foo::*;` trick doesn't seem to work much either in our specific case). With this PR we continue generating everything in subfiles except for module declarations, which are now generated within lib.rs. changelog: none
Configuration menu - View commit details
-
Copy full SHA for 871b8b5 - Browse repository at this point
Copy the full SHA 871b8b5View commit details -
Auto merge of rust-lang#7774 - dswij:useless-exponent, r=llogiq
Useless exponent Closes rust-lang#7745 I'm open to some thoughts on dropping the exponents on suggestions when it's zero. I personally don't see any problem on this. changelog: [`useless_exponent`] suggestion drops exponent when exponent value is zero
Configuration menu - View commit details
-
Copy full SHA for c6b9158 - Browse repository at this point
Copy the full SHA c6b9158View commit details -
Configuration menu - View commit details
-
Copy full SHA for b386959 - Browse repository at this point
Copy the full SHA b386959View commit details -
Restore h1 styles, which got accidentally removed.
Mukund Lakshman committedOct 6, 2021 Configuration menu - View commit details
-
Copy full SHA for 742d8be - Browse repository at this point
Copy the full SHA 742d8beView commit details -
Revert the rustc_error_codes changes.
Mukund Lakshman committedOct 6, 2021 Configuration menu - View commit details
-
Copy full SHA for 1f86a8e - Browse repository at this point
Copy the full SHA 1f86a8eView commit details -
I'm not sure whether I should add links to `bool`, `char`, and `str`. `slice` could also be linked to.
Configuration menu - View commit details
-
Copy full SHA for 8b37928 - Browse repository at this point
Copy the full SHA 8b37928View commit details -
Configuration menu - View commit details
-
Copy full SHA for a412880 - Browse repository at this point
Copy the full SHA a412880View commit details -
Auto merge of rust-lang#7776 - tsoutsman:patch-1, r=flip1995
Fix typos I'm not sure whether I should add links to `bool`, `char`, and `str`. `slice` could also be linked to. changelog: none
Configuration menu - View commit details
-
Copy full SHA for b9d753e - Browse repository at this point
Copy the full SHA b9d753eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 33b9b95 - Browse repository at this point
Copy the full SHA 33b9b95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80408ef - Browse repository at this point
Copy the full SHA 80408efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 94e1413 - Browse repository at this point
Copy the full SHA 94e1413View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a8d7bd - Browse repository at this point
Copy the full SHA 2a8d7bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for d61f95f - Browse repository at this point
Copy the full SHA d61f95fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 109d5c7 - Browse repository at this point
Copy the full SHA 109d5c7View commit details -
Get rid of broken
ct-ng oldconfig
everywhere and directly provide a…… suitable .config file.
Configuration menu - View commit details
-
Copy full SHA for b5f9cdb - Browse repository at this point
Copy the full SHA b5f9cdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8562d94 - Browse repository at this point
Copy the full SHA 8562d94View commit details -
Auto merge of rust-lang#89599 - rusticstuff:ci-fix, r=Mark-Simulacrum
Switch to our own mirror of libisl plus `ct-ng oldconfig` fixes Switching to mirror the ISL libs (rust-lang#89594) unearthed a (possibly long-standing?) issue with `ct-ng oldconfig`. It always overwrites the mirror config values. This PR adds the ISL mirror, gets rid of `ct-ng oldconfig` and adds crosstools-ng config files which can be used directly. (Edited) Fixes rust-lang#89593. r? `@pietroalbini`
Configuration menu - View commit details
-
Copy full SHA for d480cef - Browse repository at this point
Copy the full SHA d480cefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c3465c - Browse repository at this point
Copy the full SHA 4c3465cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b6cab80 - Browse repository at this point
Copy the full SHA b6cab80View commit details -
* Remove "bool_to_options" feature * Update version for compiler feature * rustfmt
Configuration menu - View commit details
-
Copy full SHA for 8fac41a - Browse repository at this point
Copy the full SHA 8fac41aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a31518f - Browse repository at this point
Copy the full SHA a31518fView commit details -
Configuration menu - View commit details
-
Copy full SHA for a8d8bfd - Browse repository at this point
Copy the full SHA a8d8bfdView commit details -
Auto merge of rust-lang#7772 - Manishearth:doc-markdown-intra, r=cams…
…teffen Handle intra-doc links in doc_markdown Fixes rust-lang#7758 changelog: Handle intra-doc links in [`doc_markdown`]
Configuration menu - View commit details
-
Copy full SHA for 11492c7 - Browse repository at this point
Copy the full SHA 11492c7View commit details -
Simplify AttributesExt::cfg function and remove error emissions since…
… they are not useful
Configuration menu - View commit details
-
Copy full SHA for 09c7688 - Browse repository at this point
Copy the full SHA 09c7688View commit details -
Rollup merge of rust-lang#87601 - a1phyr:feature_uint_add_signed, r=k…
…ennytm Add functions to add unsigned and signed integers This PR adds methods to unsigned integers to add signed integers with good overflow semantics under `#![feature(mixed_integer_ops)]`. The added API is: ```rust // `uX` is `u8`, `u16`, `u32`, `u64`,`u128`, `usize` impl uX { pub const fn checked_add_signed(self, iX) -> Option<Self>; pub const fn overflowing_add_signed(self, iX) -> (Self, bool); pub const fn saturating_add_signed(self, iX) -> Self; pub const fn wrapping_add_signed(self, iX) -> Self; } impl iX { pub const fn checked_add_unsigned(self, uX) -> Option<Self>; pub const fn overflowing_add_unsigned(self, uX) -> (Self, bool); pub const fn saturating_add_unsigned(self, uX) -> Self; pub const fn wrapping_add_unsigned(self, uX) -> Self; pub const fn checked_sub_unsigned(self, uX) -> Option<Self>; pub const fn overflowing_sub_unsigned(self, uX) -> (Self, bool); pub const fn saturating_sub_unsigned(self, uX) -> Self; pub const fn wrapping_sub_unsigned(self, uX) -> Self; } ``` Maybe it would be interesting to also have `add_signed` that panics in debug and wraps in release ?
Configuration menu - View commit details
-
Copy full SHA for 3209582 - Browse repository at this point
Copy the full SHA 3209582View commit details -
Rollup merge of rust-lang#88523 - kpreid:category, r=yaahc
Expand documentation for `FpCategory`. I intend these changes to be helpful to readers who are not yet familiar with the quirks of floating-point numbers. Additionally, I felt it was misleading to describe `Nan` as being the result of division by zero, since most divisions by zero (except for 0/0) produce `Infinite` floats, so I moved that remark to the `Infinite` variant with adjustment. The first sentence of the `Nan` documentation is copied from `f32`; I followed the example of the `f64` documentation by referring to `f32` for general concepts, rather than duplicating the text. ---- I considered making similar changes to the documentation of the `is_*` methods of floats, but decided that that was a much larger and trickier problem; here, each of the variants' descriptions can be expected to be read in context of being mutually exclusive with the others.
Configuration menu - View commit details
-
Copy full SHA for 1e3b5d6 - Browse repository at this point
Copy the full SHA 1e3b5d6View commit details -
Rollup merge of rust-lang#89050 - DeveloperC286:drain_fields_to_priva…
…te, r=joshtriplett refactor: VecDeques Drain fields to private Made the fields of VecDeque's Drain private by creating a Drain::new(...) function to create a new instance of Drain and migrating usage to use Drain::new(...).
Configuration menu - View commit details
-
Copy full SHA for 91e3b51 - Browse repository at this point
Copy the full SHA 91e3b51View commit details -
Rollup merge of rust-lang#89245 - DeveloperC286:iter_mut_fields_to_pr…
…ivate, r=joshtriplett refactor: make VecDeque's IterMut fields module-private, not just crate-private Made the fields of VecDeque's IterMut private by creating a IterMut::new(...) function to create a new instance of IterMut and migrating usage to use IterMut::new(...).
Configuration menu - View commit details
-
Copy full SHA for 14da7fc - Browse repository at this point
Copy the full SHA 14da7fcView commit details -
Rollup merge of rust-lang#89324 - yoshuawuyts:hardware-parallelism, r…
…=m-ou-se Rename `std::thread::available_conccurrency` to `std::thread::available_parallelism` _Tracking issue: https://github.com/rust-lang/rust/issues/74479_ This PR renames `std::thread::available_conccurrency` to `std::thread::available_parallelism`. ## Rationale The API was initially named `std::thread::hardware_concurrency`, mirroring the [C++ API of the same name](https://en.cppreference.com/w/cpp/thread/thread/hardware_concurrency). We eventually decided to omit any reference to the word "hardware" after [this comment](rust-lang#74480 (comment)). And so we ended up with `available_concurrency` instead. --- For a talk I was preparing this week I was reading through ["Understanding and expressing scalable concurrency" (A. Turon, 2013)](http://aturon.github.io/academic/turon-thesis.pdf), and the following passage stood out to me (emphasis mine): > __Concurrency is a system-structuring mechanism.__ An interactive system that deals with disparate asynchronous events is naturally structured by division into concurrent threads with disparate responsibilities. Doing so creates a better fit between problem and solution, and can also decrease the average latency of the system by preventing long-running computations from obstructing quicker ones. > __Parallelism is a resource.__ A given machine provides a certain capacity for parallelism, i.e., a bound on the number of computations it can perform simultaneously. The goal is to maximize throughput by intelligently using this resource. For interactive systems, parallelism can decrease latency as well. _Chapter 2.1: Concurrency is not Parallelism. Page 30._ --- _"Concurrency is a system-structuring mechanism. Parallelism is a resource."_ — It feels like this accurately captures the way we should be thinking about these APIs. What this API returns is not "the amount of concurrency available to the program" which is a property of the program, and thus even with just a single thread is effectively unbounded. But instead it returns "the amount of _parallelism_ available to the program", which is a resource hard-constrained by the machine's capacity (and can be further restricted by e.g. operating systems). That's why I'd like to propose we rename this API from `available_concurrency` to `available_parallelism`. This still meets the criteria we previously established of not attempting to define what exactly we mean by "hardware", "threads", and other such words. Instead we only talk about "concurrency" as an abstract resource available to our program. r? `@joshtriplett`
Configuration menu - View commit details
-
Copy full SHA for b4615b5 - Browse repository at this point
Copy the full SHA b4615b5View commit details -
Rollup merge of rust-lang#89329 - tmiasko:print-type-sizes-no-fields,…
… r=jackh726 print-type-sizes: skip field printing for primitives Fixes rust-lang#86528.
Configuration menu - View commit details
-
Copy full SHA for b87a9a8 - Browse repository at this point
Copy the full SHA b87a9a8View commit details -
Rollup merge of rust-lang#89501 - Aaron1011:escaping-name-regions, r=…
…davidtwco Note specific regions involved in 'borrowed data escapes' error Fixes rust-lang#67007 Currently, a 'borrowed data escapes' error does not mention the specific lifetime involved (except indirectly through a suggestion about adding a lifetime bound). We now explain the specific lifetime relationship that failed to hold, which improves otherwise vague error messages.
Configuration menu - View commit details
-
Copy full SHA for b015940 - Browse repository at this point
Copy the full SHA b015940View commit details -
Rollup merge of rust-lang#89506 - yaymukund:docblock-headings, r=Guil…
…laumeGomez librustdoc: Use correct heading levels. Closes rust-lang#89309 This fixes the `<h#>` header tags throughout the docs to reflect a semantic hierarchy. - I ran a script to manually check that we don't have any files with multiple `<h1>` tags. - Also checked that we never incorrectly nest e.g. a `<h2>` under an `<h3>`. - I also spot-checked a bunch of pages (`trait.Read`, `enum.Ordering`, `primitive.isize`, `trait.Iterator`).
Configuration menu - View commit details
-
Copy full SHA for 7d6feb4 - Browse repository at this point
Copy the full SHA 7d6feb4View commit details -
Rollup merge of rust-lang#89528 - FabianWolff:issue-89497, r=jackh726
Fix suggestion to borrow when casting from pointer to reference Fixes rust-lang#89497.
Configuration menu - View commit details
-
Copy full SHA for f5bfa34 - Browse repository at this point
Copy the full SHA f5bfa34View commit details -
Rollup merge of rust-lang#89531 - devnexen:stack_overflow_bsd_libc_up…
…d, r=dtolnay library std, libc dependency update to solve rust-lang#87528 build.
Configuration menu - View commit details
-
Copy full SHA for 79a1fc8 - Browse repository at this point
Copy the full SHA 79a1fc8View commit details -
Rollup merge of rust-lang#89588 - BoxyUwU:add_a_test_uwu, r=lcnr
Add a test for generic_const_exprs Test that const_eval_resolve evaluates consts with unused inference vars in substs r? ``@lcnr``
Configuration menu - View commit details
-
Copy full SHA for eb7da35 - Browse repository at this point
Copy the full SHA eb7da35View commit details -
Rollup merge of rust-lang#89591 - infinity0:master, r=Amanieu
fix: alloc-optimisation is only for rust llvm As discussed at the bottom of rust-lang#83485. On a separate note I'll take this chance ask, is it worth pulling in that patch (to recognise `__rust_dealloc`) into Debian's system LLVM? The main factors for us to consider would be (1) is the optimisation significant and (2) is there not any significant negative impact to non-rust packages that use LLVM.
Configuration menu - View commit details
-
Copy full SHA for f31c805 - Browse repository at this point
Copy the full SHA f31c805View commit details -
Auto merge of rust-lang#89608 - Manishearth:rollup-m7kd76f, r=Manishe…
…arth Rollup of 12 pull requests Successful merges: - rust-lang#87601 (Add functions to add unsigned and signed integers) - rust-lang#88523 (Expand documentation for `FpCategory`.) - rust-lang#89050 (refactor: VecDeques Drain fields to private) - rust-lang#89245 (refactor: make VecDeque's IterMut fields module-private, not just crate-private) - rust-lang#89324 (Rename `std::thread::available_conccurrency` to `std::thread::available_parallelism`) - rust-lang#89329 (print-type-sizes: skip field printing for primitives) - rust-lang#89501 (Note specific regions involved in 'borrowed data escapes' error) - rust-lang#89506 (librustdoc: Use correct heading levels.) - rust-lang#89528 (Fix suggestion to borrow when casting from pointer to reference) - rust-lang#89531 (library std, libc dependency update) - rust-lang#89588 (Add a test for generic_const_exprs) - rust-lang#89591 (fix: alloc-optimisation is only for rust llvm) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Configuration menu - View commit details
-
Copy full SHA for 0eabf25 - Browse repository at this point
Copy the full SHA 0eabf25View commit details
Commits on Oct 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 549a68b - Browse repository at this point
Copy the full SHA 549a68bView commit details -
Auto merge of rust-lang#89454 - erikdesjardins:perfattrcheck, r=nikom…
…atsakis perf: only check for `rustc_trivial_field_reads` attribute on traits, not items, impls, etc. The checks that are removed in this PR (originally added in rust-lang#85200) caused a small perf regression: rust-lang#88824 (comment) Since the attribute is currently only applied to traits, I don't think it's worth keeping the additional checks for now. If/when we decide to apply the attribute somewhere else, we can (partially) revert this and reevaluate the perf impact. r? `@nikomatsakis` cc `@FabianWolff`
Configuration menu - View commit details
-
Copy full SHA for d3e6770 - Browse repository at this point
Copy the full SHA d3e6770View commit details -
Revert
update_lints
module list generating codeThis commit reverts the module list generation code to what it was before the change to `include!` it and generates better output.
Michael Wright committedOct 7, 2021 Configuration menu - View commit details
-
Copy full SHA for 8f075ec - Browse repository at this point
Copy the full SHA 8f075ecView commit details -
Auto merge of rust-lang#7780 - mikerite:update_lints_mod_revert, r=ll…
…ogiq Revert `update_lints` module list generating code This commit reverts the module list generation code to what it was before the change to `include!` it and generates better output. changelog: none
Configuration menu - View commit details
-
Copy full SHA for 01ea06a - Browse repository at this point
Copy the full SHA 01ea06aView commit details -
Auto merge of rust-lang#89495 - Mark-Simulacrum:add-inlines, r=michae…
…lwoerister Add two inline annotations for hot functions These two functions are essentially no-ops (and compile to just a load and return), but show up in process_obligations profiles with a high call count -- so worthwhile to try and inline them. This is not normally possible as they're non-generic, so they don't get offered for inlining by our current algorithm.
Configuration menu - View commit details
-
Copy full SHA for ca8078d - Browse repository at this point
Copy the full SHA ca8078dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f95515 - Browse repository at this point
Copy the full SHA 1f95515View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9613df9 - Browse repository at this point
Copy the full SHA 9613df9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f9ef87 - Browse repository at this point
Copy the full SHA 8f9ef87View commit details -
Auto merge of rust-lang#7783 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` Finally an easy, conflict free rustup again 🎉 changelog: none
Configuration menu - View commit details
-
Copy full SHA for b7f3f7f - Browse repository at this point
Copy the full SHA b7f3f7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 333a06a - Browse repository at this point
Copy the full SHA 333a06aView commit details -
Auto merge of rust-lang#86525 - shamatar:array_len_opt, r=oli-obk
Array `.len()` MIR optimization pass This pass kind-of works back the `[T; N].len()` call that at the moment is first coerced as `&[T; N]` -> `&[T]` and then uses `&[T].len()`. Depends on rust-lang#86383
Configuration menu - View commit details
-
Copy full SHA for 680ff86 - Browse repository at this point
Copy the full SHA 680ff86View commit details -
Auto merge of rust-lang#89534 - camsteffen:diag-name, r=oli-obk
Introduce `tcx.get_diagnostic_name` Introduces a "reverse lookup" for diagnostic items. This is mainly intended for `@rust-lang/clippy` which often does a long series of `is_diagnostic_item` calls for the same `DefId`. r? `@oli-obk`
Configuration menu - View commit details
-
Copy full SHA for 0157cc9 - Browse repository at this point
Copy the full SHA 0157cc9View commit details -
Rollup merge of rust-lang#89298 - gcohara:issue89193, r=workingjubilee
Issue 89193 - Fix ICE when using `usize` and `isize` with SIMD gathers closes rust-lang#89193 r? `@workingjubilee`
Configuration menu - View commit details
-
Copy full SHA for 1584b6a - Browse repository at this point
Copy the full SHA 1584b6aView commit details -
Rollup merge of rust-lang#89461 - crlf0710:dyn_upcasting_lint, r=niko…
…matsakis Add `deref_into_dyn_supertrait` lint. Initial implementation of rust-lang#89460. Resolves rust-lang#89190. Maybe also worth a beta backport if necessary. r? `@nikomatsakis`
Configuration menu - View commit details
-
Copy full SHA for ab276b8 - Browse repository at this point
Copy the full SHA ab276b8View commit details -
Rollup merge of rust-lang#89477 - Nicholas-Baron:compute_diff_rs, r=M…
…ark-Simulacrum Move items related to computing diffs to a separate file Work towards rust-lang#89475.
Configuration menu - View commit details
-
Copy full SHA for 48548c9 - Browse repository at this point
Copy the full SHA 48548c9View commit details -
Rollup merge of rust-lang#89559 - krasimirgg:llvm-14-fatal_error_hand…
…ler_t, r=nagisa RustWrapper: adapt for LLVM API change No functional changes intended. The LLVM commit llvm/llvm-project@e463b69 changed an argument of fatal_error_handler_t from std::string to char*. This adapts RustWrapper accordingly.
Configuration menu - View commit details
-
Copy full SHA for 110d289 - Browse repository at this point
Copy the full SHA 110d289View commit details -
Rollup merge of rust-lang#89585 - nbdd0121:issue-89574, r=estebank
Emit item no type error even if type inference fails Fix rust-lang#89574 The stashed error should be emitted regardless whether ty references error or not.
Configuration menu - View commit details
-
Copy full SHA for de0b4f9 - Browse repository at this point
Copy the full SHA de0b4f9View commit details -
Rollup merge of rust-lang#89596 - GuillaumeGomez:implicit-doc-cfg, r=…
…jyn514 Make cfg imply doc(cfg) This is a reopening of rust-lang#79341, rebased and modified a bit (we made a lot of refactoring in rustdoc's types so they needed to be reflected in this PR as well): * `hidden_cfg` is now in the `Cache` instead of `DocContext` because `cfg` information isn't stored anymore on `clean::Attributes` type but instead computed on-demand, so we need this information in later parts of rustdoc. * I removed the `bool_to_options` feature (which makes the code a bit simpler to read for `SingleExt` trait implementation. * I updated the version for the feature. There is only one thing I couldn't figure out: [this comment](rust-lang#79341 (comment)) > I think I'll likely scrap the whole `SingleExt` extension trait as the diagnostics for 0 and >1 items should be different. How/why should they differ? EDIT: this part has been solved, the current code was fine, just needed a little simplification. cc `@Nemo157` r? `@jyn514` Original PR description: This is only active when the `doc_cfg` feature is active. The implicit cfg can be overridden via `#[doc(cfg(...))]`, so e.g. to hide a `#[cfg]` you can use something like: ```rust #[cfg(unix)] #[doc(cfg(all()))] pub struct Unix; ``` By adding `#![doc(cfg_hide(foobar))]` to the crate attributes the cfg `#[cfg(foobar)]` (and _only_ that _exact_ cfg) will not be implicitly treated as a `doc(cfg)` to render a message in the documentation.
Configuration menu - View commit details
-
Copy full SHA for e32328b - Browse repository at this point
Copy the full SHA e32328bView commit details -
Rollup merge of rust-lang#89615 - willcrichton:fix-get-body-with-borr…
…owck-facts, r=oli-obk Add InferCtxt::with_opaque_type_inference to get_body_with_borrowck_facts `mir_borrowck` uses `with_opaque_type_inference` before calling `do_mir_borrowck`: https://github.com/rust-lang/rust/blob/0eabf25b90396dead0b2a1aaa275af18a1ae6008/compiler/rustc_borrowck/src/lib.rs#L132 However `get_body_with_borrowck_facts` does not. Therefore I get an ICE eg when calling this function on the bodies of an async function as described here: https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/.E2.9C.94.20ICE.20when.20using.20get_body_with_borrowck_facts.20with.20async This change fixes that bug. r? `@nikomatsakis`
Configuration menu - View commit details
-
Copy full SHA for 0fbb011 - Browse repository at this point
Copy the full SHA 0fbb011View commit details -
Auto merge of rust-lang#89629 - GuillaumeGomez:rollup-s4r8me6, r=Guil…
…laumeGomez Rollup of 7 pull requests Successful merges: - rust-lang#89298 (Issue 89193 - Fix ICE when using `usize` and `isize` with SIMD gathers ) - rust-lang#89461 (Add `deref_into_dyn_supertrait` lint.) - rust-lang#89477 (Move items related to computing diffs to a separate file) - rust-lang#89559 (RustWrapper: adapt for LLVM API change) - rust-lang#89585 (Emit item no type error even if type inference fails) - rust-lang#89596 (Make cfg imply doc(cfg)) - rust-lang#89615 (Add InferCtxt::with_opaque_type_inference to get_body_with_borrowck_facts) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Configuration menu - View commit details
-
Copy full SHA for 5641481 - Browse repository at this point
Copy the full SHA 5641481View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8965b58 - Browse repository at this point
Copy the full SHA 8965b58View commit details -
Auto merge of rust-lang#89617 - flip1995:clippyup, r=Manishearth
Update Clippy r? `@Manishearth`
Configuration menu - View commit details
-
Copy full SHA for 485ced5 - Browse repository at this point
Copy the full SHA 485ced5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9771803 - Browse repository at this point
Copy the full SHA 9771803View commit details -
Auto merge of rust-lang#89638 - rust-lang:revert-88548-intersperse, r…
…=Mark-Simulacrum Revert "Stabilize `Iterator::intersperse()`" Reverts rust-lang#88548 First step in resolving rust-lang#88967
Configuration menu - View commit details
-
Copy full SHA for 2ee06e7 - Browse repository at this point
Copy the full SHA 2ee06e7View commit details
Commits on Oct 8, 2021
-
Auto merge of rust-lang#89646 - camelid:miri-up, r=RalfJung
Update Miri Fixes rust-lang#89612. r? `@RalfJung`
Configuration menu - View commit details
-
Copy full SHA for c2171ee - Browse repository at this point
Copy the full SHA c2171eeView commit details -
Add documentation to Box conversions
Among other changes, documents whether allocations are necessary to complete the type conversion. Part of rust-lang#51430 Co-authored-by: Giacomo Stevanato <giaco.stevanato@gmail.com> Co-authored-by: Joshua Nelson <github@jyn.dev>
Configuration menu - View commit details
-
Copy full SHA for 6dd7fa1 - Browse repository at this point
Copy the full SHA 6dd7fa1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78810bd - Browse repository at this point
Copy the full SHA 78810bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 057236d - Browse repository at this point
Copy the full SHA 057236dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a1c1256 - Browse repository at this point
Copy the full SHA a1c1256View commit details -
Correctly document the error behavior
Co-authored-by: Giacomo Stevanato <giaco.stevanato@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9398ea2 - Browse repository at this point
Copy the full SHA 9398ea2View commit details -
Configuration menu - View commit details
-
Copy full SHA for aafa0a7 - Browse repository at this point
Copy the full SHA aafa0a7View commit details -
Merge branch '51430-document-from' of github.com:timClicks/rust into …
…51430-document-from
Configuration menu - View commit details
-
Copy full SHA for fc97fc1 - Browse repository at this point
Copy the full SHA fc97fc1View commit details