Bug 1535396 - rust-owning_ref: FTBFS in Fedora rawhide
Summary: rust-owning_ref: FTBFS in Fedora rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rust-owning_ref
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Igor Gnatenko
QA Contact: Fedora Extras Quality Assurance
URL: http://apps.fedoraproject.org/koschei...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-17 10:04 UTC by Igor Gnatenko
Modified: 2018-03-12 08:38 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-03-12 08:38:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github Kimundi owning-ref-rs pull 43 0 None None None 2018-01-17 10:10:53 UTC
Github rust-lang rust issues 47524 0 None None None 2018-01-17 19:00:35 UTC

Description Igor Gnatenko 2018-01-17 10:04:18 UTC
Description of problem:
Package rust-owning_ref fails to build from source in Fedora rawhide.

Version-Release number of selected component (if applicable):
0.3.3-2.fc28

Steps to Reproduce:
koji build --scratch f28 rust-owning_ref-0.3.3-2.fc28.src.rpm

Additional info:
This package is tracked by Koschei. See:
http://apps.fedoraproject.org/koschei/package/rust-owning_ref

---

     Running `/usr/bin/rustc --crate-name owning_ref src/lib.rs --emit=dep-info,link -C opt-level=3 --test -C metadata=0bb96e66022b507c -C extra-filename=-0bb96e66022b507c --out-dir /builddir/build/BUILD/owning_ref-0.3.3/target/release/deps -L dependency=/builddir/build/BUILD/owning_ref-0.3.3/target/release/deps --extern stable_deref_trait=/builddir/build/BUILD/owning_ref-0.3.3/target/release/deps/libstable_deref_trait-9d2100c35620454f.rlib -Copt-level=3 -Cdebuginfo=2 -Clink-arg=-Wl,-z,relro,-z,now`
error[E0597]: `a[..]` does not live long enough
    --> src/lib.rs:1266:68
     |
1266 |             let o: BoxRef<&[i32; 2], i32> = o.map(|a: &&[i32; 2]| &a[0]);
     |                                                                    ^^^^- borrowed value only lives until here
     |                                                                    |
     |                                                                    does not live long enough
     |
note: borrowed value must be valid for the anonymous lifetime #2 defined on the body at 1266:51...
    --> src/lib.rs:1266:51
     |
1266 |             let o: BoxRef<&[i32; 2], i32> = o.map(|a: &&[i32; 2]| &a[0]);
     |                                                   ^^^^^^^^^^^^^^^^^^^^^
error[E0597]: `a[..]` does not live long enough
    --> src/lib.rs:1697:91
     |
1697 |             let o: BoxRefMut<&mut [i32; 2], i32> = o.map_mut(|a: &mut &mut [i32; 2]| &mut a[0]);
     |                                                                                           ^^^^ does not live long enough
...
1701 |         }
     |         - borrowed value only lives until here
     |
note: borrowed value must be valid for the anonymous lifetime #2 defined on the body at 1697:62...
    --> src/lib.rs:1697:62
     |
1697 |             let o: BoxRefMut<&mut [i32; 2], i32> = o.map_mut(|a: &mut &mut [i32; 2]| &mut a[0]);
     |                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
error: Could not compile `owning_ref`.

Comment 1 Fedora End Of Life 2018-02-20 15:23:17 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.


Note You need to log in before you can comment on or make changes to this bug.