Skip to content

Use of unstable library feature 'ord_max_min' #121

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
yhuag opened this issue Jan 9, 2018 · 2 comments
Closed

Use of unstable library feature 'ord_max_min' #121

yhuag opened this issue Jan 9, 2018 · 2 comments
Assignees
Labels

Comments

@yhuag
Copy link

yhuag commented Jan 9, 2018

I cloned fresh and ran the command cargo build --release, but the console printed the following error messages:

error: use of unstable library feature 'ord_max_min' (see issue #25663)
   --> engine/src/input.rs:259:61
    |
259 |         MouseButton::Other(index) => ((index + 4) as usize).min(NUM_MOUSE_BUTTONS - 1),
    |                                                             ^^^

error: use of unstable library feature 'ord_max_min' (see issue #25663)
   --> wad/src/level.rs:183:56
    |
183 |                     lowest_floor: heights.lowest_floor.min(floor),
    |                                                        ^^^

error: use of unstable library feature 'ord_max_min' (see issue #25663)
   --> wad/src/level.rs:184:58
    |
184 |                     highest_floor: heights.highest_floor.max(floor),
    |                                                          ^^^

error: use of unstable library feature 'ord_max_min' (see issue #25663)
   --> wad/src/level.rs:185:60
    |
185 |                     lowest_ceiling: heights.lowest_ceiling.min(ceiling),
    |                                                            ^^^

error: use of unstable library feature 'ord_max_min' (see issue #25663)
   --> wad/src/level.rs:186:62
    |
186 |                     highest_ceiling: heights.highest_ceiling.max(ceiling),
    |                                                              ^^^

error: use of unstable library feature 'ord_max_min' (see issue #25663)
   --> wad/src/level.rs:191:41
    |
191 |                         Some(next_floor.min(floor))
    |                                         ^^^

error: use of unstable library feature 'ord_max_min' (see issue #25663)
   --> engine/src/text.rs:131:25
    |
131 |                 (left.0.max(right.0), left.1.max(right.1))
    |                         ^^^

error: use of unstable library feature 'ord_max_min' (see issue #25663)
   --> engine/src/text.rs:131:46
    |
131 |                 (left.0.max(right.0), left.1.max(right.1))
    |                                              ^^^

error: aborting due to 3 previous errors

error: Could not compile `engine`.
warning: build failed, waiting for other jobs to finish...
error: use of unstable library feature 'ord_max_min' (see issue #25663)
   --> wad/src/visitor.rs:252:42
    |
252 |                 Some((min, max)) => (min.min(coord), max.max(coord)),
    |                                          ^^^

error: use of unstable library feature 'ord_max_min' (see issue #25663)
   --> wad/src/visitor.rs:252:58
    |
252 |                 Some((min, max)) => (min.min(coord), max.max(coord)),
    |                                                          ^^^

error: use of unstable library feature 'ord_max_min' (see issue #25663)
   --> wad/src/visitor.rs:256:32
    |
256 |         .map(|(min, max)| (min.min(current), max.max(current)));
    |                                ^^^

error: use of unstable library feature 'ord_max_min' (see issue #25663)
   --> wad/src/visitor.rs:256:50
    |
256 |         .map(|(min, max)| (min.min(current), max.max(current)));
    |                                                  ^^^

error: aborting due to 9 previous errors

error: Could not compile `wad`.

To learn more, run the command again with --verbose.

My Rust version is rustc 1.20.0 (f3d6973f4 2017-08-27)

@cristicbz
Copy link
Owner

cristicbz commented Jan 11, 2018

Thanks for reporthing this, this is breakage caused by rust-lang/rust#42496 :(. I'll prepare a fix.

This isn't it actually, see my comment below.

@cristicbz
Copy link
Owner

Actually no, never mind, sorry, I just realised this has been stable for a while. You should update your version of Rust if possible (using rustup update stable is using rustup). Let me know if that works out for you.

@cristicbz cristicbz self-assigned this Jan 11, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants