-
Got an internal compiler error for a small simple program.
I tried this code:
fn minutes_to_hours(minutes:isize) -> (f32) {
let mut hours = minutes/60;
let mut decimal_hours = 0.0;
hours…
-
This kind of code:
``` rust
use std::marker::PhantomData;
pub trait Routing {
type Output;
fn resolve(&self, input: I);
}
pub trait ToRouting {
type Input;
type Routing = Routing;
…
-
Tried to find a simple example from my horrible scratch code, the code shouldn't compile due to the division of int and float but the compiler panics instead of erroring out.
I tried this code:
```
…
dmner updated
9 years ago
-
The simplified code below results in an ICE using the following rust version
rustc 1.0.0-beta (9854143cb 2015-04-02) (built 2015-04-02)
binary: rustc
commit-hash: 9854143cba679834bc4ef932858cd5303f01…
-
- I tried this code:
``` rust
trait Stringify {
fn to_string(&self) -> String;
}
impl Stringify for u32 {
fn to_string(&self) -> String { format!("u32: {}", *self) }
}
impl Stringify for f3…
-
### STR
``` rust
#![crate_type = "lib"]
#![feature(lang_items)]
#![no_std]
#[lang = "sized"]
trait Sized {}
trait Iterator {
type Item;
}
```
### Backtrace
``` rust
$ RUST_BACKTRACE=1 RUST_LOG…
-
Csound already has --sample-rate and --control-rate. It would be good if ksmps could also be set via the command-line, so that control rate can be inferred from the sample-rate.
```
$ csound -odac --…
-
```
$ cat triv.rs
fn main() {}
$ RUST_LOG=rustc::middle::ty rustc triv.rs
DEBUG:rustc::middle::ty: Interned type: bool Pointer: 0x7fc79208e310
DEBUG:rustc::middle::ty: Interned type: char Pointer: 0x…
-
build command:
```
RUST_BACKTRACE=1 RUST_LOG=debug CFG_LLVM_LINKAGE_FILE=/usr/home/aidan/rust/aidancully/rust/x86_64-unknown-freebsd/rt/llvmdeps.rs LD_LIBRARY_PATH=/usr/home/aidan/rust/aidancully/rus…
-
The code below triggers an internal compiler error:
```
thread 'rustc' panicked at 'assertion failed: did.krate != ast::LOCAL_CRATE', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/b…