diff --git a/src/test/ui/parser/if-attrs/bad-cfg.rs b/src/test/ui/if-attrs/bad-cfg.rs similarity index 100% rename from src/test/ui/parser/if-attrs/bad-cfg.rs rename to src/test/ui/if-attrs/bad-cfg.rs diff --git a/src/test/ui/parser/if-attrs/bad-cfg.stderr b/src/test/ui/if-attrs/bad-cfg.stderr similarity index 100% rename from src/test/ui/parser/if-attrs/bad-cfg.stderr rename to src/test/ui/if-attrs/bad-cfg.stderr diff --git a/src/test/ui/parser/if-attrs/builtin-if-attr.rs b/src/test/ui/if-attrs/builtin-if-attr.rs similarity index 100% rename from src/test/ui/parser/if-attrs/builtin-if-attr.rs rename to src/test/ui/if-attrs/builtin-if-attr.rs diff --git a/src/test/ui/parser/if-attrs/cfg-false-if-attr.rs b/src/test/ui/if-attrs/cfg-false-if-attr.rs similarity index 100% rename from src/test/ui/parser/if-attrs/cfg-false-if-attr.rs rename to src/test/ui/if-attrs/cfg-false-if-attr.rs diff --git a/src/test/ui/parser/if-attrs/else-attrs.rs b/src/test/ui/if-attrs/else-attrs.rs similarity index 100% rename from src/test/ui/parser/if-attrs/else-attrs.rs rename to src/test/ui/if-attrs/else-attrs.rs diff --git a/src/test/ui/parser/if-attrs/else-attrs.stderr b/src/test/ui/if-attrs/else-attrs.stderr similarity index 100% rename from src/test/ui/parser/if-attrs/else-attrs.stderr rename to src/test/ui/if-attrs/else-attrs.stderr diff --git a/src/test/ui/parser/if-attrs/gate-whole-expr.rs b/src/test/ui/if-attrs/gate-whole-expr.rs similarity index 100% rename from src/test/ui/parser/if-attrs/gate-whole-expr.rs rename to src/test/ui/if-attrs/gate-whole-expr.rs diff --git a/src/test/ui/parser/if-attrs/let-chains-attr.rs b/src/test/ui/if-attrs/let-chains-attr.rs similarity index 100% rename from src/test/ui/parser/if-attrs/let-chains-attr.rs rename to src/test/ui/if-attrs/let-chains-attr.rs diff --git a/src/test/ui/parser/if-attrs/let-chains-attr.stderr b/src/test/ui/if-attrs/let-chains-attr.stderr similarity index 100% rename from src/test/ui/parser/if-attrs/let-chains-attr.stderr rename to src/test/ui/if-attrs/let-chains-attr.stderr diff --git a/src/test/ui/parser/if-attrs/stmt-expr-gated.rs b/src/test/ui/if-attrs/stmt-expr-gated.rs similarity index 100% rename from src/test/ui/parser/if-attrs/stmt-expr-gated.rs rename to src/test/ui/if-attrs/stmt-expr-gated.rs diff --git a/src/test/ui/parser/if-attrs/stmt-expr-gated.stderr b/src/test/ui/if-attrs/stmt-expr-gated.stderr similarity index 100% rename from src/test/ui/parser/if-attrs/stmt-expr-gated.stderr rename to src/test/ui/if-attrs/stmt-expr-gated.stderr