File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ pub struct LitToConstInput<'tcx> {
151
151
pub enum LitToConstError {
152
152
/// The literal's inferred type did not match the expected `ty` in the input.
153
153
/// This is used for graceful error handling (`delay_span_bug`) in
154
- /// type checking (`AstConv::ast_const_to_const `).
154
+ /// type checking (`Const::from_anon_const `).
155
155
TypeError ,
156
156
UnparseableFloat ,
157
157
Reported ,
Original file line number Diff line number Diff line change @@ -2435,7 +2435,7 @@ impl<'tcx> Const<'tcx> {
2435
2435
if let Ok ( c) = tcx. at ( expr. span ) . lit_to_const ( lit_input) {
2436
2436
return c;
2437
2437
} else {
2438
- tcx. sess . delay_span_bug ( expr. span , "ast_const_to_const : couldn't lit_to_const" ) ;
2438
+ tcx. sess . delay_span_bug ( expr. span , "Const::from_anon_const : couldn't lit_to_const" ) ;
2439
2439
}
2440
2440
}
2441
2441
Original file line number Diff line number Diff line change 3
3
// we call the query `lit_to_const(input);`.
4
4
// However, the literal `input.lit` would not be of the type expected by `input.ty`.
5
5
// As a result, we immediately called `bug!(...)` instead of bubbling up the problem
6
- // so that it could be handled by the caller of `lit_to_const` (`ast_const_to_const `).
6
+ // so that it could be handled by the caller of `lit_to_const` (`from_anon_const `).
7
7
8
8
fn main ( ) { }
9
9
You can’t perform that action at this time.
0 commit comments