]> git.lizzy.rs Git - rust.git/commit
Address following error from rustdoc tests:
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 18 Sep 2018 10:18:31 +0000 (12:18 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Wed, 19 Sep 2018 08:31:42 +0000 (10:31 +0200)
commitc9cf4993307b9623580b1fe7f12aa87df1225fb8
treea0a939681f1274f845c0270bab0ce0aa392ce636
parente3b611f61954c565b550a6f6ae42715f56db0d85
Address following error from rustdoc tests:

error[E0106]: missing lifetime specifier
 --> /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md:11424:23
  |
9 | fn demo(s: &mut S) -> &mut String { let p = &mut *(*s).data; p }
  |                       ^ expected lifetime parameter
  |
  = help: this function's return type contains a borrowed value, but the signature does not say which one of `s`'s 2 lifetimes it is borrowed from
src/librustc_mir/diagnostics.rs