File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,6 @@ fn gc_workspace(workspace: &Workspace<'_>) -> CargoResult<()> {
216
216
//
217
217
// Example tables:
218
218
// - profile.dev.package.foo
219
- // - profile.release.package."*"
220
219
// - profile.release.package."foo:2.1.0"
221
220
if let Some ( toml_edit:: Item :: Table ( profile_section_table) ) = manifest. get_mut ( "profile" ) {
222
221
profile_section_table. set_implicit ( true ) ;
@@ -231,8 +230,14 @@ fn gc_workspace(workspace: &Workspace<'_>) -> CargoResult<()> {
231
230
package_table. set_implicit ( true ) ;
232
231
233
232
for ( key, item) in package_table. iter_mut ( ) {
233
+ let key = key. get ( ) ;
234
+ // Skip globs. Can't do anything with them.
235
+ // For example, profile.release.package."*".
236
+ if crate :: util:: restricted_names:: is_glob_pattern ( key) {
237
+ continue ;
238
+ }
234
239
if !spec_has_match (
235
- & PackageIdSpec :: parse ( key. get ( ) ) ?,
240
+ & PackageIdSpec :: parse ( key) ?,
236
241
& dependencies,
237
242
workspace. config ( ) ,
238
243
) ? {
You can’t perform that action at this time.
0 commit comments