Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1972799 Details for
Bug 2217860
make check for librsvg2 no longer works
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh89 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
make check log
file_2217860.txt (text/plain), 52.02 KB, created by
Tomas Pelka
on 2023-06-27 10:00:08 UTC
(
hide
)
Description:
make check log
Filename:
MIME Type:
Creator:
Tomas Pelka
Created:
2023-06-27 10:00:08 UTC
Size:
52.02 KB
patch
obsolete
>$ make check >( cd . && glib-mkenums \ > --fhead "#if !defined (__RSVG_RSVG_H_INSIDE__) && !defined (RSVG_COMPILATION)\n#warning \"Including <librsvg/librsvg-enum-types.h> directly is deprecated.\"\n#endif\n\n#ifndef __LIBRSVG_ENUM_TYPES_H__\n#define __LIBRSVG_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \ > --fprod "/* enumerations from \"@filename@\" */\n" \ > --vhead "GType @enum_name@_get_type (void);\n#define RSVG_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ > --ftail "G_END_DECLS\n\n#endif /* __LIBRSVG_ENUM_TYPES_H__ */" \ > librsvg/rsvg.h librsvg/rsvg-cairo.h ) > librsvg/tmp-librsvg-enum-types.h \ >&& (cmp -s librsvg/tmp-librsvg-enum-types.h librsvg/librsvg-enum-types.h || cp librsvg/tmp-librsvg-enum-types.h librsvg/librsvg-enum-types.h ) \ >&& rm -f librsvg/tmp-librsvg-enum-types.h \ >&& echo timestamp > s-enum-types-h >( cd . && glib-mkenums \ > --fhead "#include \"librsvg/rsvg.h\"" \ > --fprod "\n/* enumerations from \"@filename@\" */" \ > --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \ > --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ > --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \ > librsvg/rsvg.h librsvg/rsvg-cairo.h ) > librsvg/tmp-librsvg-enum-types.c \ >&& (cmp -s librsvg/tmp-librsvg-enum-types.c librsvg/librsvg-enum-types.c || cp librsvg/tmp-librsvg-enum-types.c librsvg/librsvg-enum-types.c ) \ >&& rm -f librsvg/tmp-librsvg-enum-types.c \ >&& echo timestamp > s-enum-types-c >make check-recursive >make[1]: Entering directory '/home/test/rpmbuild/BUILD/librsvg-2.42.7' >Making check in . >make[2]: Entering directory '/home/test/rpmbuild/BUILD/librsvg-2.42.7' >( cd . && glib-mkenums \ > --fhead "#include \"librsvg/rsvg.h\"" \ > --fprod "\n/* enumerations from \"@filename@\" */" \ > --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \ > --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ > --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \ > librsvg/rsvg.h librsvg/rsvg-cairo.h ) > librsvg/tmp-librsvg-enum-types.c \ >&& (cmp -s librsvg/tmp-librsvg-enum-types.c librsvg/librsvg-enum-types.c || cp librsvg/tmp-librsvg-enum-types.c librsvg/librsvg-enum-types.c ) \ >&& rm -f librsvg/tmp-librsvg-enum-types.c \ >&& echo timestamp > s-enum-types-c >( cd . && glib-mkenums \ > --fhead "#if !defined (__RSVG_RSVG_H_INSIDE__) && !defined (RSVG_COMPILATION)\n#warning \"Including <librsvg/librsvg-enum-types.h> directly is deprecated.\"\n#endif\n\n#ifndef __LIBRSVG_ENUM_TYPES_H__\n#define __LIBRSVG_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \ > --fprod "/* enumerations from \"@filename@\" */\n" \ > --vhead "GType @enum_name@_get_type (void);\n#define RSVG_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ > --ftail "G_END_DECLS\n\n#endif /* __LIBRSVG_ENUM_TYPES_H__ */" \ > librsvg/rsvg.h librsvg/rsvg-cairo.h ) > librsvg/tmp-librsvg-enum-types.h \ >&& (cmp -s librsvg/tmp-librsvg-enum-types.h librsvg/librsvg-enum-types.h || cp librsvg/tmp-librsvg-enum-types.h librsvg/librsvg-enum-types.h ) \ >&& rm -f librsvg/tmp-librsvg-enum-types.h \ >&& echo timestamp > s-enum-types-h >make check-local >make[3]: Entering directory '/home/test/rpmbuild/BUILD/librsvg-2.42.7' >cd . && \ >CARGO_TARGET_DIR=/home/test/rpmbuild/BUILD/librsvg-2.42.7/target cargo test --verbose --release > Fresh pkg-config v0.3.9 > Fresh bitflags v1.0.1 > Fresh libc v0.2.39 > Fresh rand v0.4.2 > Fresh glib-sys v0.5.0 > Fresh gobject-sys v0.5.0 > Fresh rand v0.3.22 > Fresh lazy_static v1.0.0 > Fresh phf_generator v0.7.21 > Fresh unicode-xid v0.1.0 > Fresh unicode-xid v0.0.4 > Fresh synom v0.11.3 > Fresh proc-macro2 v0.2.3 > Fresh phf_codegen v0.7.21 > Fresh quote v0.3.15 > Fresh syn v0.11.11 > Fresh quote v0.4.2 > Fresh glib v0.4.1 > Fresh pango-sys v0.5.0 > Fresh cairo-sys-rs v0.5.0 > Fresh void v1.0.2 > Fresh siphasher v0.2.2 > Fresh phf_shared v0.7.21 > Fresh unreachable v1.0.0 > Fresh syn v0.12.14 > Fresh memchr v2.0.1 > Fresh c_vec v1.2.1 > Fresh ucd-util v0.1.1 > Fresh dtoa v0.4.2 > Fresh cssparser-macros v0.3.2 > Fresh dtoa-short v0.3.2 > Fresh regex-syntax v0.5.0 > Fresh cairo-rs v0.3.0 > Fresh aho-corasick v0.6.4 > Fresh thread_local v0.3.5 > Fresh phf v0.7.21 > Fresh pangocairo-sys v0.6.0 > Fresh pango v0.3.0 > Fresh matches v0.1.6 > Fresh smallvec v0.6.0 > Fresh either v1.4.0 > Fresh itoa v0.3.4 > Fresh num-traits v0.2.1 > Fresh bitflags v0.9.1 > Fresh procedural-masquerade v0.1.7 > Fresh utf8-ranges v1.0.0 > Fresh regex v0.2.7 > Fresh cssparser v0.23.2 > Fresh pangocairo v0.4.1 > Fresh float-cmp v0.4.0 > Fresh itertools v0.7.7 > Fresh downcast-rs v1.0.1 > Fresh rsvg_internals v0.0.1 (/home/test/rpmbuild/BUILD/librsvg-2.42.7/rsvg_internals) >warning: unused `#[macro_use]` import > --> rsvg_internals/src/lib.rs:21:1 > | >21 | #[macro_use] > | ^^^^^^^^^^^^ > | > = note: `#[warn(unused_imports)]` on by default > >warning: unnecessary parentheses around block return value > --> rsvg_internals/src/marker.rs:662:5 > | >662 | (!get_marker_name_from_drawing_ctx(draw_ctx, MarkerType::Start).is_null() > | ^ >663 | || !get_marker_name_from_drawing_ctx(draw_ctx, MarkerType::Middle).is_null() >664 | || !get_marker_name_from_drawing_ctx(draw_ctx, MarkerType::End).is_null()) > | ^ > | > = note: `#[warn(unused_parens)]` on by default >help: remove these parentheses > | >662 ~ !get_marker_name_from_drawing_ctx(draw_ctx, MarkerType::Start).is_null() >663 | || !get_marker_name_from_drawing_ctx(draw_ctx, MarkerType::Middle).is_null() >664 ~ || !get_marker_name_from_drawing_ctx(draw_ctx, MarkerType::End).is_null() > | > >warning: unnecessary trailing semicolon > --> rsvg_internals/src/marker.rs:702:6 > | >702 | }; > | ^ help: remove this semicolon > | > = note: `#[warn(redundant_semicolons)]` on by default > >warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead > --> rsvg_internals/src/attributes.rs:56:46 > | >56 | let mut a: Attribute = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^ > | > = note: `#[warn(deprecated)]` on by default > >warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead > --> rsvg_internals/src/attributes.rs:67:46 > | >67 | let mut a: Attribute = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^ > >warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead > --> rsvg_internals/src/cond.rs:11:17 > | >11 | use std::ascii::AsciiExt; > | ^^^^^^^^ > >warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred > --> rsvg_internals/src/length.rs:384:5 > | >384 | / lazy_static!{ >385 | | // The unwrap here is fine AS LONG the regex query is valid. >386 | | static ref COMMAS: Regex = Regex::new(r",\s*,").unwrap(); >387 | | }; > | |_____^ > | > = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) > >warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred > --> rsvg_internals/src/link.rs:66:5 > | >66 | / lazy_static! { >67 | | static ref REGEX: Regex = Regex::new(r"['\\]").unwrap(); >68 | | } > | |_____^ > | > = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) > >warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead > --> rsvg_internals/src/node.rs:738:35 > | >738 | let mut c = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^ > >warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead > --> rsvg_internals/src/property_bag.rs:275:37 > | >275 | let mut key = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^ > >warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead > --> rsvg_internals/src/property_bag.rs:276:37 > | >276 | let mut att = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^ > >warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead > --> rsvg_internals/src/property_bag.rs:277:37 > | >277 | let mut val = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^ > >warning: trait objects without an explicit `dyn` are deprecated > --> rsvg_internals/src/node.rs:68:20 > | >68 | node_impl: Box<NodeTrait>, > | ^^^^^^^^^ > | > = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! > = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> > = note: `#[warn(bare_trait_objects)]` on by default >help: use `dyn` > | >68 | node_impl: Box<dyn NodeTrait>, > | +++ > >warning: trait objects without an explicit `dyn` are deprecated > --> rsvg_internals/src/gradient.rs:330:56 > | >330 | fn add_color_stops_to_pattern(&self, pattern: &mut cairo::Gradient, opacity: u8) { > | ^^^^^^^^^^^^^^^ > | > = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! > = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> >help: use `dyn` > | >330 | fn add_color_stops_to_pattern(&self, pattern: &mut dyn cairo::Gradient, opacity: u8) { > | +++ > >warning: trait objects without an explicit `dyn` are deprecated > --> rsvg_internals/src/node.rs:273:20 > | >273 | node_impl: Box<NodeTrait>, > | ^^^^^^^^^ > | > = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! > = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> >help: use `dyn` > | >273 | node_impl: Box<dyn NodeTrait>, > | +++ > >warning: trait objects without an explicit `dyn` are deprecated > --> rsvg_internals/src/node.rs:141:24 > | >141 | node_impl: Box<NodeTrait>, > | ^^^^^^^^^ > | > = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! > = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> >help: use `dyn` > | >141 | node_impl: Box<dyn NodeTrait>, > | +++ > >warning: trait objects without an explicit `dyn` are deprecated > --> rsvg_internals/src/viewport.rs:85:15 > | >85 | ctx: &mut ViewportCtx, > | ^^^^^^^^^^^ > | > = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! > = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> >help: use `dyn` > | >85 | ctx: &mut dyn ViewportCtx, > | +++ > >warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() > --> rsvg_internals/src/path_parser.rs:921:18 > | >921 | self.description() > | ^^^^^^^^^^^ > >warning: variants `Normal`, `Embed`, and `Override` are never constructed > --> rsvg_internals/src/state.rs:20:5 > | >19 | pub enum UnicodeBidi { > | ----------- variants in this enum >20 | Normal, > | ^^^^^^ >21 | Embed, > | ^^^^^ >22 | Override, > | ^^^^^^^^ > | > = note: `#[warn(dead_code)]` on by default > >warning: the type `attributes::Attribute` does not permit being left uninitialized > --> rsvg_internals/src/attributes.rs:56:41 > | >56 | let mut a: Attribute = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^^^^^^^^ > | | > | this code causes undefined behavior when executed > | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done > | >note: enums with multiple inhabited variants have to be initialized to a variant > --> /home/test/rpmbuild/BUILD/librsvg-2.42.7/target/release/build/rsvg_internals-df8cd595cd057e26/out/attributes-codegen.rs:3:1 > | >3 | pub enum Attribute { > | ^^^^^^^^^^^^^^^^^^ > = note: `#[warn(invalid_value)]` on by default > >warning: the type `attributes::Attribute` does not permit being left uninitialized > --> rsvg_internals/src/attributes.rs:67:41 > | >67 | let mut a: Attribute = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^^^^^^^^ > | | > | this code causes undefined behavior when executed > | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done > | >note: enums with multiple inhabited variants have to be initialized to a variant > --> /home/test/rpmbuild/BUILD/librsvg-2.42.7/target/release/build/rsvg_internals-df8cd595cd057e26/out/attributes-codegen.rs:3:1 > | >3 | pub enum Attribute { > | ^^^^^^^^^^^^^^^^^^ > >warning: `extern` block uses type `std::rc::Rc<node::Node>`, which is not FFI-safe > --> rsvg_internals/src/drawing_ctx.rs:37:15 > | >37 | node: *const RsvgNode, > | ^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > = note: `#[warn(improper_ctypes)]` on by default > >warning: `extern` block uses type `std::rc::Rc<node::Node>`, which is not FFI-safe > --> rsvg_internals/src/drawing_ctx.rs:38:10 > | >38 | ) -> *mut RsvgNode; > | ^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > >warning: `extern` block uses type `std::rc::Rc<node::Node>`, which is not FFI-safe > --> rsvg_internals/src/drawing_ctx.rs:43:10 > | >43 | ) -> *mut RsvgNode; > | ^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > >warning: `extern` block uses type `std::rc::Rc<node::Node>`, which is not FFI-safe > --> rsvg_internals/src/drawing_ctx.rs:49:10 > | >49 | ) -> *mut RsvgNode; > | ^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > >warning: `extern` block uses type `std::rc::Rc<node::Node>`, which is not FFI-safe > --> rsvg_internals/src/drawing_ctx.rs:51:77 > | >51 | fn rsvg_drawing_ctx_release_node(draw_ctx: *const RsvgDrawingCtx, node: *mut RsvgNode); > | ^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > >warning: `extern` block uses type `std::rc::Rc<node::Node>`, which is not FFI-safe > --> rsvg_internals/src/drawing_ctx.rs:82:15 > | >82 | node: *const RsvgNode, > | ^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > >warning: `extern` block uses type `Vec<path_builder::PathCommand>`, which is not FFI-safe > --> rsvg_internals/src/drawing_ctx.rs:102:18 > | >102 | builder: *const RsvgPathBuilder, > | ^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > >warning: unused return value of `Box::<T>::from_raw` that must be used > --> rsvg_internals/src/length.rs:471:9 > | >471 | Box::from_raw(dash); > | ^^^^^^^^^^^^^^^^^^^ > | > = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` > = note: `#[warn(unused_must_use)]` on by default > >warning: the type `*mut std::rc::Rc<node::Node>` does not permit being left uninitialized > --> rsvg_internals/src/node.rs:738:30 > | >738 | let mut c = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^^^^^^^^ > | | > | this code causes undefined behavior when executed > | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done > | > = note: raw pointers must be initialized > >warning: the type `*const i8` does not permit being left uninitialized > --> rsvg_internals/src/property_bag.rs:275:32 > | >275 | let mut key = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^^^^^^^^ > | | > | this code causes undefined behavior when executed > | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done > | > = note: raw pointers must be initialized > >warning: the type `attributes::Attribute` does not permit being left uninitialized > --> rsvg_internals/src/property_bag.rs:276:32 > | >276 | let mut att = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^^^^^^^^ > | | > | this code causes undefined behavior when executed > | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done > | >note: enums with multiple inhabited variants have to be initialized to a variant > --> /home/test/rpmbuild/BUILD/librsvg-2.42.7/target/release/build/rsvg_internals-df8cd595cd057e26/out/attributes-codegen.rs:3:1 > | >3 | pub enum Attribute { > | ^^^^^^^^^^^^^^^^^^ > >warning: the type `*const i8` does not permit being left uninitialized > --> rsvg_internals/src/property_bag.rs:277:32 > | >277 | let mut val = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^^^^^^^^ > | | > | this code causes undefined behavior when executed > | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done > | > = note: raw pointers must be initialized > >warning: `extern` block uses type `std::rc::Rc<node::Node>`, which is not FFI-safe > --> rsvg_internals/src/state.rs:54:60 > | >54 | fn rsvg_state_reconstruct(state: *mut RsvgState, node: *const RsvgNode); > | ^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > >warning: `extern` block uses type `length::StrokeDasharray`, which is not FFI-safe > --> rsvg_internals/src/state.rs:62:68 > | >62 | fn rsvg_state_get_stroke_dasharray(state: *const RsvgState) -> *const StrokeDasharray; > | ^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum > = note: enum has no representation hint >note: the type is defined here > --> rsvg_internals/src/length.rs:337:1 > | >337 | pub enum StrokeDasharray { > | ^^^^^^^^^^^^^^^^^^^^^^^^ > >warning: `extern` block uses type `paint_server::PaintServer`, which is not FFI-safe > --> rsvg_internals/src/state.rs:68:58 > | >68 | fn rsvg_state_get_stroke(state: *const RsvgState) -> *const PaintServer; > | ^^^^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum > = note: enum has no representation hint >note: the type is defined here > --> rsvg_internals/src/paint_server.rs:46:1 > | >46 | pub enum PaintServer { > | ^^^^^^^^^^^^^^^^^^^^ > >warning: `extern` block uses type `paint_server::PaintServer`, which is not FFI-safe > --> rsvg_internals/src/state.rs:86:56 > | >86 | fn rsvg_state_get_fill(state: *const RsvgState) -> *const PaintServer; > | ^^^^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum > = note: enum has no representation hint >note: the type is defined here > --> rsvg_internals/src/paint_server.rs:46:1 > | >46 | pub enum PaintServer { > | ^^^^^^^^^^^^^^^^^^^^ > >warning: `extern` block uses type `property_bag::PropertyBag<'_>`, which is not FFI-safe > --> rsvg_internals/src/stop.rs:188:72 > | >188 | fn rsvg_parse_presentation_attributes(state: *mut RsvgState, pbag: *const PropertyBag); > | ^^^^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout >note: the type is defined here > --> rsvg_internals/src/property_bag.rs:15:1 > | >15 | pub struct PropertyBag<'a>(Vec<(&'a CStr, Attribute, &'a CStr)>); > | ^^^^^^^^^^^^^^^^^^^^^^^^^^ > >warning: `extern` block uses type `std::rc::Rc<node::Node>`, which is not FFI-safe > --> rsvg_internals/src/structure.rs:501:15 > | >501 | node: *const RsvgNode, > | ^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > >warning: `extern` block uses type `property_bag::PropertyBag<'_>`, which is not FFI-safe > --> rsvg_internals/src/structure.rs:505:15 > | >505 | pbag: *const PropertyBag, > | ^^^^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout >note: the type is defined here > --> rsvg_internals/src/property_bag.rs:15:1 > | >15 | pub struct PropertyBag<'a>(Vec<(&'a CStr, Attribute, &'a CStr)>); > | ^^^^^^^^^^^^^^^^^^^^^^^^^^ > >warning: `rsvg_internals` (lib test) generated 40 warnings (run `cargo fix --lib -p rsvg_internals --tests` to apply 6 suggestions) > Finished release [optimized + debuginfo] target(s) in 0.19s >warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.12.14 >note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` > Running `/home/test/rpmbuild/BUILD/librsvg-2.42.7/target/release/deps/rsvg_internals-e68078293ff744f1` > >running 146 tests >test aspect_ratio::tests::aligns ... ok >test aspect_ratio::tests::parses_valid_strings ... ok >test aspect_ratio::tests::parsing_invalid_strings_yields_error ... ok >test attributes::tests::c_attribute_from_name ... thread 'attributes::tests::c_attribute_from_name' panicked at 'attempted to leave type `attributes::Attribute` uninitialized, which is invalid', library/core/src/panicking.rs:123:5 >note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace >thread caused non-unwinding panic. aborting. >error: test failed, to rerun pass `--lib` > >Caused by: > process didn't exit successfully: `/home/test/rpmbuild/BUILD/librsvg-2.42.7/target/release/deps/rsvg_internals-e68078293ff744f1` (signal: 6, SIGABRT: process abort signal) >make[3]: *** [Makefile:2038: check-local] Error 101 >make[3]: Leaving directory '/home/test/rpmbuild/BUILD/librsvg-2.42.7' >make[2]: *** [Makefile:1837: check-am] Error 2 >make[2]: Leaving directory '/home/test/rpmbuild/BUILD/librsvg-2.42.7' >make[1]: *** [Makefile:1544: check-recursive] Error 1 >make[1]: Leaving directory '/home/test/rpmbuild/BUILD/librsvg-2.42.7' >make: *** [Makefile:1839: check] Error 2 >[test@beaker-librsvg2-rhel-8 librsvg-2.42.7]$ RUST_BACKTRACE=1 make check >( cd . && glib-mkenums \ > --fhead "#if !defined (__RSVG_RSVG_H_INSIDE__) && !defined (RSVG_COMPILATION)\n#warning \"Including <librsvg/librsvg-enum-types.h> directly is deprecated.\"\n#endif\n\n#ifndef __LIBRSVG_ENUM_TYPES_H__\n#define __LIBRSVG_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \ > --fprod "/* enumerations from \"@filename@\" */\n" \ > --vhead "GType @enum_name@_get_type (void);\n#define RSVG_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ > --ftail "G_END_DECLS\n\n#endif /* __LIBRSVG_ENUM_TYPES_H__ */" \ > librsvg/rsvg.h librsvg/rsvg-cairo.h ) > librsvg/tmp-librsvg-enum-types.h \ >&& (cmp -s librsvg/tmp-librsvg-enum-types.h librsvg/librsvg-enum-types.h || cp librsvg/tmp-librsvg-enum-types.h librsvg/librsvg-enum-types.h ) \ >&& rm -f librsvg/tmp-librsvg-enum-types.h \ >&& echo timestamp > s-enum-types-h >( cd . && glib-mkenums \ > --fhead "#include \"librsvg/rsvg.h\"" \ > --fprod "\n/* enumerations from \"@filename@\" */" \ > --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \ > --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ > --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \ > librsvg/rsvg.h librsvg/rsvg-cairo.h ) > librsvg/tmp-librsvg-enum-types.c \ >&& (cmp -s librsvg/tmp-librsvg-enum-types.c librsvg/librsvg-enum-types.c || cp librsvg/tmp-librsvg-enum-types.c librsvg/librsvg-enum-types.c ) \ >&& rm -f librsvg/tmp-librsvg-enum-types.c \ >&& echo timestamp > s-enum-types-c >make check-recursive >make[1]: Entering directory '/home/test/rpmbuild/BUILD/librsvg-2.42.7' >Making check in . >make[2]: Entering directory '/home/test/rpmbuild/BUILD/librsvg-2.42.7' >( cd . && glib-mkenums \ > --fhead "#include \"librsvg/rsvg.h\"" \ > --fprod "\n/* enumerations from \"@filename@\" */" \ > --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \ > --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ > --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \ > librsvg/rsvg.h librsvg/rsvg-cairo.h ) > librsvg/tmp-librsvg-enum-types.c \ >&& (cmp -s librsvg/tmp-librsvg-enum-types.c librsvg/librsvg-enum-types.c || cp librsvg/tmp-librsvg-enum-types.c librsvg/librsvg-enum-types.c ) \ >&& rm -f librsvg/tmp-librsvg-enum-types.c \ >&& echo timestamp > s-enum-types-c >( cd . && glib-mkenums \ > --fhead "#if !defined (__RSVG_RSVG_H_INSIDE__) && !defined (RSVG_COMPILATION)\n#warning \"Including <librsvg/librsvg-enum-types.h> directly is deprecated.\"\n#endif\n\n#ifndef __LIBRSVG_ENUM_TYPES_H__\n#define __LIBRSVG_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \ > --fprod "/* enumerations from \"@filename@\" */\n" \ > --vhead "GType @enum_name@_get_type (void);\n#define RSVG_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ > --ftail "G_END_DECLS\n\n#endif /* __LIBRSVG_ENUM_TYPES_H__ */" \ > librsvg/rsvg.h librsvg/rsvg-cairo.h ) > librsvg/tmp-librsvg-enum-types.h \ >&& (cmp -s librsvg/tmp-librsvg-enum-types.h librsvg/librsvg-enum-types.h || cp librsvg/tmp-librsvg-enum-types.h librsvg/librsvg-enum-types.h ) \ >&& rm -f librsvg/tmp-librsvg-enum-types.h \ >&& echo timestamp > s-enum-types-h >make check-local >make[3]: Entering directory '/home/test/rpmbuild/BUILD/librsvg-2.42.7' >cd . && \ >CARGO_TARGET_DIR=/home/test/rpmbuild/BUILD/librsvg-2.42.7/target cargo test --verbose --release > Fresh pkg-config v0.3.9 > Fresh bitflags v1.0.1 > Fresh libc v0.2.39 > Fresh rand v0.4.2 > Fresh glib-sys v0.5.0 > Fresh gobject-sys v0.5.0 > Fresh rand v0.3.22 > Fresh lazy_static v1.0.0 > Fresh phf_generator v0.7.21 > Fresh unicode-xid v0.0.4 > Fresh unicode-xid v0.1.0 > Fresh proc-macro2 v0.2.3 > Fresh synom v0.11.3 > Fresh phf_codegen v0.7.21 > Fresh quote v0.3.15 > Fresh syn v0.11.11 > Fresh quote v0.4.2 > Fresh glib v0.4.1 > Fresh pango-sys v0.5.0 > Fresh cairo-sys-rs v0.5.0 > Fresh void v1.0.2 > Fresh siphasher v0.2.2 > Fresh phf_shared v0.7.21 > Fresh unreachable v1.0.0 > Fresh syn v0.12.14 > Fresh memchr v2.0.1 > Fresh c_vec v1.2.1 > Fresh dtoa v0.4.2 > Fresh ucd-util v0.1.1 > Fresh cssparser-macros v0.3.2 > Fresh regex-syntax v0.5.0 > Fresh dtoa-short v0.3.2 > Fresh cairo-rs v0.3.0 > Fresh aho-corasick v0.6.4 > Fresh thread_local v0.3.5 > Fresh phf v0.7.21 > Fresh pangocairo-sys v0.6.0 > Fresh pango v0.3.0 > Fresh either v1.4.0 > Fresh procedural-masquerade v0.1.7 > Fresh num-traits v0.2.1 > Fresh bitflags v0.9.1 > Fresh utf8-ranges v1.0.0 > Fresh matches v0.1.6 > Fresh smallvec v0.6.0 > Fresh itoa v0.3.4 > Fresh cssparser v0.23.2 > Fresh regex v0.2.7 > Fresh pangocairo v0.4.1 > Fresh float-cmp v0.4.0 > Fresh itertools v0.7.7 > Fresh downcast-rs v1.0.1 > Fresh rsvg_internals v0.0.1 (/home/test/rpmbuild/BUILD/librsvg-2.42.7/rsvg_internals) >warning: unused `#[macro_use]` import > --> rsvg_internals/src/lib.rs:21:1 > | >21 | #[macro_use] > | ^^^^^^^^^^^^ > | > = note: `#[warn(unused_imports)]` on by default > >warning: unnecessary parentheses around block return value > --> rsvg_internals/src/marker.rs:662:5 > | >662 | (!get_marker_name_from_drawing_ctx(draw_ctx, MarkerType::Start).is_null() > | ^ >663 | || !get_marker_name_from_drawing_ctx(draw_ctx, MarkerType::Middle).is_null() >664 | || !get_marker_name_from_drawing_ctx(draw_ctx, MarkerType::End).is_null()) > | ^ > | > = note: `#[warn(unused_parens)]` on by default >help: remove these parentheses > | >662 ~ !get_marker_name_from_drawing_ctx(draw_ctx, MarkerType::Start).is_null() >663 | || !get_marker_name_from_drawing_ctx(draw_ctx, MarkerType::Middle).is_null() >664 ~ || !get_marker_name_from_drawing_ctx(draw_ctx, MarkerType::End).is_null() > | > >warning: unnecessary trailing semicolon > --> rsvg_internals/src/marker.rs:702:6 > | >702 | }; > | ^ help: remove this semicolon > | > = note: `#[warn(redundant_semicolons)]` on by default > >warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead > --> rsvg_internals/src/attributes.rs:56:46 > | >56 | let mut a: Attribute = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^ > | > = note: `#[warn(deprecated)]` on by default > >warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead > --> rsvg_internals/src/attributes.rs:67:46 > | >67 | let mut a: Attribute = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^ > >warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead > --> rsvg_internals/src/cond.rs:11:17 > | >11 | use std::ascii::AsciiExt; > | ^^^^^^^^ > >warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred > --> rsvg_internals/src/length.rs:384:5 > | >384 | / lazy_static!{ >385 | | // The unwrap here is fine AS LONG the regex query is valid. >386 | | static ref COMMAS: Regex = Regex::new(r",\s*,").unwrap(); >387 | | }; > | |_____^ > | > = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) > >warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred > --> rsvg_internals/src/link.rs:66:5 > | >66 | / lazy_static! { >67 | | static ref REGEX: Regex = Regex::new(r"['\\]").unwrap(); >68 | | } > | |_____^ > | > = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) > >warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead > --> rsvg_internals/src/node.rs:738:35 > | >738 | let mut c = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^ > >warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead > --> rsvg_internals/src/property_bag.rs:275:37 > | >275 | let mut key = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^ > >warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead > --> rsvg_internals/src/property_bag.rs:276:37 > | >276 | let mut att = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^ > >warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead > --> rsvg_internals/src/property_bag.rs:277:37 > | >277 | let mut val = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^ > >warning: trait objects without an explicit `dyn` are deprecated > --> rsvg_internals/src/node.rs:68:20 > | >68 | node_impl: Box<NodeTrait>, > | ^^^^^^^^^ > | > = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! > = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> > = note: `#[warn(bare_trait_objects)]` on by default >help: use `dyn` > | >68 | node_impl: Box<dyn NodeTrait>, > | +++ > >warning: trait objects without an explicit `dyn` are deprecated > --> rsvg_internals/src/gradient.rs:330:56 > | >330 | fn add_color_stops_to_pattern(&self, pattern: &mut cairo::Gradient, opacity: u8) { > | ^^^^^^^^^^^^^^^ > | > = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! > = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> >help: use `dyn` > | >330 | fn add_color_stops_to_pattern(&self, pattern: &mut dyn cairo::Gradient, opacity: u8) { > | +++ > >warning: trait objects without an explicit `dyn` are deprecated > --> rsvg_internals/src/node.rs:273:20 > | >273 | node_impl: Box<NodeTrait>, > | ^^^^^^^^^ > | > = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! > = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> >help: use `dyn` > | >273 | node_impl: Box<dyn NodeTrait>, > | +++ > >warning: trait objects without an explicit `dyn` are deprecated > --> rsvg_internals/src/node.rs:141:24 > | >141 | node_impl: Box<NodeTrait>, > | ^^^^^^^^^ > | > = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! > = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> >help: use `dyn` > | >141 | node_impl: Box<dyn NodeTrait>, > | +++ > >warning: trait objects without an explicit `dyn` are deprecated > --> rsvg_internals/src/viewport.rs:85:15 > | >85 | ctx: &mut ViewportCtx, > | ^^^^^^^^^^^ > | > = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! > = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> >help: use `dyn` > | >85 | ctx: &mut dyn ViewportCtx, > | +++ > >warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() > --> rsvg_internals/src/path_parser.rs:921:18 > | >921 | self.description() > | ^^^^^^^^^^^ > >warning: variants `Normal`, `Embed`, and `Override` are never constructed > --> rsvg_internals/src/state.rs:20:5 > | >19 | pub enum UnicodeBidi { > | ----------- variants in this enum >20 | Normal, > | ^^^^^^ >21 | Embed, > | ^^^^^ >22 | Override, > | ^^^^^^^^ > | > = note: `#[warn(dead_code)]` on by default > >warning: the type `attributes::Attribute` does not permit being left uninitialized > --> rsvg_internals/src/attributes.rs:56:41 > | >56 | let mut a: Attribute = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^^^^^^^^ > | | > | this code causes undefined behavior when executed > | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done > | >note: enums with multiple inhabited variants have to be initialized to a variant > --> /home/test/rpmbuild/BUILD/librsvg-2.42.7/target/release/build/rsvg_internals-df8cd595cd057e26/out/attributes-codegen.rs:3:1 > | >3 | pub enum Attribute { > | ^^^^^^^^^^^^^^^^^^ > = note: `#[warn(invalid_value)]` on by default > >warning: the type `attributes::Attribute` does not permit being left uninitialized > --> rsvg_internals/src/attributes.rs:67:41 > | >67 | let mut a: Attribute = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^^^^^^^^ > | | > | this code causes undefined behavior when executed > | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done > | >note: enums with multiple inhabited variants have to be initialized to a variant > --> /home/test/rpmbuild/BUILD/librsvg-2.42.7/target/release/build/rsvg_internals-df8cd595cd057e26/out/attributes-codegen.rs:3:1 > | >3 | pub enum Attribute { > | ^^^^^^^^^^^^^^^^^^ > >warning: `extern` block uses type `std::rc::Rc<node::Node>`, which is not FFI-safe > --> rsvg_internals/src/drawing_ctx.rs:37:15 > | >37 | node: *const RsvgNode, > | ^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > = note: `#[warn(improper_ctypes)]` on by default > >warning: `extern` block uses type `std::rc::Rc<node::Node>`, which is not FFI-safe > --> rsvg_internals/src/drawing_ctx.rs:38:10 > | >38 | ) -> *mut RsvgNode; > | ^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > >warning: `extern` block uses type `std::rc::Rc<node::Node>`, which is not FFI-safe > --> rsvg_internals/src/drawing_ctx.rs:43:10 > | >43 | ) -> *mut RsvgNode; > | ^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > >warning: `extern` block uses type `std::rc::Rc<node::Node>`, which is not FFI-safe > --> rsvg_internals/src/drawing_ctx.rs:49:10 > | >49 | ) -> *mut RsvgNode; > | ^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > >warning: `extern` block uses type `std::rc::Rc<node::Node>`, which is not FFI-safe > --> rsvg_internals/src/drawing_ctx.rs:51:77 > | >51 | fn rsvg_drawing_ctx_release_node(draw_ctx: *const RsvgDrawingCtx, node: *mut RsvgNode); > | ^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > >warning: `extern` block uses type `std::rc::Rc<node::Node>`, which is not FFI-safe > --> rsvg_internals/src/drawing_ctx.rs:82:15 > | >82 | node: *const RsvgNode, > | ^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > >warning: `extern` block uses type `Vec<path_builder::PathCommand>`, which is not FFI-safe > --> rsvg_internals/src/drawing_ctx.rs:102:18 > | >102 | builder: *const RsvgPathBuilder, > | ^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > >warning: unused return value of `Box::<T>::from_raw` that must be used > --> rsvg_internals/src/length.rs:471:9 > | >471 | Box::from_raw(dash); > | ^^^^^^^^^^^^^^^^^^^ > | > = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` > = note: `#[warn(unused_must_use)]` on by default > >warning: the type `*mut std::rc::Rc<node::Node>` does not permit being left uninitialized > --> rsvg_internals/src/node.rs:738:30 > | >738 | let mut c = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^^^^^^^^ > | | > | this code causes undefined behavior when executed > | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done > | > = note: raw pointers must be initialized > >warning: the type `*const i8` does not permit being left uninitialized > --> rsvg_internals/src/property_bag.rs:275:32 > | >275 | let mut key = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^^^^^^^^ > | | > | this code causes undefined behavior when executed > | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done > | > = note: raw pointers must be initialized > >warning: the type `attributes::Attribute` does not permit being left uninitialized > --> rsvg_internals/src/property_bag.rs:276:32 > | >276 | let mut att = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^^^^^^^^ > | | > | this code causes undefined behavior when executed > | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done > | >note: enums with multiple inhabited variants have to be initialized to a variant > --> /home/test/rpmbuild/BUILD/librsvg-2.42.7/target/release/build/rsvg_internals-df8cd595cd057e26/out/attributes-codegen.rs:3:1 > | >3 | pub enum Attribute { > | ^^^^^^^^^^^^^^^^^^ > >warning: the type `*const i8` does not permit being left uninitialized > --> rsvg_internals/src/property_bag.rs:277:32 > | >277 | let mut val = unsafe { mem::uninitialized() }; > | ^^^^^^^^^^^^^^^^^^^^ > | | > | this code causes undefined behavior when executed > | help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done > | > = note: raw pointers must be initialized > >warning: `extern` block uses type `std::rc::Rc<node::Node>`, which is not FFI-safe > --> rsvg_internals/src/state.rs:54:60 > | >54 | fn rsvg_state_reconstruct(state: *mut RsvgState, node: *const RsvgNode); > | ^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > >warning: `extern` block uses type `length::StrokeDasharray`, which is not FFI-safe > --> rsvg_internals/src/state.rs:62:68 > | >62 | fn rsvg_state_get_stroke_dasharray(state: *const RsvgState) -> *const StrokeDasharray; > | ^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum > = note: enum has no representation hint >note: the type is defined here > --> rsvg_internals/src/length.rs:337:1 > | >337 | pub enum StrokeDasharray { > | ^^^^^^^^^^^^^^^^^^^^^^^^ > >warning: `extern` block uses type `paint_server::PaintServer`, which is not FFI-safe > --> rsvg_internals/src/state.rs:68:58 > | >68 | fn rsvg_state_get_stroke(state: *const RsvgState) -> *const PaintServer; > | ^^^^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum > = note: enum has no representation hint >note: the type is defined here > --> rsvg_internals/src/paint_server.rs:46:1 > | >46 | pub enum PaintServer { > | ^^^^^^^^^^^^^^^^^^^^ > >warning: `extern` block uses type `paint_server::PaintServer`, which is not FFI-safe > --> rsvg_internals/src/state.rs:86:56 > | >86 | fn rsvg_state_get_fill(state: *const RsvgState) -> *const PaintServer; > | ^^^^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum > = note: enum has no representation hint >note: the type is defined here > --> rsvg_internals/src/paint_server.rs:46:1 > | >46 | pub enum PaintServer { > | ^^^^^^^^^^^^^^^^^^^^ > >warning: `extern` block uses type `property_bag::PropertyBag<'_>`, which is not FFI-safe > --> rsvg_internals/src/stop.rs:188:72 > | >188 | fn rsvg_parse_presentation_attributes(state: *mut RsvgState, pbag: *const PropertyBag); > | ^^^^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout >note: the type is defined here > --> rsvg_internals/src/property_bag.rs:15:1 > | >15 | pub struct PropertyBag<'a>(Vec<(&'a CStr, Attribute, &'a CStr)>); > | ^^^^^^^^^^^^^^^^^^^^^^^^^^ > >warning: `extern` block uses type `std::rc::Rc<node::Node>`, which is not FFI-safe > --> rsvg_internals/src/structure.rs:501:15 > | >501 | node: *const RsvgNode, > | ^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout > >warning: `extern` block uses type `property_bag::PropertyBag<'_>`, which is not FFI-safe > --> rsvg_internals/src/structure.rs:505:15 > | >505 | pbag: *const PropertyBag, > | ^^^^^^^^^^^^^^^^^^ not FFI-safe > | > = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct > = note: this struct has unspecified layout >note: the type is defined here > --> rsvg_internals/src/property_bag.rs:15:1 > | >15 | pub struct PropertyBag<'a>(Vec<(&'a CStr, Attribute, &'a CStr)>); > | ^^^^^^^^^^^^^^^^^^^^^^^^^^ > >warning: `rsvg_internals` (lib test) generated 40 warnings (run `cargo fix --lib -p rsvg_internals --tests` to apply 6 suggestions) > Finished release [optimized + debuginfo] target(s) in 0.04s >warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.12.14 >note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` > Running `/home/test/rpmbuild/BUILD/librsvg-2.42.7/target/release/deps/rsvg_internals-e68078293ff744f1` > >running 146 tests >test aspect_ratio::tests::aligns ... ok >test aspect_ratio::tests::parses_valid_strings ... ok >test aspect_ratio::tests::parsing_invalid_strings_yields_error ... ok >test attributes::tests::c_attribute_from_name ... thread 'attributes::tests::c_attribute_from_name' panicked at 'attempted to leave type `attributes::Attribute` uninitialized, which is invalid', library/core/src/panicking.rs:123:5 >stack backtrace: > 0: rust_begin_unwind > at /builddir/build/BUILD/rustc-1.69.0-src/library/std/src/panicking.rs:579:5 > 1: core::panicking::panic_nounwind_fmt > at /builddir/build/BUILD/rustc-1.69.0-src/library/core/src/panicking.rs:93:14 > 2: core::panicking::panic_nounwind > at /builddir/build/BUILD/rustc-1.69.0-src/library/core/src/panicking.rs:123:5 > 3: core::mem::uninitialized > at /builddir/build/BUILD/rustc-1.69.0-src/library/core/src/mem/mod.rs:685:9 > 4: rsvg_internals::attributes::tests::invalid_c_attribute_from_name > at ./src/attributes.rs:67:41 > 5: rsvg_internals::attributes::tests::invalid_c_attribute_from_name::{{closure}} > at ./src/attributes.rs:66:40 > 6: core::ops::function::FnOnce::call_once > at /builddir/build/BUILD/rustc-1.69.0-src/library/core/src/ops/function.rs:250:5 > 7: core::ops::function::FnOnce::call_once > at /builddir/build/BUILD/rustc-1.69.0-src/library/core/src/ops/function.rs:250:5 >note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. >thread caused non-unwinding panic. aborting. >error: test failed, to rerun pass `--lib` > >Caused by: > process didn't exit successfully: `/home/test/rpmbuild/BUILD/librsvg-2.42.7/target/release/deps/rsvg_internals-e68078293ff744f1` (signal: 6, SIGABRT: process abort signal) >make[3]: *** [Makefile:2038: check-local] Error 101 >make[3]: Leaving directory '/home/test/rpmbuild/BUILD/librsvg-2.42.7' >make[2]: *** [Makefile:1837: check-am] Error 2 >make[2]: Leaving directory '/home/test/rpmbuild/BUILD/librsvg-2.42.7' >make[1]: *** [Makefile:1544: check-recursive] Error 1 >make[1]: Leaving directory '/home/test/rpmbuild/BUILD/librsvg-2.42.7' >make: *** [Makefile:1839: check] Error 2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2217860
: 1972799