Date: Tue, 13 Aug 2019 17:43:08 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r508839 - head/graphics/svgbob/files Message-ID: <201908131743.x7DHh8fR094188@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Tue Aug 13 17:43:08 2019 New Revision: 508839 URL: https://svnweb.freebsd.org/changeset/ports/508839 Log: graphics/svgbob: Unbreak with Rust 1.37.0 error: trait objects without an explicit `dyn` are deprecated --> src/main.rs:163:47 | 163 | fn build(args: &ArgMatches) -> Result<(), Box<Error>> { | ^^^^^ help: use `dyn`: `dyn Error` | note: lint level defined here --> src/main.rs:1:9 | 1 | #![deny(warnings)] | ^^^^^^^^ = note: #[deny(bare_trait_objects)] implied by #[deny(warnings)] error: trait objects without an explicit `dyn` are deprecated --> src/main.rs:224:68 | 224 | fn convert_file(input: PathBuf, output: PathBuf) -> Result<(), Box<Error>> { | ^^^^^ help: use `dyn`: `dyn Error` error: aborting due to 2 previous errors Remove #![deny(warnings)] (basically the equivalent to -Werror in C/C++) to fix the build with Rust 1.37.0 or greater. Modified: head/graphics/svgbob/files/patch-src_main.rs Modified: head/graphics/svgbob/files/patch-src_main.rs ============================================================================== --- head/graphics/svgbob/files/patch-src_main.rs Tue Aug 13 17:23:16 2019 (r508838) +++ head/graphics/svgbob/files/patch-src_main.rs Tue Aug 13 17:43:08 2019 (r508839) @@ -10,7 +10,12 @@ error: the item `exit` is imported redundantly --- src/main.rs.orig 2019-04-12 08:16:01 UTC +++ src/main.rs -@@ -83,7 +83,6 @@ fn main() { +@@ -1,4 +1,3 @@ +-#![deny(warnings)] + #[macro_use] + extern crate clap; + +@@ -83,7 +82,6 @@ fn main() { } Err(e) => { use std::io::Write; @@ -18,7 +23,7 @@ error: the item `exit` is imported redundantly writeln!( &mut std::io::stderr(), -@@ -124,7 +123,6 @@ fn main() { +@@ -124,7 +122,6 @@ fn main() { if let Some(file) = args.value_of("output") { if let Err(e) = svg::save(file, &svg) { use std::io::Write; @@ -26,7 +31,7 @@ error: the item `exit` is imported redundantly writeln!( &mut std::io::stderr(), -@@ -148,7 +146,6 @@ where +@@ -148,7 +145,6 @@ where Ok(a) => Some(a), Err(e) => { use std::io::Write;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908131743.x7DHh8fR094188>