Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

unreachable!() statement is reachable #285

Closed
matthiasbeyer opened this issue May 17, 2021 · 1 comment
Closed

unreachable!() statement is reachable #285

matthiasbeyer opened this issue May 17, 2021 · 1 comment

Comments

@matthiasbeyer
Copy link
Contributor

This line:

https://github.com/mitsuhiko/indicatif/blob/6a49439748cae10785cc0ec16d8e79af5e4dd47f/src/state.rs#L456

is reachable. I just hit it with the following backtrace:

thread 'main' panicked at 'internal error: entered unreachable code', /home/m/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.16.0/src/state.rs:456:47
stack backtrace:                                                        
   0: rust_begin_unwind                     
             at /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0/library/std/src/panicking.rs:493:5    
   1: core::panicking::panic_fmt                                                                                                                              
             at /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0/library/core/src/panicking.rs:92:14
   2: core::panicking::panic
             at /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0/library/core/src/panicking.rs:50:5
   3: indicatif::state::ProgressDrawTarget::width
             at /home/m/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.16.0/src/state.rs:456:47
   4: indicatif::state::MultiProgressState::width
             at /home/m/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.16.0/src/state.rs:275:9
   5: indicatif::state::ProgressDrawTarget::width
             at /home/m/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.16.0/src/state.rs:455:65
   6: indicatif::state::ProgressState::width
             at /home/m/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.16.0/src/state.rs:84:9
   7: indicatif::style::ProgressStyle::format_state
             at /home/m/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.16.0/src/style.rs:299:35
   8: indicatif::state::ProgressState::draw
             at /home/m/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.16.0/src/state.rs:236:17
   9: indicatif::state::ProgressState::update_and_draw
             at /home/m/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.16.0/src/state.rs:124:13
  10: indicatif::progress_bar::ProgressBar::update_and_draw
             at /home/m/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.16.0/src/progress_bar.rs:481:9
  11: indicatif::progress_bar::ProgressBar::set_length
             at /home/m/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.16.0/src/progress_bar.rs:286:9
@djc
Copy link
Collaborator

djc commented Feb 22, 2022

This was fixed in #286.

@djc djc closed this as completed Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants