-
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 7 pull requests #89903
Rollup of 7 pull requests #89903
Commits on Oct 8, 2021
-
move implicit
Sized
predicate to end of listIn `Bounds::predicates()`, move the implicit `Sized` predicate to the end of the generated list. This means that if there is an explicit `Sized` bound, it will be checked first, and any resulting diagnostics will have a more useful span.
Configuration menu - View commit details
-
Copy full SHA for df03b08 - Browse repository at this point
Copy the full SHA df03b08View commit details -
Configuration menu - View commit details
-
Copy full SHA for c07f5c4 - Browse repository at this point
Copy the full SHA c07f5c4View commit details
Commits on Oct 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for d18502d - Browse repository at this point
Copy the full SHA d18502dView commit details -
Use non-checking TLS relocation in aarch64 asm! sym test.
The checking variant ensures that the offset required is not larger than 12 bits - hence we wouldn't ever need the upper 12 bits.
Configuration menu - View commit details
-
Copy full SHA for af5b146 - Browse repository at this point
Copy the full SHA af5b146View commit details -
add dedicated error variant for writing the discriminant of an uninha…
…bited enum variant
Configuration menu - View commit details
-
Copy full SHA for c5a68cf - Browse repository at this point
Copy the full SHA c5a68cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for cca3914 - Browse repository at this point
Copy the full SHA cca3914View commit details -
Configuration menu - View commit details
-
Copy full SHA for c76c620 - Browse repository at this point
Copy the full SHA c76c620View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64d18d4 - Browse repository at this point
Copy the full SHA 64d18d4View commit details
Commits on Oct 15, 2021
-
Rollup merge of rust-lang#86011 - tlyu:correct-sized-bound-spans, r=e…
…stebank move implicit `Sized` predicate to end of list In `Bounds::predicates()`, move the implicit `Sized` predicate to the end of the generated list. This means that if there is an explicit `Sized` bound, it will be checked first, and any resulting diagnostics will have a more useful span. Fixes rust-lang#85998, at least partially. ~~Based on rust-lang#85979, but only the last 2 commits are new for this pull request.~~ (edit: rebased) A full fix would need to deal with where-clauses, and that seems difficult. Basically, predicates are being collected in multiple stages, and there are two places where implicit `Sized` predicates can be inserted: once for generic parameters, and once for where-clauses. I think this insertion is happening too early, and we should actually do it only at points where we collect all of the relevant trait bounds for a type parameter. I could use some help interpreting the changes to the stderr output. It looks like reordering the predicates changed some diagnostics that don't obviously have anything to do with `Sized` bounds. Possibly some error reporting code is making assumptions about ordering of predicates? The diagnostics for src/test/ui/derives/derives-span-Hash-*.rs seem to have improved, no longer pointing at the type parameter identifier, but src/test/ui/type-alias-impl-trait/generic_duplicate_param_use9.rs became less verbose for some reason. I also ran into an instance of rust-lang#84970 while working on this, but I kind of expected that could happen, because I'm reordering predicates. I can open a separate issue on that if it would be helpful. ``@estebank`` this seems likely to conflict (slightly?) with your work on rust-lang#85947; how would you like to resolve that?
Configuration menu - View commit details
-
Copy full SHA for 36a1076 - Browse repository at this point
Copy the full SHA 36a1076View commit details -
Rollup merge of rust-lang#89821 - crlf0710:unsafe_code_lint_test, r=M…
…ark-Simulacrum Add a strange test for `unsafe_code` lint. The current behavior is a little surprising to me. I'm not sure whether people would change it, but at least let me document the current behavior with a test. I learnt about this from the [totally-speedy-transmute](https://docs.rs/totally-speedy-transmute) crate. cc rust-lang#10599 the original implementation pr.
Configuration menu - View commit details
-
Copy full SHA for b74ae04 - Browse repository at this point
Copy the full SHA b74ae04View commit details -
Rollup merge of rust-lang#89859 - RalfJung:write-discriminant, r=oli-obk
add dedicated error variant for writing the discriminant of an uninhabited enum variant This is conceptually different from hitting an `Unreachable` terminator. Also add some sanity check making sure we don't write discriminants of things that do not have discriminants. r? ``@oli-obk``
Configuration menu - View commit details
-
Copy full SHA for 345d483 - Browse repository at this point
Copy the full SHA 345d483View commit details -
Rollup merge of rust-lang#89870 - tmandry:box-pin, r=estebank
Suggest Box::pin when Pin::new is used instead This fixes an incorrect diagnostic. **Based on rust-lang#89390**; only the last commit is specific to this PR. "Ignore whitespace changes" also helps here.
Configuration menu - View commit details
-
Copy full SHA for e2c28ad - Browse repository at this point
Copy the full SHA e2c28adView commit details -
Rollup merge of rust-lang#89880 - adamgemmell:dev/nc-relocation, r=Am…
…anieu Use non-checking TLS relocation in aarch64 asm! sym test. The checking variant ensures that the offset required is not larger than 12 bits - hence we wouldn't ever need the upper 12 bits. It's unlikely to ever fail in this small test but this is technically correct. This was noticed incidentally when we found that LLD doesn't support the `tprel_lo12` relocation, even though LLVM can apparently generate it when using `-mtls-size=12`.
Configuration menu - View commit details
-
Copy full SHA for f0555ce - Browse repository at this point
Copy the full SHA f0555ceView commit details -
Rollup merge of rust-lang#89885 - cameron1024:long-explanation-E0183,…
… r=GuillaumeGomez add long explanation for E0183 Addresses rust-lang#61137
Configuration menu - View commit details
-
Copy full SHA for e3099e7 - Browse repository at this point
Copy the full SHA e3099e7View commit details -
Rollup merge of rust-lang#89894 - camsteffen:unused-deps, r=Mark-Simu…
…lacrum Remove unused dependencies from rustc_const_eval
Configuration menu - View commit details
-
Copy full SHA for e45c222 - Browse repository at this point
Copy the full SHA e45c222View commit details