Originally reported as gfx-rs/wgpu#7915
Connected to #374
cc @bushrat011899
Hello! The writer argument to term::emit can cause compilation to fail when additional features are added. https://github.com/brendanzab/codespan/blob/master/codespan-reporting/src/term.rs#L28-L30 when there are no features enabled, you can pass in a String and it will compile. But enable the termcolor feature, a string will no longer be allowed. Similarly you can put a fmt::Write type which does not impl io::Write into the slot, which will cause a compilation failure when the std feature is added by another crate.
Originally reported as gfx-rs/wgpu#7915
Connected to #374
cc @bushrat011899
Hello! The
writerargument toterm::emitcan cause compilation to fail when additional features are added. https://github.com/brendanzab/codespan/blob/master/codespan-reporting/src/term.rs#L28-L30 when there are no features enabled, you can pass in aStringand it will compile. But enable thetermcolorfeature, a string will no longer be allowed. Similarly you can put afmt::Writetype which does not implio::Writeinto the slot, which will cause a compilation failure when thestdfeature is added by another crate.