about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorleonardo.yvens <leoyvens@gmail.com>2018-05-11 11:29:04 -0300
committerleonardo.yvens <leoyvens@gmail.com>2018-05-11 11:29:04 -0300
commit587566eda71847b5cd57bfb91b677f7dac653528 (patch)
tree6f5221893144087e003b926636108fdd47d8a236 /src/rustllvm/RustWrapper.cpp
parente5f80f2a4f016bf724a1cfb580619d71c8fd39ec (diff)
downloadrust-587566eda71847b5cd57bfb91b677f7dac653528.tar.gz
rust-587566eda71847b5cd57bfb91b677f7dac653528.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/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions