Skip to content

Commit a3fdf32

Browse files
committed
from_item is the old name
1 parent 157ba00 commit a3fdf32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/ty/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ impl<'a, 'tcx> ParameterEnvironment<'a, 'tcx> {
13421342
}
13431343
_ => {
13441344
cx.sess.span_bug(item.span,
1345-
"ParameterEnvironment::from_item():
1345+
"ParameterEnvironment::for_item():
13461346
can't create a parameter \
13471347
environment for this kind of item")
13481348
}
@@ -1353,7 +1353,7 @@ impl<'a, 'tcx> ParameterEnvironment<'a, 'tcx> {
13531353
ParameterEnvironment::for_item(cx, cx.map.get_parent(id))
13541354
}
13551355
_ => {
1356-
cx.sess.bug(&format!("ParameterEnvironment::from_item(): \
1356+
cx.sess.bug(&format!("ParameterEnvironment::for_item(): \
13571357
`{}` is not an item",
13581358
cx.map.node_to_string(id)))
13591359
}

0 commit comments

Comments
 (0)