File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
crates/cargo-util-schemas/src/core Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -183,5 +183,9 @@ fn is_req(value: &str) -> bool {
183
183
let Some ( first) = value. chars ( ) . next ( ) else {
184
184
return false ;
185
185
} ;
186
- "<>=^~" . contains ( first) || value. contains ( '*' ) || value. contains ( ',' )
186
+ "<>=^~" . contains ( first)
187
+ || value. contains ( '*' )
188
+ || value. contains ( ',' )
189
+ || value. contains ( 'x' )
190
+ || value. contains ( 'X' )
187
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,16 +149,15 @@ 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
)
158
157
. run ( ) ;
159
158
}
160
159
161
160
#[ cargo_test]
162
- #[ should_panic]
163
161
fn rust_version_minor_x_wildcard ( ) {
164
162
project ( )
165
163
. file (
@@ -193,7 +191,6 @@ fn rust_version_minor_x_wildcard() {
193
191
}
194
192
195
193
#[ cargo_test]
196
- #[ should_panic]
197
194
fn rust_version_patch_x_wildcard ( ) {
198
195
project ( )
199
196
. file (
You can’t perform that action at this time.
0 commit comments