Skip to content

Commit 59c0633

Browse files
committed
Allow lifetime parameters to be inferred
1 parent 42dcd4b commit 59c0633

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/librustc/mir/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,7 @@ pub struct Statement<'tcx> {
15551555
#[cfg(target_arch = "x86_64")]
15561556
static_assert_size!(Statement<'_>, 56);
15571557

1558-
impl<'tcx> Statement<'tcx> {
1558+
impl Statement<'_> {
15591559
/// Changes a statement to a nop. This is both faster than deleting instructions and avoids
15601560
/// invalidating statement indices in `Location`s.
15611561
pub fn make_nop(&mut self) {
@@ -1677,7 +1677,7 @@ pub struct InlineAsm<'tcx> {
16771677
pub inputs: Box<[(Span, Operand<'tcx>)]>,
16781678
}
16791679

1680-
impl<'tcx> Debug for Statement<'tcx> {
1680+
impl Debug for Statement<'_> {
16811681
fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result {
16821682
use self::StatementKind::*;
16831683
match self.kind {
@@ -2047,7 +2047,7 @@ impl<'p, 'tcx> Iterator for ProjectionsIter<'p, 'tcx> {
20472047

20482048
impl<'p, 'tcx> FusedIterator for ProjectionsIter<'p, 'tcx> {}
20492049

2050-
impl<'tcx> Debug for Place<'tcx> {
2050+
impl Debug for Place<'_> {
20512051
fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result {
20522052
self.iterate(|_place_base, place_projections| {
20532053
// FIXME: remove this collect once we have migrated to slices

src/librustc_mir/dataflow/move_paths/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ impl MovePathLookup {
240240
// alternative will *not* create a MovePath on the fly for an
241241
// unknown place, but will rather return the nearest available
242242
// parent.
243-
pub fn find(&self, place_ref: PlaceRef<'cx, 'tcx>) -> LookupResult {
243+
pub fn find(&self, place_ref: PlaceRef<'_, '_>) -> LookupResult {
244244
place_ref.iterate(|place_base, place_projection| {
245245
let mut result = match place_base {
246246
PlaceBase::Local(local) => self.locals[*local],

0 commit comments

Comments
 (0)