about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-03-27 06:05:00 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-03-27 12:31:35 +0530
commita3fdf327e8bda2aaafd597f09c25b2192bb4a287 (patch)
tree0e05443dc424277b1aa0246cc75424bbbecf0f5f
parent157ba0038dea24f06d594b6e1190fcd0eb431018 (diff)
downloadrust-a3fdf327e8bda2aaafd597f09c25b2192bb4a287.tar.gz
rust-a3fdf327e8bda2aaafd597f09c25b2192bb4a287.zip
from_item is the old name
-rw-r--r--src/librustc/ty/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/ty/mod.rs b/src/librustc/ty/mod.rs
index 97c5e4c76da..d080724fac9 100644
--- a/src/librustc/ty/mod.rs
+++ b/src/librustc/ty/mod.rs
@@ -1342,7 +1342,7 @@ impl<'a, 'tcx> ParameterEnvironment<'a, 'tcx> {
                     }
                     _ => {
                         cx.sess.span_bug(item.span,
-                                         "ParameterEnvironment::from_item():
+                                         "ParameterEnvironment::for_item():
                                           can't create a parameter \
                                           environment for this kind of item")
                     }
@@ -1353,7 +1353,7 @@ impl<'a, 'tcx> ParameterEnvironment<'a, 'tcx> {
                 ParameterEnvironment::for_item(cx, cx.map.get_parent(id))
             }
             _ => {
-                cx.sess.bug(&format!("ParameterEnvironment::from_item(): \
+                cx.sess.bug(&format!("ParameterEnvironment::for_item(): \
                                      `{}` is not an item",
                                     cx.map.node_to_string(id)))
             }