about summary refs log tree commit diff
path: root/src/test/mir-opt/lower_array_len.array_bound_mut.SimplifyLocals.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-08-09 13:48:47 +0000
committerbors <bors@rust-lang.org>2021-08-09 13:48:47 +0000
commit14d2aa15828480be895ec528fdfb18388d68d5db (patch)
tree69a65a7b59f7dbea96bd0ab6973d3cabe7dd20f8 /src/test/mir-opt/lower_array_len.array_bound_mut.SimplifyLocals.diff
parent0084195dee22d498291d92603d18f2f79946671f (diff)
parentae700b42ed56e735ee813b03b53fcd44d1a662e9 (diff)
downloadrust-14d2aa15828480be895ec528fdfb18388d68d5db.tar.gz
rust-14d2aa15828480be895ec528fdfb18388d68d5db.zip
Auto merge of #7542 - LeSeulArtichaut:cleanups, r=flip1995
Cleanup usage of `span_to_snippet` and `LintContext::sess`

- avoid using `SourceMap::span_to_snippet` directly and use `clippy_utils::source::snippet_opt` instead
- don't use `LintContext::sess()` on `EarlyContext`s which have a `sess` field directly available, saving the import of `LintContext`

changelog: none
Diffstat (limited to 'src/test/mir-opt/lower_array_len.array_bound_mut.SimplifyLocals.diff')
0 files changed, 0 insertions, 0 deletions