@@ -18,12 +18,12 @@ use rustc_middle::middle::privacy::Level;
1818use rustc_middle:: query:: Providers ;
1919use rustc_middle:: ty:: { self , AssocTag , TyCtxt } ;
2020use rustc_middle:: { bug, span_bug} ;
21- use rustc_session:: lint:: builtin:: { DEAD_CODE , UNCONSTRUCTIBLE_PUB_STRUCT } ;
21+ use rustc_session:: lint:: builtin:: { DEAD_CODE , UNCONSTRUCTABLE_PUB_STRUCT } ;
2222use rustc_session:: lint:: { self , LintExpectationId } ;
2323use rustc_span:: { Symbol , kw, sym} ;
2424
2525use crate :: errors:: {
26- ChangeFields , IgnoredDerivedImpls , MultipleDeadCodes , ParentInfo , UnconstructiblePubStruct ,
26+ ChangeFields , IgnoredDerivedImpls , MultipleDeadCodes , ParentInfo , UnconstructablePubStruct ,
2727 UselessAssignment ,
2828} ;
2929
@@ -739,9 +739,9 @@ impl<'tcx> Visitor<'tcx> for MarkSymbolVisitor<'tcx> {
739739 }
740740}
741741
742- fn has_allow_unconstructible_pub_struct ( tcx : TyCtxt < ' _ > , def_id : LocalDefId ) -> bool {
742+ fn has_allow_unconstructable_pub_struct ( tcx : TyCtxt < ' _ > , def_id : LocalDefId ) -> bool {
743743 let hir_id = tcx. local_def_id_to_hir_id ( def_id) ;
744- let lint_level = tcx. lint_level_at_node ( UNCONSTRUCTIBLE_PUB_STRUCT , hir_id) . level ;
744+ let lint_level = tcx. lint_level_at_node ( UNCONSTRUCTABLE_PUB_STRUCT , hir_id) . level ;
745745 matches ! ( lint_level, lint:: Allow | lint:: Expect )
746746}
747747
@@ -879,12 +879,12 @@ fn create_and_seed_worklist(
879879 true ,
880880 ) ,
881881 DefKind :: Struct => (
882- has_allow_unconstructible_pub_struct ( tcx, * id)
882+ has_allow_unconstructable_pub_struct ( tcx, * id)
883883 || struct_can_be_constructed_directly ( tcx, * id) ,
884884 false ,
885885 ) ,
886886 DefKind :: Ctor ( CtorOf :: Struct , CtorKind :: Fn ) => (
887- has_allow_unconstructible_pub_struct ( tcx, tcx. local_parent ( * id) )
887+ has_allow_unconstructable_pub_struct ( tcx, tcx. local_parent ( * id) )
888888 || struct_can_be_constructed_directly ( tcx, tcx. local_parent ( * id) ) ,
889889 false ,
890890 ) ,
@@ -1339,8 +1339,8 @@ fn check_mod_deathness(tcx: TyCtxt<'_>, module: LocalModDefId) {
13391339
13401340 let hir_id = tcx. local_def_id_to_hir_id ( def_id) ;
13411341 let vis_span = tcx. hir_node ( hir_id) . expect_item ( ) . vis_span ;
1342- let diag = UnconstructiblePubStruct { name, vis_span } ;
1343- tcx. emit_node_span_lint ( UNCONSTRUCTIBLE_PUB_STRUCT , hir_id, tcx. hir_span ( hir_id) , diag) ;
1342+ let diag = UnconstructablePubStruct { name, vis_span } ;
1343+ tcx. emit_node_span_lint ( UNCONSTRUCTABLE_PUB_STRUCT , hir_id, tcx. hir_span ( hir_id) , diag) ;
13441344 }
13451345}
13461346
0 commit comments