make mk_attr_id
part of ParseSess
This commit is contained in:
parent
17cbdfd071
commit
1a3ecbdb6a
13 changed files with 88 additions and 27 deletions
|
@ -2523,8 +2523,8 @@ impl<S: Encoder> Encodable<S> for AttrId {
|
|||
}
|
||||
|
||||
impl<D: Decoder> Decodable<D> for AttrId {
|
||||
fn decode(_: &mut D) -> AttrId {
|
||||
crate::attr::mk_attr_id()
|
||||
default fn decode(_: &mut D) -> AttrId {
|
||||
panic!("cannot decode `AttrId` with `{}`", std::any::type_name::<D>());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue