-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 8 pull requests #110967
Rollup of 8 pull requests #110967
Commits on Apr 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 3d80dd9 - Browse repository at this point
Copy the full SHA 3d80dd9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 015acc2 - Browse repository at this point
Copy the full SHA 015acc2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3125979 - Browse repository at this point
Copy the full SHA 3125979View commit details -
only error with +whole-archive,+bundle for rlibs
Fixes rust-lang#110912 Checking `flavor == RlibFlavor::Normal` was accidentally lost in 601fc8b rust-lang#105601 That caused combining +whole-archive and +bundle link modifiers on non-rlib crates to fail with a confusing error message saying that combination is unstable for rlibs. In particular, this caused the build to fail when +whole-archive was used on staticlib crates, even though +whole-archive effectively does nothing on non-bin crates because the final linker invocation is left to an external build system.
Configuration menu - View commit details
-
Copy full SHA for 6a89e94 - Browse repository at this point
Copy the full SHA 6a89e94View commit details -
Remove
MemDecoder::read_raw_bytes_inherent
.It's unnecessary. Note that `MemDecoder::read_raw_bytes` how has a `&'a [u8]` return type, the same as what `read_raw_bytes_inherent` had.
Configuration menu - View commit details
-
Copy full SHA for b51deba - Browse repository at this point
Copy the full SHA b51debaView commit details -
Add a comment explaining the lack of
Decoder::read_enum_variant
.Because I was wondering about it, and this may save a future person from also wondering.
Configuration menu - View commit details
-
Copy full SHA for 37c9e45 - Browse repository at this point
Copy the full SHA 37c9e45View commit details
Commits on Apr 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 618841b - Browse repository at this point
Copy the full SHA 618841bView commit details -
Checking that `read_raw_bytes(len)` changes the position by `len` is a reasonable thing for a test, but isn't much use in just one of the zillion `Decodable` impls.
Configuration menu - View commit details
-
Copy full SHA for fa133f5 - Browse repository at this point
Copy the full SHA fa133f5View commit details -
Add some provided methods to
Encoder
/Decoder
.The methods for `i8`, `bool`, `char`, `str` are the same for all impls, because they layered on top of other methods.
Configuration menu - View commit details
-
Copy full SHA for 7a16d25 - Browse repository at this point
Copy the full SHA 7a16d25View commit details -
Configuration menu - View commit details
-
Copy full SHA for a676dfa - Browse repository at this point
Copy the full SHA a676dfaView commit details -
Remove some unnecessary derives.
I was curious about how many `Encodable`/`Decodable` derives we have. Some grepping revealed that it's over 500 of each, but the number of `Encodable` ones was higher, which was weird. Most of the `Encodable`-only ones were in `hir.rs`. This commit removes them all, plus some other unnecessary derives in that file and others that I found via trial and error.
Configuration menu - View commit details
-
Copy full SHA for 23e91d4 - Browse repository at this point
Copy the full SHA 23e91d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 586d17d - Browse repository at this point
Copy the full SHA 586d17dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f1b88ea - Browse repository at this point
Copy the full SHA f1b88eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for b29b56f - Browse repository at this point
Copy the full SHA b29b56fView commit details -
fix false negative for
unused_mut
Lukas Markeffsky committedApr 28, 2023 Configuration menu - View commit details
-
Copy full SHA for 69c71da - Browse repository at this point
Copy the full SHA 69c71daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 754a62c - Browse repository at this point
Copy the full SHA 754a62cView commit details -
Lukas Markeffsky committed
Apr 28, 2023 Configuration menu - View commit details
-
Copy full SHA for fc63926 - Browse repository at this point
Copy the full SHA fc63926View commit details -
Rollup merge of rust-lang#110877 - compiler-errors:binop-err, r=cjgillot
Provide better type hints when a type doesn't support a binary operator For example, when checking whether `vec![A] == vec![A]` holds, we first evaluate the LHS's ty, then probe for any `PartialEq` implementations for that. If none is found, we report an error by evaluating `Vec<A>: PartialEq<?0>` for fulfillment errors, but the RHS is not yet evaluated and remains an inference variable `?0`! To fix this, we evaluate the RHS and equate it to that RHS infer var `?0`, so that we are able to provide more detailed fulfillment errors for why `Vec<A>: PartialEq<Vec<A>>` doesn't hold (namely, the nested obligation `A: PartialEq<A>` doesn't hold). Fixes rust-lang#95285 Fixes rust-lang#110867
Configuration menu - View commit details
-
Copy full SHA for aba9fb4 - Browse repository at this point
Copy the full SHA aba9fb4View commit details -
Rollup merge of rust-lang#110917 - Be-ing:whole_archive_with_staticli…
…b_fix, r=petrochenkov only error combining +whole-archive and +bundle for rlibs Fixes rust-lang#110912 Checking `flavor == RlibFlavor::Normal` was accidentally lost in 601fc8b rust-lang#105601 That caused combining +whole-archive and +bundle link modifiers on non-rlib crates to fail with a confusing error message saying that combination is unstable for rlibs. In particular, this caused the build to fail when +whole-archive was used on staticlib crates, even though +whole-archive effectively does nothing on non-bin crates because the final linker invocation is left to an external build system. cc ``@petrochenkov``
Configuration menu - View commit details
-
Copy full SHA for 33f15e8 - Browse repository at this point
Copy the full SHA 33f15e8View commit details -
Rollup merge of rust-lang#110921 - JohnBobbo96:rustc_arena_nonnull, r…
…=Nilstrieb Use `NonNull::new_unchecked` and `NonNull::len` in `rustc_arena`. This avoids a few extra dereferences as well as an `unwrap`. According to the docs for [`NonNull::len`](https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.len) this also ensures that: > This function is safe, even when the non-null raw slice cannot be dereferenced to a slice because the pointer does not have a valid address. I am also fairly sure that the `unwrap` is unneeded in this case, as the docs for [`Box::into_raw`](https://doc.rust-lang.org/std/boxed/struct.Box.html#method.into_raw) also state: > Consumes the Box, returning a wrapped raw pointer. **The pointer will be properly aligned and non-null.**
Configuration menu - View commit details
-
Copy full SHA for 4751c85 - Browse repository at this point
Copy the full SHA 4751c85View commit details -
Rollup merge of rust-lang#110927 - nnethercote:Encoder-Decoder-cleanu…
…ps, r=scottmcm Encoder/decoder cleanups Best reviewed one commit at a time. r? ``@scottmcm``
Configuration menu - View commit details
-
Copy full SHA for 37076eb - Browse repository at this point
Copy the full SHA 37076ebView commit details -
Rollup merge of rust-lang#110944 - RalfJung:offset, r=compiler-errors
share BinOp::Offset between CTFE and Miri r? ``@oli-obk``
Configuration menu - View commit details
-
Copy full SHA for 03da9db - Browse repository at this point
Copy the full SHA 03da9dbView commit details -
Rollup merge of rust-lang#110948 - TimNN:patch-1, r=WaffleLapkin
run-make test: using single quotes to not trigger the shell This test got added in rust-lang#110801. I'm no expert on Makefiles, but IIUC this command is passed to the shell, which usually tries to execute commands specified in between backticks in double-quoted strings. Using single quotes should fix this, I think. (Note: Waiting for CI to test this, since I only have a web browser available right now). r? ``@jyn514`` cc ``@WaffleLapkin`` Since this is breaking our build bot, even if it is not directly LLVM related: ``@rustbot`` label: +llvm-main
Configuration menu - View commit details
-
Copy full SHA for afbb188 - Browse repository at this point
Copy the full SHA afbb188View commit details -
Rollup merge of rust-lang#110957 - WaffleLapkin:reach_generator_confl…
…ict_error, r=cjgillot Fix an ICE in conflict error diagnostics Fixes rust-lang#110929 r? ``@cjgillot``
Configuration menu - View commit details
-
Copy full SHA for 235d088 - Browse repository at this point
Copy the full SHA 235d088View commit details -
Rollup merge of rust-lang#110960 - lukas-code:unused-mut, r=compiler-…
…errors fix false negative for `unused_mut` fixes rust-lang#110849 We want to avoid double diagnostics for code like this, but only if an error actually occurs: ```rust fn main() { let mut x: (i32, i32); x.0 = 1; } ``` The first commit fixes the lint and the second one removes all the unused `mut`s it found.
Configuration menu - View commit details
-
Copy full SHA for 34ef13b - Browse repository at this point
Copy the full SHA 34ef13bView commit details