Skip to content

Rust 1.17 regression - yamlette 0.0.2 #40964

Closed
@alexcrichton

Description

@alexcrichton
[~/code/yamlette[master]] $ CARGO_TARGET_DIR=beta cargo +beta build                                                                                                                                                                                    [alex@acrichton-desktop]
   Compiling yamlette v0.0.2 (file:///home/alex/code/yamlette)
error[E0495]: cannot infer an appropriate lifetime for lifetime parameter 'c in function call due to conflicting requirements
   --> src/orchestra/conductor.rs:635:22
    |
635 |                 self.do_the_music (music, performer_buffers, volumes) ?;
    |                      ^^^^^^^^^^^^
    |
note: first, the lifetime cannot outlive the anonymous lifetime #5 defined on the body at 573:31...
   --> src/orchestra/conductor.rs:573:32
    |
573 |     ) -> Result<(), OrchError> {
    |                                ^
note: ...so that reference does not outlive borrowed content
   --> src/orchestra/conductor.rs:635:62
    |
635 |                 self.do_the_music (music, performer_buffers, volumes) ?;
    |                                                              ^^^^^^^
note: but, the lifetime must be valid for the anonymous lifetime #3 defined on the body at 573:31...
   --> src/orchestra/conductor.rs:573:32
    |
573 |     ) -> Result<(), OrchError> {
    |                                ^
note: ...so that types are compatible (expected &[model::renderer::Node], found &[model::renderer::Node])
   --> src/orchestra/conductor.rs:635:43
    |
635 |                 self.do_the_music (music, performer_buffers, volumes) ?;
    |                                           ^^^^^^^^^^^^^^^^^

error: aborting due to previous error

error: Could not compile `yamlette`.

To learn more, run the command again with --verbose.
[~/code/yamlette[master]] $ git log -1                                                                                                                                                                                                                 [alex@acrichton-desktop]
commit 9bca6d6569afd1b6603c8ecbc3a0c44d530f98d4
Author: dnsl48 <[email protected]>
Date:   Mon Feb 6 17:32:36 2017 +1300

    No debug for Sage anymore
[~/code/yamlette[master]] $ rustc +beta -vV                                                                                                                                                                                                            [alex@acrichton-desktop]
rustc 1.17.0-beta.2 (b7c276653 2017-03-20)
binary: rustc
commit-hash: b7c27665307704a9b158fe242e88e83914029415
commit-date: 2017-03-20
host: x86_64-unknown-linux-gnu
release: 1.17.0-beta.2
LLVM version: 3.9

https://github.com/dnsl48/yamlette

cc @dnsl48

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions