Remove in_band_lifetimes from rustc_middle
See #91867 This was mostly straightforward. In several places, I take advantage of the fact that lifetimes are non-hygenic: a macro declares the 'tcx' lifetime, which is then used in types passed in as macro arguments.
This commit is contained in:
@@ -101,7 +101,7 @@ impl<'tcx> fmt::Debug for ObligationCause<'tcx> {
|
||||
}
|
||||
}
|
||||
|
||||
impl Deref for ObligationCause<'tcx> {
|
||||
impl<'tcx> Deref for ObligationCause<'tcx> {
|
||||
type Target = ObligationCauseData<'tcx>;
|
||||
|
||||
#[inline(always)]
|
||||
|
||||
@@ -216,7 +216,7 @@ impl<'tcx> Ancestors<'tcx> {
|
||||
///
|
||||
/// Returns `Err` if an error was reported while building the specialization
|
||||
/// graph.
|
||||
pub fn ancestors(
|
||||
pub fn ancestors<'tcx>(
|
||||
tcx: TyCtxt<'tcx>,
|
||||
trait_def_id: DefId,
|
||||
start_from_impl: DefId,
|
||||
|
||||
@@ -74,7 +74,7 @@ impl<N: fmt::Debug> fmt::Debug for traits::ImplSourceBuiltinData<N> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<N: fmt::Debug> fmt::Debug for traits::ImplSourceTraitUpcastingData<'tcx, N> {
|
||||
impl<'tcx, N: fmt::Debug> fmt::Debug for traits::ImplSourceTraitUpcastingData<'tcx, N> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(
|
||||
f,
|
||||
|
||||
Reference in New Issue
Block a user