Skip to content

GIR file update in commit f0586286 broke pango build #1692

@nirbheek

Description

@nirbheek

Building the commit immediately before this works fine.

error[E0599]: no function or associated item named `uninitialized` found for struct `auto::glyph_string::GlyphString` in the current scope
   --> /home/nirbheek/.cargo/git/checkouts/gtk-rs-core-35cb1a5a363f4187/53497a5/pango/src/auto/functions.rs:252:39
    |
252 |           let mut glyphs = GlyphString::uninitialized();
    |                                         ^^^^^^^^^^^^^ function or associated item not found in `GlyphString`
    |
   ::: /home/nirbheek/.cargo/git/checkouts/gtk-rs-core-35cb1a5a363f4187/53497a5/pango/src/auto/glyph_string.rs:8:1
    |
8   | / glib::wrapper! {
9   | |     #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
10  | |     pub struct GlyphString(Boxed<ffi::PangoGlyphString>);
...   |
17  | | }
    | |_- function or associated item `uninitialized` not found for this struct
    |
note: if you're trying to build a new `auto::glyph_string::GlyphString`, consider using `auto::glyph_string::GlyphString::new` which returns `auto::glyph_string::GlyphString`
   --> /home/nirbheek/.cargo/git/checkouts/gtk-rs-core-35cb1a5a363f4187/53497a5/pango/src/auto/glyph_string.rs:21:5
    |
21  |     pub fn new() -> GlyphString {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: items from traits can only be used if the trait is implemented and in scope
    = note: the following trait defines an item `uninitialized`, perhaps you need to implement it:
            candidate #1: `glib::translate::Uninitialized`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `pango` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions