rustc: Remove local variable IDs from Export
s
Local variables can never be exported.
This commit is contained in:
parent
b69fe57261
commit
294510e1bb
19 changed files with 71 additions and 68 deletions
|
@ -366,6 +366,18 @@ direct_serialize_impls! {
|
|||
char emit_char read_char
|
||||
}
|
||||
|
||||
impl<S: Encoder> Encodable<S> for ! {
|
||||
fn encode(&self, _s: &mut S) -> Result<(), S::Error> {
|
||||
unreachable!()
|
||||
}
|
||||
}
|
||||
|
||||
impl<D: Decoder> Decodable<D> for ! {
|
||||
fn decode(_d: &mut D) -> Result<!, D::Error> {
|
||||
unreachable!()
|
||||
}
|
||||
}
|
||||
|
||||
impl<S: Encoder> Encodable<S> for ::std::num::NonZeroU32 {
|
||||
fn encode(&self, s: &mut S) -> Result<(), S::Error> {
|
||||
s.emit_u32(self.get())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue