remove notion of Implicit derefs from mem-cat#51235
Conversation
|
(Travis will probably fail; I'm still running |
119210a to
6bb1853
Compare
|
r=me with tests fixed |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
`PointerKind` is included in `LoanPath` and hence forms part of the equality check; this led to having two unequal paths that both represent `*x`, depending on whether the `*` was inserted automatically or explicitly. Bad mojo. The `note` field, in contrast, is intended more-or-less primarily for this purpose of adding extra data.
3fc042e to
8a624b7
Compare
|
@eddyb I tweaked the approach somewhat to avoid impacting diagnostics. Maybe you want to re-review? Same basic idea. |
| // was not used). On other paths, it is not assigned, | ||
| // and hence if those paths *could* reach the code that | ||
| // comes after the match, this fn would not compile. | ||
| let convert_to_ambigious; |
There was a problem hiding this comment.
Indeed...though I thought it was sort of beautiful in its own way :)
|
@bors r+ p=10 |
|
📌 Commit 8a624b7 has been approved by |
…ef, r=eddyb remove notion of Implicit derefs from mem-cat `PointerKind` is included in `LoanPath` and hence forms part of the equality check; this led to having two unequal paths that both represent `*x`, depending on whether the `*` was inserted automatically or explicitly. Bad mojo. Fixes #51117 r? @eddyb
|
☀️ Test successful - status-appveyor, status-travis |
[beta] Process backports Merged and approved: * #50812: Fix issue #50811 (`NaN > NaN` was true). * #50827: Update LLVM to `56c931901cfb85cd6f7ed44c7d7520a8de1edf97` * #50879: Fix naming conventions for new lints * #51011: rustdoc: hide macro export statements from docs * #51051: prohibit turbofish in `impl Trait` methods * #51052: restore emplacement syntax (obsolete) * #51146: typeck: Do not pass the field check on field error * #51235: remove notion of Implicit derefs from mem-cat r? @ghost
1.26.2 release This includes a backport of #51235 which fixes #51117 on stable. It has not been tested. r? @nikomatsakis since the backport was not clean. cc @rust-lang/core @rust-lang/release
[beta] Process backports Merged and approved: * #50812: Fix issue #50811 (`NaN > NaN` was true). * #50879: Fix naming conventions for new lints * #51011: rustdoc: hide macro export statements from docs * #51051: prohibit turbofish in impl Trait methods * #51052: restore emplacement syntax (obsolete) * #51146: typeck: Do not pass the field check on field error * #51235: remove notion of Implicit derefs from mem-cat r? @ghost
PointerKindis included inLoanPathand hence forms part of the equality check; this led to having two unequal paths that both represent*x, depending on whether the*was inserted automatically or explicitly. Bad mojo.Fixes #51117
r? @eddyb