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 Remove all copyright license headers 2019-01-08 21:46:39 +01:00
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 do minor cleanups 2019-12-24 03:06:52 +07:00
matches.rs Rustup to https://github.com/rust-lang/rust/pull/67853 2020-01-04 11:30:03 +01:00
missing-test-files.rs cargo fmt 2019-06-21 16:47:34 +02:00
versioncheck.rs test(versioncheck): Use .no_deps() 2019-01-25 21:53:44 +01:00