File tree 4 files changed +0
-30
lines changed
4 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -194,11 +194,6 @@ impl ConflictCache {
194
194
/// `dep` is known to be unresolvable if
195
195
/// all the `PackageId` entries are activated.
196
196
pub fn insert ( & mut self , dep : & Dependency , con : & ConflictMap ) {
197
- if con. values ( ) . any ( |c| c. is_public_dependency ( ) ) {
198
- // TODO: needs more info for back jumping
199
- // for now refuse to cache it.
200
- return ;
201
- }
202
197
self . con_from_dep
203
198
. entry ( dep. clone ( ) )
204
199
. or_insert_with ( || ConflictStoreTrie :: Node ( BTreeMap :: new ( ) ) )
Original file line number Diff line number Diff line change @@ -193,14 +193,6 @@ pub(super) fn activation_error(
193
193
) ;
194
194
// p == parent so the full path is redundant.
195
195
}
196
- ConflictReason :: PublicDependency ( pkg_id) => {
197
- // TODO: This needs to be implemented.
198
- unimplemented ! ( "pub dep {:?}" , pkg_id) ;
199
- }
200
- ConflictReason :: PubliclyExports ( pkg_id) => {
201
- // TODO: This needs to be implemented.
202
- unimplemented ! ( "pub exp {:?}" , pkg_id) ;
203
- }
204
196
}
205
197
}
206
198
Original file line number Diff line number Diff line change @@ -820,10 +820,6 @@ fn generalize_conflicting(
820
820
let backtrack_critical_reason: ConflictReason =
821
821
conflicting_activations[ & backtrack_critical_id] . clone ( ) ;
822
822
823
- if backtrack_critical_reason. is_public_dependency ( ) {
824
- return None ;
825
- }
826
-
827
823
if cx
828
824
. parents
829
825
. is_path_from_to ( & parent. package_id ( ) , & backtrack_critical_id)
Original file line number Diff line number Diff line change @@ -300,12 +300,6 @@ pub enum ConflictReason {
300
300
/// A dependency listed a feature for an optional dependency, but that
301
301
/// optional dependency is "hidden" using namespaced `dep:` syntax.
302
302
NonImplicitDependencyAsFeature ( InternedString ) ,
303
-
304
- // TODO: needs more info for `activation_error`
305
- // TODO: needs more info for `find_candidate`
306
- /// pub dep error
307
- PublicDependency ( PackageId ) ,
308
- PubliclyExports ( PackageId ) ,
309
303
}
310
304
311
305
impl ConflictReason {
@@ -320,13 +314,6 @@ impl ConflictReason {
320
314
pub fn is_required_dependency_as_features ( & self ) -> bool {
321
315
matches ! ( self , ConflictReason :: RequiredDependencyAsFeature ( _) )
322
316
}
323
-
324
- pub fn is_public_dependency ( & self ) -> bool {
325
- matches ! (
326
- self ,
327
- ConflictReason :: PublicDependency ( _) | ConflictReason :: PubliclyExports ( _)
328
- )
329
- }
330
317
}
331
318
332
319
/// A list of packages that have gotten in the way of resolving a dependency.
You can’t perform that action at this time.
0 commit comments