File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
compiler/rustc_passes/src Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -695,7 +695,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
695695 let hir:: GenericParamKind :: Type { .. } = p. kind else { continue } ;
696696 let default = tcx. object_lifetime_default ( p. def_id ) ;
697697 let repr = match default {
698- ObjectLifetimeDefault :: Empty => "BaseDefault " . to_owned ( ) ,
698+ ObjectLifetimeDefault :: Empty => "Empty " . to_owned ( ) ,
699699 ObjectLifetimeDefault :: Static => "'static" . to_owned ( ) ,
700700 ObjectLifetimeDefault :: Param ( def_id) => tcx. item_name ( def_id) . to_string ( ) ,
701701 ObjectLifetimeDefault :: Ambiguous => "Ambiguous" . to_owned ( ) ,
Original file line number Diff line number Diff line change 22
33#[ rustc_object_lifetime_default]
44struct A <
5- T , //~ ERROR BaseDefault
5+ T , //~ ERROR Empty
66> ( T ) ;
77
88#[ rustc_object_lifetime_default]
99struct B <
1010 ' a ,
11- T , //~ ERROR BaseDefault
11+ T , //~ ERROR Empty
1212> ( & ' a ( ) , T ) ;
1313
1414#[ rustc_object_lifetime_default]
Original file line number Diff line number Diff line change 1- error: BaseDefault
1+ error: Empty
22 --> $DIR/object-lifetime-default.rs:5:5
33 |
44LL | T,
55 | ^
66
7- error: BaseDefault
7+ error: Empty
88 --> $DIR/object-lifetime-default.rs:11:5
99 |
1010LL | T,
You can’t perform that action at this time.
0 commit comments