Remove P::map.

It's barely used, and the places that use it are better if they don't.
This commit is contained in:
Nicholas Nethercote
2025-05-27 01:42:51 +10:00
parent a35675d38f
commit 6973fa08a3
4 changed files with 21 additions and 38 deletions

View File

@@ -381,10 +381,7 @@ pub(crate) fn expand_test_or_bench(
.into(),
),
);
test_const = test_const.map(|mut tc| {
tc.vis.kind = ast::VisibilityKind::Public;
tc
});
test_const.vis.kind = ast::VisibilityKind::Public;
// extern crate test
let test_extern =