]> git.lizzy.rs Git - rust.git/commit
suggestion-diagnostics: as_ref improve snippet
authorDan Robertson <dan@dlrobertson.com>
Wed, 13 Feb 2019 17:52:22 +0000 (17:52 +0000)
committerDan Robertson <dan@dlrobertson.com>
Wed, 13 Feb 2019 17:52:22 +0000 (17:52 +0000)
commit285d4a7eb67cdf3ebba4b8fe60a5c5a6abf3edfc
treefd588a2bf815afbd8d2eff3f682bf97565bceeb1
parente54494727855cd14229f5d456591ed2a2f027c46
suggestion-diagnostics: as_ref improve snippet

Improve the code snippet suggested in suggestion-diagnostics when
suggesting the use of as_ref.
src/librustc_typeck/check/demand.rs
src/test/ui/suggestions/as-ref.stderr