rust/tests
bors b5e6d6db41 Auto merge of #5134 - flip1995:snippet_block, r=phansch
Make it possible to correctly indent snippet_block snippets

This adds a `indent_relative_to` arg to the `{snippet,expr}_block` functions. This makes it possible to keep the correct indentation of block like suggestions.

In addition, this makes the `trim_multiline` function private and adds a `indent_of` function, to get the indentation of the first line of a span.

The suggestion of `needless_continue` cannot be made auto applicable, since it would be also necessary to remove code following the linted expression. (Well, maybe it is possible, but I don't know how to do it. Expanding the suggestion span to the last expression, that should be removed didn't work)

changelog: Improve suggestions, when blocks of code are involved
2020-02-06 21:41:50 +00:00
..
auxiliary
cargo Add serde_derive to the need-to-be-disambiguated-crates list 2020-02-05 22:00:19 +07:00
ui Auto merge of #5134 - flip1995:snippet_block, r=phansch 2020-02-06 21:41:50 +00:00
ui-toml add excessive bools lints 2020-02-05 20:54:58 +03:00
compile-test.rs compile-test: Handle CARGO_TARGET_DIR and transitive deps 2020-02-05 21:55:03 +07:00
dogfood.rs Use lazy_static 2020-02-05 16:13:55 +01:00
fmt.rs Deprecate util/dev in favor of cargo alias 2020-01-30 21:34:31 +01:00
integration.rs
matches.rs
missing-test-files.rs
versioncheck.rs