Clarify that ParameterEnvironment::for_item can take impl/trait items too
This commit is contained in:
parent
68de28b309
commit
157ba0038d
@ -1202,6 +1202,7 @@ pub fn with_caller_bounds(&self,
|
||||
}
|
||||
}
|
||||
|
||||
/// Construct a parameter environment given an item, impl item, or trait item
|
||||
pub fn for_item(cx: &'a TyCtxt<'tcx>, id: NodeId) -> ParameterEnvironment<'a, 'tcx> {
|
||||
match cx.map.find(id) {
|
||||
Some(ast_map::NodeImplItem(ref impl_item)) => {
|
||||
|
Loading…
Reference in New Issue
Block a user