Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
39260d9
make abs, wrapping_abs, and overflowing_abs const functions
tspiteri Aug 21, 2019
adee559
test const abs, wrapping_abs, and overflowing_abs
tspiteri Aug 21, 2019
925a766
Add Yaah to clippy toolstain notification list
yaahc Aug 29, 2019
625a9d6
lldb: avoid mixing "Hit breakpoint" message with other output.
eddyb Sep 9, 2019
6eb7b69
Clarify E0507 to note Fn/FnMut relationship to borrowing
Mark-Simulacrum Sep 10, 2019
2f6e73c
test/c-variadic: Fix patterns on powerpc64
smaeul Sep 3, 2019
79263af
Changed instant is earlier to instant is later
hman523 Sep 10, 2019
63fad69
lowering: extend temporary lifetimes around await
davidtwco Sep 8, 2019
1e7faef
rustc_mir: buffer -Zdump-mir output instead of pestering the kernel c…
eddyb Sep 10, 2019
13726cc
Rollup merge of #63786 - tspiteri:const-abs, r=alexcrichton
Centril Sep 10, 2019
9eecb4a
Rollup merge of #63989 - yaahc:master, r=Manishearth
Centril Sep 10, 2019
347b5c8
Rollup merge of #64256 - smaeul:patch/powerpc64-tests, r=alexcrichton
Centril Sep 10, 2019
a1755df
Rollup merge of #64292 - davidtwco:issue-63832-await-temporary-lifeti…
Centril Sep 10, 2019
ce3e824
Rollup merge of #64311 - eddyb:lldb-python3, r=michaelwoerister
Centril Sep 10, 2019
35c24b4
Rollup merge of #64330 - Mark-Simulacrum:clarify-E0507, r=GuillaumeGomez
Centril Sep 10, 2019
26a4af9
Rollup merge of #64331 - hman523:fix-64322, r=varkor
Centril Sep 10, 2019
8d2ef19
Rollup merge of #64344 - eddyb:mir-opt-stop-shouting-at-the-kernel, r…
Centril Sep 10, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clarify E0507 to note Fn/FnMut relationship to borrowing
  • Loading branch information
Mark-Simulacrum committed Sep 10, 2019
commit 6eb7b698344cfdee6c25d2c6406db33a2ce87aa2
9 changes: 8 additions & 1 deletion src/librustc_mir/error_codes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,14 @@ fn print_fancy_ref(fancy_ref: &FancyNum){
"##,

E0507: r##"
You tried to move out of a value which was borrowed. Erroneous code example:
You tried to move out of a value which was borrowed.

This can also happen when using a type implementing `Fn` or `FnMut`, as neither
allows moving out of them (they usually represent closures which can be called
more than once). Much of the text following applies equally well to non-`FnOnce`
closure bodies.

Erroneous code example:

```compile_fail,E0507
use std::cell::RefCell;
Expand Down