diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-08-12 20:22:58 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-08-12 20:24:30 -0700 |
| commit | fb2511c3c581d811d61e6022f863a5c0e7006ae1 (patch) | |
| tree | 1881bbf6c5a382162cf825457a220a886e7dea6f /src/test/debuginfo/enum-thinlto.rs | |
| parent | 1e6f7537629b668eca7a5c2e94205552b7f8f4ad (diff) | |
| download | rust-fb2511c3c581d811d61e6022f863a5c0e7006ae1.tar.gz rust-fb2511c3c581d811d61e6022f863a5c0e7006ae1.zip | |
Suggest `Box::new` when appropriate
When encountering a boxed value as expected and a stack allocated value that could be boxed to fulfill the expectation, like in the following snippet, suggest `Box::new` wrapping.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
