mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
fix: Allow configuration of colons in inlay-hints
This commit is contained in:
parent
224a255c5a
commit
62265ee9cb
8 changed files with 40 additions and 10 deletions
|
@ -440,6 +440,7 @@ pub fn bench(label: &'static str) -> impl Drop {
|
|||
|
||||
/// Checks that the `file` has the specified `contents`. If that is not the
|
||||
/// case, updates the file and then fails the test.
|
||||
#[track_caller]
|
||||
pub fn ensure_file_contents(file: &Path, contents: &str) {
|
||||
if let Err(()) = try_ensure_file_contents(file, contents) {
|
||||
panic!("Some files were not up-to-date");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue