File tree 2 files changed +1
-25
lines changed 2 files changed +1
-25
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,7 @@ pub fn exec(gctx: &mut GlobalContext, args: &ArgMatches) -> CliResult {
90
90
/// See also `util/toml/mod.rs`s `is_embedded`
91
91
pub fn is_manifest_command ( arg : & str ) -> bool {
92
92
let path = Path :: new ( arg) ;
93
- 1 < path. components ( ) . count ( )
94
- || path. extension ( ) == Some ( OsStr :: new ( "rs" ) )
95
- || path. file_name ( ) == Some ( OsStr :: new ( "Cargo.toml" ) )
93
+ 1 < path. components ( ) . count ( ) || path. extension ( ) == Some ( OsStr :: new ( "rs" ) )
96
94
}
97
95
98
96
pub fn exec_manifest_command ( gctx : & mut GlobalContext , cmd : & str , args : & [ OsString ] ) -> CliResult {
Original file line number Diff line number Diff line change @@ -68,28 +68,6 @@ args: []
68
68
. run ( ) ;
69
69
}
70
70
71
- #[ cargo_test]
72
- fn basic_cargo_toml ( ) {
73
- let p = cargo_test_support:: project ( )
74
- . file ( "src/main.rs" , ECHO_SCRIPT )
75
- . build ( ) ;
76
-
77
- p. cargo ( "-Zscript -v Cargo.toml" )
78
- . masquerade_as_nightly_cargo ( & [ "script" ] )
79
- . with_stdout_data ( str![ [ r#"
80
- bin: target/debug/foo[EXE]
81
- args: []
82
-
83
- "# ] ] )
84
- . with_stderr_data ( str![ [ r#"
85
- [COMPILING] foo v0.0.1 ([ROOT]/foo)
86
- [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
87
- [RUNNING] `target/debug/foo[EXE]`
88
-
89
- "# ] ] )
90
- . run ( ) ;
91
- }
92
-
93
71
#[ cargo_test]
94
72
fn path_required ( ) {
95
73
let p = cargo_test_support:: project ( )
You can’t perform that action at this time.
0 commit comments