These are chat archives for rust-lang/rust

3rd
May 2018
Paul Reesman
@reesmanp
May 03 2018 04:16

I'm having issues compiling sdl2 on my mac. I have downloaded sdl2 via homebrew and in my Cargo.toml file I have:

sdl2 = { version = "0.31.0", features = ["bundled", "static-link", "use_mac_framework"] }

But when I cargo run it dies on compilation for sdl2-sys via a permission error and still continues when I run with sudo.

I'm not sure what is going on or how to get past it.
Paul Reesman
@reesmanp
May 03 2018 04:33
seems to die at build-script-build
Zakarum
@omni-viral
May 03 2018 11:14
When will we able to write where F: for<T> Fn(Foo<T>)?
Tom Cumming
@tomcumming
May 03 2018 11:16
higher order polymorphism ?
Zakarum
@omni-viral
May 03 2018 11:17
Higher ranked bounds or something
Yes
Hm... How this where F: For<T: Trait> Fn(Foo<T>) is called then?
Paul Reesman
@reesmanp
May 03 2018 17:54
Any idea of how to resolve my issue above?
Katharina
@spacekookie
May 03 2018 18:26

I have this layout:

my_mod/
  mod.rs
  stuff.rs

my_mod.rs contains a type Foo and stuff.rs contains a pubfunction which returns Foo. I don't use the module stuff publicly but it says:

private type hardware::Response in public interface

Which is quite confusing :confused:
Pascal Hertleif
@killercup
May 03 2018 18:34
@spacekookie maybe a useful cheat: cargo doc --open and see if Response turns up anywhere