Skip to content

Commit ac27cc6

Browse files
Rollup merge of #152943 - CoCo-Japan-pan:impl-restriction-parse, r=Urgau,jhpratt
Parse `impl` restrictions This PR implements the parsing logic for `impl` restrictions (e.g., `pub impl(crate) trait Foo {}`) as proposed in [RFC 3323](https://rust-lang.github.io/rfcs/3323-restrictions.html). As the first step of the RFC implementation, this PR focuses strictly on the parsing phase. The new syntax is guarded by the `#![feature(impl_restriction)]` feature gate. This implementation basically follows the pattern used in rust-lang/rust#141754. r? @jhpratt
2 parents b5b5b41 + 3d48b93 commit ac27cc6

0 file changed

File tree

    0 commit comments

    Comments
     (0)