]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #69708 - estebank:tiny, r=petrochenkov
authorMazdak Farrokhzad <twingoow@gmail.com>
Sat, 7 Mar 2020 16:27:29 +0000 (17:27 +0100)
committerGitHub <noreply@github.com>
Sat, 7 Mar 2020 16:27:29 +0000 (17:27 +0100)
commit1a1f948deb2a08d678973cd958fdf82a149973a4
treee7341d471466a2a84604cd5663fda00571831797
parent289c3a5f6e8813886d148b7c194c137b6ae29551
parent81f435dd37c5ec828b621d37ec15bf41a33ff89a
Rollup merge of #69708 - estebank:tiny, r=petrochenkov

On mismatched delimiters, only point at empty blocks that are in the same line

We point at empty blocks when we have mismatched braces to detect cases where editors auto insert `}` after writing `{`. Gate this to only the case where the entire span is in the same line so we never point at explicitly empty blocks.