File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
src/tools/rust-analyzer/crates/hir-ty/src Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use crate::{
14
14
pub trait LayoutCalculator {
15
15
type TargetDataLayoutRef : Borrow < TargetDataLayout > ;
16
16
17
- fn delay_bug ( & self , txt : String ) ;
17
+ fn delayed_bug ( & self , txt : String ) ;
18
18
fn current_data_layout ( & self ) -> Self :: TargetDataLayoutRef ;
19
19
20
20
fn scalar_pair < FieldIdx : Idx , VariantIdx : Idx > (
@@ -792,7 +792,7 @@ pub trait LayoutCalculator {
792
792
let only_variant = & variants[ VariantIdx :: new ( 0 ) ] ;
793
793
for field in only_variant {
794
794
if field. is_unsized ( ) {
795
- self . delay_bug ( "unsized field in union" . to_string ( ) ) ;
795
+ self . delayed_bug ( "unsized field in union" . to_string ( ) ) ;
796
796
}
797
797
798
798
align = align. max ( field. align ) ;
@@ -1038,7 +1038,7 @@ fn univariant<
1038
1038
for & i in & inverse_memory_index {
1039
1039
let field = & fields[ i] ;
1040
1040
if !sized {
1041
- this. delay_bug ( format ! (
1041
+ this. delayed_bug ( format ! (
1042
1042
"univariant: field #{} comes after unsized field" ,
1043
1043
offsets. len( ) ,
1044
1044
) ) ;
Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ pub struct LayoutCx<'tcx, C> {
282
282
impl < ' tcx > LayoutCalculator for LayoutCx < ' tcx , TyCtxt < ' tcx > > {
283
283
type TargetDataLayoutRef = & ' tcx TargetDataLayout ;
284
284
285
- fn delay_bug ( & self , txt : String ) {
285
+ fn delayed_bug ( & self , txt : String ) {
286
286
self . tcx . sess . span_delayed_bug ( DUMMY_SP , txt) ;
287
287
}
288
288
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ struct LayoutCx<'a> {
110
110
impl < ' a > LayoutCalculator for LayoutCx < ' a > {
111
111
type TargetDataLayoutRef = & ' a TargetDataLayout ;
112
112
113
- fn delay_bug ( & self , txt : String ) {
113
+ fn delayed_bug ( & self , txt : String ) {
114
114
never ! ( "{}" , txt) ;
115
115
}
116
116
You can’t perform that action at this time.
0 commit comments