mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Remove fix::local_paths_no_fix
, as crate_in_paths
is getting stabilized.
This commit is contained in:
parent
b1e1d388ea
commit
afdde6081d
@ -312,37 +312,6 @@ fn local_paths() {
|
||||
assert!(p.read_file("src/lib.rs").contains("use crate::test::foo;"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn local_paths_no_fix() {
|
||||
if !is_nightly() {
|
||||
return;
|
||||
}
|
||||
let p = project()
|
||||
.file(
|
||||
"src/lib.rs",
|
||||
r#"
|
||||
use test::foo;
|
||||
|
||||
mod test {
|
||||
pub fn foo() {}
|
||||
}
|
||||
|
||||
pub fn f() {
|
||||
foo();
|
||||
}
|
||||
"#,
|
||||
).build();
|
||||
|
||||
let stderr = "\
|
||||
[CHECKING] foo v0.0.1 ([..])
|
||||
[FINISHED] [..]
|
||||
";
|
||||
p.cargo("fix --edition --allow-no-vcs")
|
||||
.with_stderr(stderr)
|
||||
.with_stdout("")
|
||||
.run();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn upgrade_extern_crate() {
|
||||
if !is_nightly() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user