@@ -15,7 +15,7 @@ use crate::semantic_index::{DeclarationWithConstraint, global_scope, use_def_map
1515use crate :: types:: {
1616 ApplyTypeMappingVisitor , DynamicType , KnownClass , MaterializationKind , MemberLookupPolicy ,
1717 Truthiness , Type , TypeAndQualifiers , TypeQualifiers , UnionBuilder , UnionType , binding_type,
18- declaration_type, todo_type ,
18+ declaration_type,
1919} ;
2020use crate :: { Db , FxOrderSet , Program } ;
2121
@@ -174,13 +174,6 @@ impl<'db> Place<'db> {
174174 Place :: Defined ( DefinedPlace :: new ( ty. into ( ) ) . with_origin ( TypeOrigin :: Declared ) )
175175 }
176176
177- /// Constructor that creates a [`Place`] with a [`crate::types::TodoType`] type
178- /// and definedness [`Definedness::AlwaysDefined`].
179- #[ allow( unused_variables) ] // Only unused in release builds
180- pub ( crate ) fn todo ( message : & ' static str ) -> Self {
181- Place :: Defined ( DefinedPlace :: new ( todo_type ! ( message) ) )
182- }
183-
184177 pub ( crate ) fn is_undefined ( & self ) -> bool {
185178 matches ! ( self , Place :: Undefined )
186179 }
@@ -675,17 +668,6 @@ pub(crate) struct PlaceAndQualifiers<'db> {
675668}
676669
677670impl < ' db > PlaceAndQualifiers < ' db > {
678- /// Constructor that creates a [`PlaceAndQualifiers`] instance with a [`TodoType`] type
679- /// and no qualifiers.
680- ///
681- /// [`TodoType`]: crate::types::TodoType
682- pub ( crate ) fn todo ( message : & ' static str ) -> Self {
683- Self {
684- place : Place :: todo ( message) ,
685- qualifiers : TypeQualifiers :: empty ( ) ,
686- }
687- }
688-
689671 pub ( crate ) fn unbound ( ) -> Self {
690672 Self :: default ( )
691673 }
0 commit comments