Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize
let x: T = ..
to avoid a temporary
For some weird reason this fixes `intrinsic-move-val`. It also affects various test heuristics. I removed one test (`reborrow_basic`) that didn't seem to really be testing anything in particular anymore, compared to all the other tests we've got.
- Loading branch information
1 parent
16f4e8a
commit 2f6628e
Showing
12 changed files
with
105 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
src/test/ui/associated-types/associated-types-project-from-hrtb-in-fn-body.nll.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
error: unsatisfied lifetime constraints | ||
--> $DIR/associated-types-project-from-hrtb-in-fn-body.rs:32:19 | ||
--> $DIR/associated-types-project-from-hrtb-in-fn-body.rs:32:29 | ||
| | ||
LL | fn bar<'a, 'b, I : for<'x> Foo<&'x isize>>( | ||
| -- -- lifetime `'b` defined here | ||
| | | ||
| lifetime `'a` defined here | ||
... | ||
LL | let z: I::A = if cond { x } else { y }; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'b` | ||
| ^ assignment requires that `'a` must outlive `'b` | ||
|
||
error: unsatisfied lifetime constraints | ||
--> $DIR/associated-types-project-from-hrtb-in-fn-body.rs:32:19 | ||
--> $DIR/associated-types-project-from-hrtb-in-fn-body.rs:32:40 | ||
| | ||
LL | fn bar<'a, 'b, I : for<'x> Foo<&'x isize>>( | ||
| -- -- lifetime `'b` defined here | ||
| | | ||
| lifetime `'a` defined here | ||
... | ||
LL | let z: I::A = if cond { x } else { y }; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'a` | ||
| ^ assignment requires that `'b` must outlive `'a` | ||
|
||
error: aborting due to 2 previous errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
error: higher-ranked subtype error | ||
--> $DIR/universe-violation.rs:14:9 | ||
| | ||
LL | let a: fn(_) -> _ = make_it(); | ||
| ^ | ||
|
||
error: higher-ranked subtype error | ||
--> $DIR/universe-violation.rs:15:9 | ||
--> $DIR/universe-violation.rs:15:31 | ||
| | ||
LL | let b: fn(&u32) -> &u32 = a; | ||
| ^ | ||
| ^ | ||
|
||
error: aborting due to 2 previous errors | ||
error: aborting due to previous error | ||
|
7 changes: 3 additions & 4 deletions
7
src/test/ui/regions/region-object-lifetime-in-coercion.nll.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters