-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rustfmt: actually fix the failing test
It only runs on nightly, but the next commits will show why this is useful.
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
pkgs/development/compilers/rust/rustfmt-fix-self-tests.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- a/src/tools/rustfmt/src/ignore_path.rs | ||
+++ b/src/tools/rustfmt/src/ignore_path.rs | ||
@@ -37,9 +37,9 @@ | ||
#[nightly_only_test] | ||
#[test] | ||
fn test_ignore_path_set() { | ||
- use std::path::{Path, PathBuf}; | ||
use crate::config::{Config, FileName}; | ||
use crate::ignore_path::IgnorePathSet; | ||
+ use std::path::{Path, PathBuf}; | ||
|
||
let config = | ||
Config::from_toml(r#"ignore = ["foo.rs", "bar_dir/*"]"#, Path::new("")).unwrap(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters