rust/tests
Philipp Hansch 1573d10325
tabs_in_doc_comments: Fix ICE due to char indexing
This is a quick-fix for an ICE in `tabs_in_doc_comments`. The problem
was that we we're indexing into possibly multi-byte characters, such as '位'.

More specifically `get_chunks_of_tabs` was returning indices into
multi-byte characters. Those were passed on to a `Span` creation that
then caused the ICE.

This fix makes sure that we don't return indices that point inside a
multi-byte character. *However*, we are still iterating over unicode
codepoints, not grapheme clusters. So a seemingly single character like y̆ ,
which actually consists of two codepoints, will probably still cause
incorrect spans in the output.
2021-04-06 07:20:55 +02:00
..
auxiliary
cargo
ui tabs_in_doc_comments: Fix ICE due to char indexing 2021-04-06 07:20:55 +02:00
ui-cargo
ui-internal Add if_chain lints 2021-03-31 14:06:27 -05:00
ui-toml upper_case_acronyms: add ui and ui-toml tests for private/public enums 2021-03-27 01:08:14 +01:00
compile-test.rs
dogfood.rs
fmt.rs
integration.rs
lint_message_convention.rs Fix codes that make dogfood fail 2021-04-01 00:05:42 +09:00
missing-test-files.rs
versioncheck.rs