summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.cc
diff options
context:
space:
mode:
authorleonardo.yvens <leoyvens@gmail.com>2018-05-11 11:29:04 -0300
committerPietro Albini <pietro@pietroalbini.org>2018-05-21 15:59:20 +0200
commitb48588726eeb35c79ad7a09dc74732f16bef5253 (patch)
treee94c1554010fbd3fc3e9babf1d05a56b436d7495 /src/test/codegen/stack-alloc-string-slice.cc
parent2d1afbd6b09e0b7418dfeeccd2236d715e96c14f (diff)
downloadrust-b48588726eeb35c79ad7a09dc74732f16bef5253.tar.gz
rust-b48588726eeb35c79ad7a09dc74732f16bef5253.zip
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/test/codegen/stack-alloc-string-slice.cc')
0 files changed, 0 insertions, 0 deletions