diff options
| author | leonardo.yvens <leoyvens@gmail.com> | 2018-05-11 11:29:04 -0300 |
|---|---|---|
| committer | leonardo.yvens <leoyvens@gmail.com> | 2018-05-11 11:29:04 -0300 |
| commit | 587566eda71847b5cd57bfb91b677f7dac653528 (patch) | |
| tree | 6f5221893144087e003b926636108fdd47d8a236 /src/rustllvm/RustWrapper.cpp | |
| parent | e5f80f2a4f016bf724a1cfb580619d71c8fd39ec (diff) | |
| download | rust-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
