@@ -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
@@ -733,9 +733,9 @@ impl<'tcx> Visitor<'tcx> for MarkSymbolVisitor<'tcx> {
733733 }
734734}
735735
736- fn has_allow_unconstructible_pub_struct ( tcx : TyCtxt < ' _ > , def_id : LocalDefId ) -> bool {
736+ fn has_allow_unconstructable_pub_struct ( tcx : TyCtxt < ' _ > , def_id : LocalDefId ) -> bool {
737737 let hir_id = tcx. local_def_id_to_hir_id ( def_id) ;
738- let lint_level = tcx. lint_level_at_node ( UNCONSTRUCTIBLE_PUB_STRUCT , hir_id) . level ;
738+ let lint_level = tcx. lint_level_at_node ( UNCONSTRUCTABLE_PUB_STRUCT , hir_id) . level ;
739739 matches ! ( lint_level, lint:: Allow | lint:: Expect )
740740}
741741
@@ -873,12 +873,12 @@ fn create_and_seed_worklist(
873873 true ,
874874 ) ,
875875 DefKind :: Struct => (
876- has_allow_unconstructible_pub_struct ( tcx, * id)
876+ has_allow_unconstructable_pub_struct ( tcx, * id)
877877 || struct_can_be_constructed_directly ( tcx, * id) ,
878878 false ,
879879 ) ,
880880 DefKind :: Ctor ( CtorOf :: Struct , CtorKind :: Fn ) => (
881- has_allow_unconstructible_pub_struct ( tcx, tcx. local_parent ( * id) )
881+ has_allow_unconstructable_pub_struct ( tcx, tcx. local_parent ( * id) )
882882 || struct_can_be_constructed_directly ( tcx, tcx. local_parent ( * id) ) ,
883883 false ,
884884 ) ,
@@ -1333,8 +1333,8 @@ fn check_mod_deathness(tcx: TyCtxt<'_>, module: LocalModDefId) {
13331333
13341334 let hir_id = tcx. local_def_id_to_hir_id ( def_id) ;
13351335 let vis_span = tcx. hir_node ( hir_id) . expect_item ( ) . vis_span ;
1336- let diag = UnconstructiblePubStruct { name, vis_span } ;
1337- tcx. emit_node_span_lint ( UNCONSTRUCTIBLE_PUB_STRUCT , hir_id, tcx. hir_span ( hir_id) , diag) ;
1336+ let diag = UnconstructablePubStruct { name, vis_span } ;
1337+ tcx. emit_node_span_lint ( UNCONSTRUCTABLE_PUB_STRUCT , hir_id, tcx. hir_span ( hir_id) , diag) ;
13381338 }
13391339}
13401340
0 commit comments