about summary refs log tree commit diff
path: root/src/libstd/sys/redox/stack_overflow.rs
diff options
context:
space:
mode:
authorMichael Hewson <michael@michaelhewson.ca>2018-12-16 16:47:37 -0500
committerMichael Hewson <michael@michaelhewson.ca>2018-12-20 01:20:17 -0500
commit286503ace2fd1fc8ac8bf8aa10378fb93763d99f (patch)
tree539f304409b8b03dbf5d56a0b6b0e10ee139f62c /src/libstd/sys/redox/stack_overflow.rs
parent1d93c6149dd70bf16c45f3238fa74241c336e02d (diff)
downloadrust-286503ace2fd1fc8ac8bf8aa10378fb93763d99f.tar.gz
rust-286503ace2fd1fc8ac8bf8aa10378fb93763d99f.zip
Refactor and add comments to code in receiver_is_valid
also updated some error messages

removed the code manually checking for `receiver_ty: Deref<Target=self_ty>`, in favour of using autoderef but only doing one iteration. This will cause error messages to be more consistent. Before, a "mismatched method receiver" error would be emitted when `receiver_ty` was valid except for a lifetime parameter, but only when `feature(arbitrary_self_types)` was enabled, and without the feature flag the error would be "uncoercible receiver". Now it emits "mismatched method receiver" in both cases.
Diffstat (limited to 'src/libstd/sys/redox/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions