about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2018-10-25 14:31:10 +0200
committerGitHub <noreply@github.com>2018-10-25 14:31:10 +0200
commitf46ee0482f25827f9259f58c4196cde352cc7c2c (patch)
tree580a2cc39cc92d26f56345683c9c9ed9838c3240 /src/rustllvm/RustWrapper.cpp
parent823244ac0459fb9d85bf97fe7d5c6afaa0964870 (diff)
parentb0d3d3b959e34ecb6c0b7c29f22c77d8c301514d (diff)
downloadrust-f46ee0482f25827f9259f58c4196cde352cc7c2c.tar.gz
rust-f46ee0482f25827f9259f58c4196cde352cc7c2c.zip
Rollup merge of #55253 - zackmdavis:some_suggestion, r=pnkfelix
only issue "variant of the expected type" suggestion for enums

This suggestion (introduced in pull-request #43178 / eac74104) was being issued for one-field-struct expected types (in which case it is misleading and outright wrong), even though it was only intended for one-field enum-variants (most notably, `Some`).

Add a conditional to adhere to the original intent. (It would be possible to generalize to structs, but not obviously net desirable.) This adds a level of indentation, so the diff here is going to be
easier to read in [ignore-whitespace mode](https://github.com/rust-lang/rust/commit/b0d3d3b9?w=1).

Resolves #55250.

r? @pnkfelix
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions