Skip to content

Should generate deprecate warning in rust code, when C code macro expand to __attribute__ __deprecated__ #1522

@loynoir

Description

@loynoir

reproduce

C code

GDK_DEPRECATED_IN_4_10_FOR(gtk_widget_set_visible or gtk_window_present)
void       gtk_widget_show 
__attribute__((__deprecated__("Use '" "gtk_widget_set_visible or gtk_window_present" "' instead"))) extern
void       gtk_widget_show 

actual

rust code

// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
    pub fn gtk_widget_should_layout(widget: *mut GtkWidget) -> gboolean;
    pub fn gtk_widget_show(widget: *mut GtkWidget);
    pub fn gtk_widget_size_allocate(

expected

Deprecate warning when use rust gtk4_sys::gtk_widget_show

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