about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2020-03-23 22:24:31 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2020-03-23 22:24:31 +0100
commit5aa15bfa1c54d3139559e7296ff2b74ebedcc07e (patch)
treebd658c4f7d78133df5deff6cfe067c059533d123
parent124ab20d4bbbe28d50b641836e3a87f1d796767d (diff)
downloadrust-5aa15bfa1c54d3139559e7296ff2b74ebedcc07e.tar.gz
rust-5aa15bfa1c54d3139559e7296ff2b74ebedcc07e.zip
Remove leftover mentions of `from_anon_const`
-rw-r--r--src/librustc/mir/interpret/mod.rs2
-rw-r--r--src/librustc/ty/sty.rs2
-rw-r--r--src/test/ui/consts/issue-69310-array-size-lit-wrong-ty.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc/mir/interpret/mod.rs b/src/librustc/mir/interpret/mod.rs
index dfe5adb1bbf..4ca9ad46daa 100644
--- a/src/librustc/mir/interpret/mod.rs
+++ b/src/librustc/mir/interpret/mod.rs
@@ -151,7 +151,7 @@ pub struct LitToConstInput<'tcx> {
 pub enum LitToConstError {
     /// The literal's inferred type did not match the expected `ty` in the input.
     /// This is used for graceful error handling (`delay_span_bug`) in
-    /// type checking (`AstConv::ast_const_to_const`).
+    /// type checking (`Const::from_anon_const`).
     TypeError,
     UnparseableFloat,
     Reported,
diff --git a/src/librustc/ty/sty.rs b/src/librustc/ty/sty.rs
index e49a29f687c..73fe15d9a17 100644
--- a/src/librustc/ty/sty.rs
+++ b/src/librustc/ty/sty.rs
@@ -2435,7 +2435,7 @@ impl<'tcx> Const<'tcx> {
             if let Ok(c) = tcx.at(expr.span).lit_to_const(lit_input) {
                 return c;
             } else {
-                tcx.sess.delay_span_bug(expr.span, "ast_const_to_const: couldn't lit_to_const");
+                tcx.sess.delay_span_bug(expr.span, "Const::from_anon_const: couldn't lit_to_const");
             }
         }
 
diff --git a/src/test/ui/consts/issue-69310-array-size-lit-wrong-ty.rs b/src/test/ui/consts/issue-69310-array-size-lit-wrong-ty.rs
index 98be8c345a9..f0d5fea8e02 100644
--- a/src/test/ui/consts/issue-69310-array-size-lit-wrong-ty.rs
+++ b/src/test/ui/consts/issue-69310-array-size-lit-wrong-ty.rs
@@ -3,7 +3,7 @@
 // we call the query `lit_to_const(input);`.
 // However, the literal `input.lit` would not be of the type expected by `input.ty`.
 // As a result, we immediately called `bug!(...)` instead of bubbling up the problem
-// so that it could be handled by the caller of `lit_to_const` (`ast_const_to_const`).
+// so that it could be handled by the caller of `lit_to_const` (`from_anon_const`).
 
 fn main() {}