File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
crates/cargo-util-schemas/src/core Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,12 @@ enum ErrorKind {
180
180
}
181
181
182
182
fn is_req ( value : & str ) -> bool {
183
+ if value == "x" || value == "X" {
184
+ // Checking for wildcard this way in case the `x` appears organically as a string so we
185
+ // don't error out about a req when it isn't one
186
+ return true ;
187
+ }
188
+
183
189
let Some ( first) = value. chars ( ) . next ( ) else {
184
190
return false ;
185
191
} ;
Original file line number Diff line number Diff line change @@ -125,7 +125,6 @@ fn rust_version_bad_pre_release() {
125
125
}
126
126
127
127
#[ cargo_test]
128
- #[ should_panic]
129
128
fn rust_version_x_wildcard ( ) {
130
129
project ( )
131
130
. file (
@@ -150,8 +149,8 @@ fn rust_version_x_wildcard() {
150
149
[ERROR] unexpected version requirement, expected a version like \" 1.32\"
151
150
--> Cargo.toml:7:28
152
151
|
153
- 7 | rust-version = \" ^1.43 \"
154
- | ^^^^^^^
152
+ 7 | rust-version = \" x \"
153
+ | ^^^
155
154
|
156
155
" ,
157
156
)
You can’t perform that action at this time.
0 commit comments