From c4fd46398132a409d7947141094d7301c0f0af73 Mon Sep 17 00:00:00 2001 From: Avi Dessauer Date: Thu, 4 Jun 2020 13:06:26 -0400 Subject: [PATCH] Move default const test out of line --- crates/ra_parser/src/grammar/items.rs | 10 ---------- .../0043_default_const.rast} | 0 .../0043_default_const.rs} | 0 .../0066_default_const.rast} | 0 .../0162_default_const.rs => ok/0066_default_const.rs} | 0 5 files changed, 10 deletions(-) rename crates/ra_syntax/test_data/parser/{inline/err/0015_default_const.rast => err/0043_default_const.rast} (100%) rename crates/ra_syntax/test_data/parser/{inline/err/0015_default_const.rs => err/0043_default_const.rs} (100%) rename crates/ra_syntax/test_data/parser/{inline/ok/0162_default_const.rast => ok/0066_default_const.rast} (100%) rename crates/ra_syntax/test_data/parser/{inline/ok/0162_default_const.rs => ok/0066_default_const.rs} (100%) diff --git a/crates/ra_parser/src/grammar/items.rs b/crates/ra_parser/src/grammar/items.rs index 0d3568e5fc0..9c14b954af4 100644 --- a/crates/ra_parser/src/grammar/items.rs +++ b/crates/ra_parser/src/grammar/items.rs @@ -208,16 +208,6 @@ pub(super) fn maybe_item(p: &mut Parser, m: Marker, flavor: ItemFlavor) -> Resul // default type T = Bar; // default fn foo() {} // } - - // test_err default_const - // trait T { - // default const f: u8 = 0; - // } - - // test default_const - // impl T for Foo { - // default const f: u8 = 0; - // } T![const] => { consts::const_def(p, m); } diff --git a/crates/ra_syntax/test_data/parser/inline/err/0015_default_const.rast b/crates/ra_syntax/test_data/parser/err/0043_default_const.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/err/0015_default_const.rast rename to crates/ra_syntax/test_data/parser/err/0043_default_const.rast diff --git a/crates/ra_syntax/test_data/parser/inline/err/0015_default_const.rs b/crates/ra_syntax/test_data/parser/err/0043_default_const.rs similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/err/0015_default_const.rs rename to crates/ra_syntax/test_data/parser/err/0043_default_const.rs diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0162_default_const.rast b/crates/ra_syntax/test_data/parser/ok/0066_default_const.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0162_default_const.rast rename to crates/ra_syntax/test_data/parser/ok/0066_default_const.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0162_default_const.rs b/crates/ra_syntax/test_data/parser/ok/0066_default_const.rs similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0162_default_const.rs rename to crates/ra_syntax/test_data/parser/ok/0066_default_const.rs