-
The derive must be used in a seperate library AND then that library must be used by a binary.
Both Serialize AND Deserialize must be derived.
I setup a crate as described below and then run `cargo…
rukai updated
7 years ago
-
I was trying to compile the following code:
``` rust
#![feature(core)]
#![feature(unboxed_closures)]
enum Thunk { Unevaluated(F, A), Evaluated(F::Output), }
impl Thunk {
fn eval(self) -> (Self, …
ghost updated
7 years ago
-
Currently the metadata available in the git index is very small[[1]](https://github.com/rust-lang/crates.io/blob/bc4f1d79dcaac2b44e51fb7f67751d2bacca0453/src/git.rs#L15), containing just what cargo it…
-
```
{
"message": "/checkout/src/librustc_save_analysis/dump_visitor.rs:341: process_def_kind for unexpected item: Macro(DefId { krate: CrateNum(105), node: DefIndex(1) => dom_struct/5a34075aa16a3b9…
-
## STR
``` Rust
trait Foo : Sized {
fn foo(self, u: Option, v: Option) {}
}
struct A;
struct B;
impl Foo for () {} // impl A
fn toxic() {
// cache the resolution = impl A
let u =…
-
I [had to](https://llogiq.github.io/2015/10/09/lint-data.html) resort to implement `Visitor` for my lint so I could do something _after_ having walked the whole crate. This hurts performance for somet…
-
The `f.b` access goes to offset 2, while it should be offset 8 due to the alignment of T. The issue is that in `eval_lvalue_projection` the `base_ty` is `Foo`, so the layout computed by rustc says "he…
-
```
ERROR:constellation::constellation: Panic: ScriptThread: received an event message for a layout channel that is not associated with this script thread.This is a bug.
ERROR:constellation::constella…
-
I've been getting this error fairly persistently despite trying to work around it a few ways, so filing this here even though I don't yet have an isolated reproducible case.
``` /buildslave/rust-bu…
-
I was trying to compile redox-os when the compiler panicked
How to reproduce:
```
Run bootstrap setup
$ curl -sf https://raw.githubusercontent.com/redox-os/redox/master/bootstrap.sh -o bootstrap.s…