@@ -19,12 +19,12 @@ use rustc_middle::middle::privacy::Level;
1919use rustc_middle:: query:: Providers ;
2020use rustc_middle:: ty:: { self , AssocTag , TyCtxt } ;
2121use rustc_middle:: { bug, span_bug} ;
22- use rustc_session:: lint:: builtin:: { DEAD_CODE , UNCONSTRUCTIBLE_PUB_STRUCT } ;
22+ use rustc_session:: lint:: builtin:: { DEAD_CODE , UNCONSTRUCTABLE_PUB_STRUCT } ;
2323use rustc_session:: lint:: { self , LintExpectationId } ;
2424use rustc_span:: { Symbol , kw, sym} ;
2525
2626use crate :: errors:: {
27- ChangeFields , IgnoredDerivedImpls , MultipleDeadCodes , ParentInfo , UnconstructiblePubStruct ,
27+ ChangeFields , IgnoredDerivedImpls , MultipleDeadCodes , ParentInfo , UnconstructablePubStruct ,
2828 UselessAssignment ,
2929} ;
3030
@@ -763,9 +763,9 @@ impl<'tcx> Visitor<'tcx> for MarkSymbolVisitor<'tcx> {
763763 }
764764}
765765
766- fn has_allow_unconstructible_pub_struct ( tcx : TyCtxt < ' _ > , def_id : LocalDefId ) -> bool {
766+ fn has_allow_unconstructable_pub_struct ( tcx : TyCtxt < ' _ > , def_id : LocalDefId ) -> bool {
767767 let hir_id = tcx. local_def_id_to_hir_id ( def_id) ;
768- let lint_level = tcx. lint_level_at_node ( UNCONSTRUCTIBLE_PUB_STRUCT , hir_id) . level ;
768+ let lint_level = tcx. lint_level_at_node ( UNCONSTRUCTABLE_PUB_STRUCT , hir_id) . level ;
769769 matches ! ( lint_level, lint:: Allow | lint:: Expect )
770770}
771771
@@ -903,12 +903,12 @@ fn create_and_seed_worklist(
903903 true ,
904904 ) ,
905905 DefKind :: Struct => (
906- has_allow_unconstructible_pub_struct ( tcx, * id)
906+ has_allow_unconstructable_pub_struct ( tcx, * id)
907907 || struct_can_be_constructed_directly ( tcx, * id) ,
908908 false ,
909909 ) ,
910910 DefKind :: Ctor ( CtorOf :: Struct , CtorKind :: Fn ) => (
911- has_allow_unconstructible_pub_struct ( tcx, tcx. local_parent ( * id) )
911+ has_allow_unconstructable_pub_struct ( tcx, tcx. local_parent ( * id) )
912912 || struct_can_be_constructed_directly ( tcx, tcx. local_parent ( * id) ) ,
913913 false ,
914914 ) ,
@@ -1371,8 +1371,8 @@ fn check_mod_deathness(tcx: TyCtxt<'_>, module: LocalModDefId) {
13711371
13721372 let hir_id = tcx. local_def_id_to_hir_id ( def_id) ;
13731373 let vis_span = tcx. hir_node ( hir_id) . expect_item ( ) . vis_span ;
1374- let diag = UnconstructiblePubStruct { name, vis_span } ;
1375- tcx. emit_node_span_lint ( UNCONSTRUCTIBLE_PUB_STRUCT , hir_id, tcx. hir_span ( hir_id) , diag) ;
1374+ let diag = UnconstructablePubStruct { name, vis_span } ;
1375+ tcx. emit_node_span_lint ( UNCONSTRUCTABLE_PUB_STRUCT , hir_id, tcx. hir_span ( hir_id) , diag) ;
13761376 }
13771377}
13781378
0 commit comments