mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Address review
This commit is contained in:
parent
a5588b9e19
commit
3ec2dcfc0d
1 changed files with 4 additions and 5 deletions
|
@ -119,9 +119,11 @@ pub(super) fn maybe_item(p: &mut Parser, m: Marker, flavor: ItemFlavor) -> Resul
|
||||||
&& (match p.nth(1) {
|
&& (match p.nth(1) {
|
||||||
T![impl] => true,
|
T![impl] => true,
|
||||||
T![unsafe] => {
|
T![unsafe] => {
|
||||||
if T![impl] == p.nth(2) {
|
// test default_unsafe_impl
|
||||||
|
// default unsafe impl Foo {}
|
||||||
|
if p.nth(2) == T![impl] {
|
||||||
p.bump_remap(T![default]);
|
p.bump_remap(T![default]);
|
||||||
p.bump_remap(T![unsafe]);
|
p.bump(T![unsafe]);
|
||||||
has_mods = true;
|
has_mods = true;
|
||||||
}
|
}
|
||||||
false
|
false
|
||||||
|
@ -195,9 +197,6 @@ pub(super) fn maybe_item(p: &mut Parser, m: Marker, flavor: ItemFlavor) -> Resul
|
||||||
// test default_impl
|
// test default_impl
|
||||||
// default impl Foo {}
|
// default impl Foo {}
|
||||||
|
|
||||||
// test default_unsafe_impl
|
|
||||||
// default unsafe impl Foo {}
|
|
||||||
|
|
||||||
// test_err default_fn_type
|
// test_err default_fn_type
|
||||||
// trait T {
|
// trait T {
|
||||||
// default type T = Bar;
|
// default type T = Bar;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue