We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
map_id
FnMut
1 parent c4216a5 commit 86c5fafCopy full SHA for 86c5faf
src/librustc/middle/region.rs
@@ -172,8 +172,8 @@ impl CodeExtent {
172
173
/// Maps this scope to a potentially new one according to the
174
/// NodeId transformer `f_id`.
175
- pub fn map_id<F>(&self, f_id: F) -> CodeExtent where
176
- F: Fn(ast::NodeId) -> ast::NodeId,
+ pub fn map_id<F>(&self, mut f_id: F) -> CodeExtent where
+ F: FnMut(ast::NodeId) -> ast::NodeId,
177
{
178
match *self {
179
CodeExtent::Misc(node_id) => CodeExtent::Misc(f_id(node_id)),
0 commit comments