mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 13:06:28 +03:00
from_item is the old name
This commit is contained in:
@@ -1342,7 +1342,7 @@ pub fn for_item(cx: &'a TyCtxt<'tcx>, id: NodeId) -> ParameterEnvironment<'a, 't
|
||||
}
|
||||
_ => {
|
||||
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 @@ pub fn for_item(cx: &'a TyCtxt<'tcx>, id: NodeId) -> ParameterEnvironment<'a, 't
|
||||
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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user