Skip to content

Instantly share code, notes, and snippets.

@ennis
ennis / yoga-issue.rs
Created May 7, 2018 16:07
Yoga-rs segfault on drop
extern crate yoga;
fn main() {
let mut children = Vec::new();
let mut root = yoga::Node::new();
for i in 0..1000 {
let mut c = yoga::Node::new();
root.insert_child(&mut c, 0);
children.push(c);
extern crate nanovg as nvg;
use std::rc::Rc;
use std::cell::RefCell;
use std::collections::HashMap;
struct ImageCache<'ctx>
{
context: &'ctx nvg::Context,
// Remove RefCell and it compiles
Compiling nalgebra v0.14.3 (file:///disc/devel/nalgebra)
warning: duplicate definitions with name `new` (E0592)
--> src/core/construction.rs:489:13
|
489 | / pub fn new($($args: N),*) -> Self {
490 | | unsafe {
491 | | let mut res = Self::new_uninitialized();
492 | | $( *res.get_unchecked_mut($irow, $icol) = $args; )*
... |
495 | | }
@ennis
ennis / log
Created December 21, 2018 09:21
cargo build --package foo
Updating crates.io index
Compiling num-traits v0.2.6
Compiling winapi v0.3.6
Compiling libc v0.2.45
Compiling cfg-if v0.1.6
Compiling lazy_static v1.2.0
Compiling log v0.4.6
Compiling bar v0.1.0 (C:\Users\Alexandre\Developpement\linkerr\bar)