diff options
| author | bors <bors@rust-lang.org> | 2020-03-13 19:16:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-03-13 19:16:03 +0000 |
| commit | 1572c433eed495d0ade41511ae106b180e02851d (patch) | |
| tree | 7f39caac777b04c27f8a6a63dbad558fa6b14e29 /src/liballoc | |
| parent | d6072319a9fbeffea2ebe803ddaedbcf566ab5dd (diff) | |
| parent | 1d8f5f0ff5882c2a8cd739eb901cea0ea3c437d4 (diff) | |
| download | rust-1572c433eed495d0ade41511ae106b180e02851d.tar.gz rust-1572c433eed495d0ade41511ae106b180e02851d.zip | |
Auto merge of #69986 - JohnTitor:rollup-h0809mf, r=JohnTitor
Rollup of 12 pull requests Successful merges: - #69403 (Implement `Copy` for `IoSlice`) - #69460 (Move some `build-pass` tests to `check-pass`) - #69723 (Added doc on keyword Pub.) - #69802 (fix more clippy findings) - #69809 (remove lifetimes that can be elided (clippy::needless_lifetimes)) - #69947 (Clean up E0423 explanation) - #69949 (triagebot.toml: add ping aliases) - #69954 (rename panic_if_ intrinsics to assert_) - #69960 (miri engine: fix treatment of abort intrinsic) - #69966 (Add more regression tests) - #69973 (Update stable-since version for const_int_conversion) - #69974 (Clean up E0434 explanation) Failed merges: r? @ghost
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/collections/linked_list.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/collections/linked_list.rs b/src/liballoc/collections/linked_list.rs index 73ae267ddab..53d4f7239b7 100644 --- a/src/liballoc/collections/linked_list.rs +++ b/src/liballoc/collections/linked_list.rs @@ -1427,7 +1427,7 @@ impl<'a, T> CursorMut<'a, T> { /// `CursorMut`, which means it cannot outlive the `CursorMut` and that the /// `CursorMut` is frozen for the lifetime of the `Cursor`. #[unstable(feature = "linked_list_cursors", issue = "58533")] - pub fn as_cursor<'cm>(&'cm self) -> Cursor<'cm, T> { + pub fn as_cursor(&self) -> Cursor<'_, T> { Cursor { list: self.list, current: self.current, index: self.index } } } |
