about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-05-02 06:58:11 -0700
committerbors <bors@rust-lang.org>2016-05-02 06:58:11 -0700
commit0eb575c702f56735d8bc6c3d76cb4d9bdeb13e84 (patch)
treebb0c0f392548a68d376211883cb4d09a91c9ef98 /src/libstd/sys/unix/stack_overflow.rs
parente1a575cb077d2070cc4527fa43bf9ef790f89f04 (diff)
parent3906aef5c6df5a6d71d0a6b0c9c816b9160f9de1 (diff)
downloadrust-0eb575c702f56735d8bc6c3d76cb4d9bdeb13e84.tar.gz
rust-0eb575c702f56735d8bc6c3d76cb4d9bdeb13e84.zip
Auto merge of #33303 - Aatch:mir-coercion-cast, r=arielb1
[MIR] Handle coercion casts properly when building the MIR

Coercion casts (`expr as T` where the type of `expr` can be coerced to
`T`) are essentially no-ops, as the actual work is done by a coercion.
Previously a check for type equality was used to avoid emitting the
redundant cast in the MIR, but this failed for coercion casts of
function items that had lifetime parameters. The MIR trans code doesn't
handle `FnPtr -> FnPtr` casts and produced an error.

Also fixes a bug with type ascription expressions not having any
adjustments applied.

Fixes #33295

/cc @eddyb
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions