You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using rustc 0.9 on Ubuntu 13.10 (i686-unknown-linux-gnu), I received the error when compiling:
sieve.rs:10:7: 10:16 warning: variable does not need to be mutable, #[warn(unused_mut)] on by default
sieve.rs:10 let mut sieve = Bitv::new(n+1, true);
^~~~~~~~~
error: internal compiler error: sequence_element_type called on non-sequence value
This message reflects a bug in the Rust compiler.
We would appreciate a bug report: https://github.com/mozilla/rust/wiki/HOWTO-submit-a-Rust-bug-report
task 'rustc' failed at 'explicit failure', /home/joseph/rust-0.9/src/libsyntax/diagnostic.rs:75
task '<main>' failed at 'explicit failure', /home/joseph/rust-0.9/src/librustc/lib.rs:453
The offending source code is:
externmod extra;externmod std;use std::num;use extra::bitv::Bitv;fnmain(){// Generate sieve of Eratosthenes for n up to 1e6let n = 1000000u;letmut sieve = Bitv::new(n+1,true);let limit:uint = num::sqrt(n asf32)asuint;for i inrange(2, limit+1){if sieve[i]{letmut j = 0;while i*i + j*i <= n {
sieve[i*i+j*i] = false;
j += 1;}}}for i inrange(2, n+1){if sieve[i]{println!("{}", i);}}}
The text was updated successfully, but these errors were encountered:
Make SpanlessEq more consistent
1) Remove wildcard as requested in rust-lang/rust-clippy#10267.
2) Implement `hir_utils::eq_expr` for `ExprKind::Closure`, `ExprKind::ConstBlock`, `ExprKind::InlineAsm` and `ExprKind::Yield`.
3) Reorder branches of `hir_utils::eq_expr` to be in alphabetical order.
---
changelog: none
Using rustc 0.9 on Ubuntu 13.10 (i686-unknown-linux-gnu), I received the error when compiling:
The offending source code is:
The text was updated successfully, but these errors were encountered: