-
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
Rollup of 6 pull requests #63043
Rollup of 6 pull requests #63043
Commits on Jul 7, 2019
-
Fix cycle error with existential types
Fixes rust-lang#61863 We now allow uses of 'existential type's that aren't defining uses - that is, uses which don't constrain the underlying concrete type. To make this work correctly, we also modify eq_opaque_type_and_type to not try to apply additional constraints to an opaque type. If we have code like this: ``` existential type Foo; fn foo1() -> Foo { ... } fn foo2() -> Foo { foo1() } ``` then 'foo2' doesn't end up constraining 'Foo', which means that 'foo2' will end up using the type 'Foo' internally - that is, an actual 'TyKind::Opaque'. We don't want to equate this to the underlying concrete type - we just need to enforce the basic equality constraint between the two types (here, the return type of 'foo1' and the return type of 'foo2')
Configuration menu - View commit details
-
Copy full SHA for 8ba9b10 - Browse repository at this point
Copy the full SHA 8ba9b10View commit details -
Fix bug when opaque type was nested in another type.
Previously, types like (Foo, u8) would not be handled correctly (where Foo is an 'existential type')
Configuration menu - View commit details
-
Copy full SHA for ec62699 - Browse repository at this point
Copy the full SHA ec62699View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f05160 - Browse repository at this point
Copy the full SHA 2f05160View commit details -
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2ab8d61 - Browse repository at this point
Copy the full SHA 2ab8d61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3600832 - Browse repository at this point
Copy the full SHA 3600832View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66b2b97 - Browse repository at this point
Copy the full SHA 66b2b97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f41962 - Browse repository at this point
Copy the full SHA 2f41962View commit details
Commits on Jul 20, 2019
-
tests: Add minimal reproduction of rust-lang#61963.
This commit adds a reproduction of the error reported in servo which demonstrates the current, incorrect behaviour. Co-authored-by: Rémy Rakić <remy.rakic@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 44bf6b6 - Browse repository at this point
Copy the full SHA 44bf6b6View commit details
Commits on Jul 25, 2019
-
Configuration menu - View commit details
-
Copy full SHA for eb4fbda - Browse repository at this point
Copy the full SHA eb4fbdaView commit details -
The Dumper no longer has anything to do specifically with JSON, it merely represents processing into an `Analysis` output.
Configuration menu - View commit details
-
Copy full SHA for 68c0ba2 - Browse repository at this point
Copy the full SHA 68c0ba2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b75dfa8 - Browse repository at this point
Copy the full SHA b75dfa8View commit details -
Configuration menu - View commit details
-
Copy full SHA for d9ac0c6 - Browse repository at this point
Copy the full SHA d9ac0c6View commit details
Commits on Jul 26, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 34e7a3c - Browse repository at this point
Copy the full SHA 34e7a3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bc1d01 - Browse repository at this point
Copy the full SHA 3bc1d01View commit details -
Configuration menu - View commit details
-
Copy full SHA for 796e7a8 - Browse repository at this point
Copy the full SHA 796e7a8View commit details -
Update src/librustc_mir/interpret/memory.rs
Co-Authored-By: Ralf Jung <post@ralfj.de>
Configuration menu - View commit details
-
Copy full SHA for 6e04ca7 - Browse repository at this point
Copy the full SHA 6e04ca7View commit details -
Update src/librustc_mir/interpret/memory.rs
Co-Authored-By: Ralf Jung <post@ralfj.de>
Configuration menu - View commit details
-
Copy full SHA for 0cd7167 - Browse repository at this point
Copy the full SHA 0cd7167View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7b2110 - Browse repository at this point
Copy the full SHA d7b2110View commit details -
lowering: Omit bare trait lint on macro call sites
This commit implements a hacky fix for detecting when a span is pointing at a macro call site so that bare trait lints are not made incorrectly.
Configuration menu - View commit details
-
Copy full SHA for cae8680 - Browse repository at this point
Copy the full SHA cae8680View commit details
Commits on Jul 27, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 13b4100 - Browse repository at this point
Copy the full SHA 13b4100View commit details -
Configuration menu - View commit details
-
Copy full SHA for 98f29f5 - Browse repository at this point
Copy the full SHA 98f29f5View commit details -
Rollup merge of rust-lang#62423 - Aaron1011:fix/existential-cycle, r=…
…oli-obk Fix cycle error with existential types Fixes rust-lang#61863 We now allow uses of `existential type`'s that aren't defining uses - that is, uses which don't constrain the underlying concrete type. To make this work correctly, we also modify `eq_opaque_type_and_type` to not try to apply additional constraints to an opaque type. If we have code like this: ```rust existential type Foo; fn foo1() -> Foo { ... } fn foo2() -> Foo { foo1() } ``` then `foo2` doesn't end up constraining `Foo`, which means that `foo2` will end up using the type `Foo` internally - that is, an actual `TyKind::Opaque`. We don't want to equate this to the underlying concrete type - we just need to enforce the basic equality constraint between the two types (here, the return type of `foo1` and the return type of `foo2`)
Configuration menu - View commit details
-
Copy full SHA for 4b8031c - Browse repository at this point
Copy the full SHA 4b8031cView commit details -
Rollup merge of rust-lang#62979 - Mark-Simulacrum:json-dumper-pretty,…
… r=Xanewok Cleanup save-analysis JsonDumper
Configuration menu - View commit details
-
Copy full SHA for a13f1f8 - Browse repository at this point
Copy the full SHA a13f1f8View commit details -
Rollup merge of rust-lang#62982 - oli-obk:static_cycle, r=RalfJung
Don't access a static just for its size and alignment cc @RalfJung fixes rust-lang#62189
Configuration menu - View commit details
-
Copy full SHA for b25d74f - Browse repository at this point
Copy the full SHA b25d74fView commit details -
Rollup merge of rust-lang#63013 - nivkner:ffi-safe-slice, r=sfackler
add `repr(transparent)` to `IoSliceMut` where missing tried using `IoSliceMut` in FFI, got `improper_ctypes` warning. according to the docs: `IoSliceMut` is "guaranteed to be ABI compatible with the `iovec` type" so it should be usable in FFI. `IoSlice` is also `repr(transparent)` for every platform where these types contain `iovec`-like types. vxworks also has `IoSliceMut` as transparent so its not even consistently one or the other. no comment about this next to the types or in the PR that introduced the types, so assuming this was just missed. r? @sfackler
Configuration menu - View commit details
-
Copy full SHA for 4ad743c - Browse repository at this point
Copy the full SHA 4ad743cView commit details -
Rollup merge of rust-lang#63014 - davidtwco:rustfix-incorrect-dyn-sug…
…gestion, r=estebank Stop bare trait lint applying to macro call sites Fixes rust-lang#61963. Apologies for the delay with in fixing this. If anyone has a better idea how to detect this macro call site case, I'd be happy to fix this in a more robust, less hacky way. r? @estebank
Configuration menu - View commit details
-
Copy full SHA for 513ab54 - Browse repository at this point
Copy the full SHA 513ab54View commit details -
Rollup merge of rust-lang#63036 - topecongiro:add-lib-section, r=matklad
Add lib section to rustc_lexer's Cargo.toml This is required to fix the rustc-ap-syntax build error in the recent version. The error could also be fixed on the [rustc-auto-publish](https://github.com/alexcrichton/rustc-auto-publish) side by manually adding `[lib]` section if one does not exist. The latter approach, however, may have a surprising side effect, so I am opting for a simpler solution for now. r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for 51769b3 - Browse repository at this point
Copy the full SHA 51769b3View commit details