about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-05-16 23:22:47 +0800
committerGitHub <noreply@github.com>2018-05-16 23:22:47 +0800
commit5cc6fd35c17717cf9b09e02c6d3d4cd9bf4c6846 (patch)
treecd6f962657cf87f2a11e16c831da61da8d0cc696 /src/libstd/sys
parentd623f45a4048b061e28a528a1db858bec60b9489 (diff)
parent0582d025e80e4557d7b9e1642ddec3f0188a1aac (diff)
downloadrust-5cc6fd35c17717cf9b09e02c6d3d4cd9bf4c6846.tar.gz
rust-5cc6fd35c17717cf9b09e02c6d3d4cd9bf4c6846.zip
Rollup merge of #50656 - leodasvacas:fix-impl-trait-in-main-ret, r=nikomatsakis
Fix `fn main() -> impl Trait` for non-`Termination` trait

Fixes #50595.

This bug currently affects stable. Why I think we can go for hard error:
- It will in stable for at most one cycle and there is no legitimate reason to abuse it, nor any known uses in the wild.
- It only affects `bin` crates (which have a `main`), so there is little practical difference between a hard error or a deny lint, both are a one line fix.

The fix was to just unshadow a variable. Thanks @nikomatsakis for the mentoring!

r? @nikomatsakis
Diffstat (limited to 'src/libstd/sys')
0 files changed, 0 insertions, 0 deletions