diff options
| author | kennytm <kennytm@gmail.com> | 2018-05-16 23:22:47 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-16 23:22:47 +0800 |
| commit | 5cc6fd35c17717cf9b09e02c6d3d4cd9bf4c6846 (patch) | |
| tree | cd6f962657cf87f2a11e16c831da61da8d0cc696 /src/libstd/sys | |
| parent | d623f45a4048b061e28a528a1db858bec60b9489 (diff) | |
| parent | 0582d025e80e4557d7b9e1642ddec3f0188a1aac (diff) | |
| download | rust-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
