Rollup merge of #91906 - anuvratsingh:remove_in_band_lifetimes_library_proc_macro, r=petrochenkov
Removed `in_band_lifetimes` from `library\proc_macro` Issue [#91867](https://github.com/rust-lang/rust/issues/91867) This is my first try, I followed the instructions given. Fixed all the errors that were thrown while compiling. Compiled with stage 0,1, and 2 all of them compiled successfully.
This commit is contained in:
commit
6c6cfa87c0
@ -78,7 +78,7 @@ fn encode(self, w: &mut Writer, s: &mut S) {
|
||||
}
|
||||
}
|
||||
|
||||
impl<S: server::Types> Decode<'_, 's, HandleStore<server::MarkedTypes<S>>>
|
||||
impl<'s, S: server::Types> Decode<'_, 's, HandleStore<server::MarkedTypes<S>>>
|
||||
for &'s Marked<S::$oty, $oty>
|
||||
{
|
||||
fn decode(r: &mut Reader<'_>, s: &'s HandleStore<server::MarkedTypes<S>>) -> Self {
|
||||
@ -92,7 +92,7 @@ fn encode(self, w: &mut Writer, s: &mut S) {
|
||||
}
|
||||
}
|
||||
|
||||
impl<S: server::Types> DecodeMut<'_, 's, HandleStore<server::MarkedTypes<S>>>
|
||||
impl<'s, S: server::Types> DecodeMut<'_, 's, HandleStore<server::MarkedTypes<S>>>
|
||||
for &'s mut Marked<S::$oty, $oty>
|
||||
{
|
||||
fn decode(
|
||||
|
@ -295,13 +295,13 @@ fn unmark(self) -> Self::Unmarked {
|
||||
self.value
|
||||
}
|
||||
}
|
||||
impl<T, M> Unmark for &'a Marked<T, M> {
|
||||
impl<'a, T, M> Unmark for &'a Marked<T, M> {
|
||||
type Unmarked = &'a T;
|
||||
fn unmark(self) -> Self::Unmarked {
|
||||
&self.value
|
||||
}
|
||||
}
|
||||
impl<T, M> Unmark for &'a mut Marked<T, M> {
|
||||
impl<'a, T, M> Unmark for &'a mut Marked<T, M> {
|
||||
type Unmarked = &'a mut T;
|
||||
fn unmark(self) -> Self::Unmarked {
|
||||
&mut self.value
|
||||
@ -356,8 +356,8 @@ fn unmark(self) -> Self::Unmarked {
|
||||
(),
|
||||
bool,
|
||||
char,
|
||||
&'a [u8],
|
||||
&'a str,
|
||||
&'_ [u8],
|
||||
&'_ str,
|
||||
String,
|
||||
usize,
|
||||
Delimiter,
|
||||
|
@ -79,7 +79,7 @@ mod tag {
|
||||
}
|
||||
}
|
||||
|
||||
impl<S, $($($T: for<'s> DecodeMut<'a, 's, S>),+)?> DecodeMut<'a, '_, S>
|
||||
impl<'a, S, $($($T: for<'s> DecodeMut<'a, 's, S>),+)?> DecodeMut<'a, '_, S>
|
||||
for $name $(<$($T),+>)?
|
||||
{
|
||||
fn decode(r: &mut Reader<'a>, s: &mut S) -> Self {
|
||||
@ -176,7 +176,7 @@ fn encode(self, w: &mut Writer, s: &mut S) {
|
||||
}
|
||||
}
|
||||
|
||||
impl<S, A: for<'s> DecodeMut<'a, 's, S>, B: for<'s> DecodeMut<'a, 's, S>> DecodeMut<'a, '_, S>
|
||||
impl<'a, S, A: for<'s> DecodeMut<'a, 's, S>, B: for<'s> DecodeMut<'a, 's, S>> DecodeMut<'a, '_, S>
|
||||
for (A, B)
|
||||
{
|
||||
fn decode(r: &mut Reader<'a>, s: &mut S) -> Self {
|
||||
@ -213,7 +213,7 @@ fn encode(self, w: &mut Writer, s: &mut S) {
|
||||
}
|
||||
}
|
||||
|
||||
impl<S> DecodeMut<'a, '_, S> for &'a [u8] {
|
||||
impl<'a, S> DecodeMut<'a, '_, S> for &'a [u8] {
|
||||
fn decode(r: &mut Reader<'a>, s: &mut S) -> Self {
|
||||
let len = usize::decode(r, s);
|
||||
let xs = &r[..len];
|
||||
@ -228,7 +228,7 @@ fn encode(self, w: &mut Writer, s: &mut S) {
|
||||
}
|
||||
}
|
||||
|
||||
impl<S> DecodeMut<'a, '_, S> for &'a str {
|
||||
impl<'a, S> DecodeMut<'a, '_, S> for &'a str {
|
||||
fn decode(r: &mut Reader<'a>, s: &mut S) -> Self {
|
||||
str::from_utf8(<&[u8]>::decode(r, s)).unwrap()
|
||||
}
|
||||
|
@ -25,7 +25,6 @@
|
||||
#![feature(allow_internal_unstable)]
|
||||
#![feature(decl_macro)]
|
||||
#![feature(extern_types)]
|
||||
#![feature(in_band_lifetimes)]
|
||||
#![feature(negative_impls)]
|
||||
#![feature(auto_traits)]
|
||||
#![feature(restricted_std)]
|
||||
|
Loading…
Reference in New Issue
Block a user