Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Generate WidgetPath #630

Merged
merged 1 commit into from
Mar 3, 2018
Merged

Generate WidgetPath #630

merged 1 commit into from
Mar 3, 2018

Conversation

EPashkin
Copy link
Member

Apply of gtk-rs/gir#552,
also contains fixes for async's

cc @GuillaumeGomez, @sdroege

@GuillaumeGomez
Copy link
Member

GuillaumeGomez commented Feb 23, 2018

Holy crap:

thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', libcore/option.rs:335:21
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.25.0-nightly (b1f8e6fb0 2018-02-22) running on x86_64-unknown-linux-gnu
error: Could not document `glib`.

I have a fix to write for rustdoc now I suppose...

@EPashkin
Copy link
Member Author

EPashkin commented Feb 23, 2018

Maybe this helps little: it seems documented fine in

>rustc -Vv
rustc 1.25.0-nightly (3ec5a99aa 2018-02-14)
binary: rustc
commit-hash: 3ec5a99aaa0084d97a9e845b34fdf03d1462c475
commit-date: 2018-02-14
host: x86_64-pc-windows-gnu
release: 1.25.0-nightly
LLVM version: 6.0

glib>cargo -Vv
cargo 0.26.0-nightly (1d6dfea44 2018-01-26)
release: 0.26.0
commit-hash: 1d6dfea44f97199d5d5c177c7dadcde393eaff9a
commit-date: 2018-01-26

but failed on current version:

D:\eap\rust\0\glib>rustc -Vv
rustc 1.25.0-nightly (b1f8e6fb0 2018-02-22)
binary: rustc
commit-hash: b1f8e6fb06d7362eeb2065347a7db94e76b1cb2f
commit-date: 2018-02-22
host: x86_64-pc-windows-gnu
release: 1.25.0-nightly
LLVM version: 6.0

D:\eap\rust\0\glib>cargo -Vv
cargo 0.26.0-nightly (1d6dfea44 2018-01-26)
release: 0.26.0
commit-hash: 1d6dfea44f97199d5d5c177c7dadcde393eaff9a
commit-date: 2018-01-26
 Documenting glib v0.4.1 (file:///D:/eap/rust/0/glib)
thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', libcore\option.rs:335:21
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: mingw_set_invalid_parameter_handler
   1: mingw_set_invalid_parameter_handler
   2: mingw_set_invalid_parameter_handler
   3: mingw_set_invalid_parameter_handler
   4: mingw_set_invalid_parameter_handler
   5: mingw_set_invalid_parameter_handler
   6: mingw_set_invalid_parameter_handler
   7: mingw_set_invalid_parameter_handler
   8: mingw_set_invalid_parameter_handler
   9: mingw_set_invalid_parameter_handler
  10: mingw_set_invalid_parameter_handler
  11: mingw_set_invalid_parameter_handler
  12: mingw_set_invalid_parameter_handler
  13: mingw_set_invalid_parameter_handler
  14: mingw_set_invalid_parameter_handler
  15: rustdoc::clean::get_auto_traits_with_def_id
             at librustdoc\clean/auto_trait.rs:21
             at librustdoc\clean/mod.rs:3372
  16: rustdoc::clean::inline::build_impls
             at librustdoc\clean/inline.rs:246
  17: rustdoc::clean::build_deref_target_impls
             at librustdoc\clean/mod.rs:3431
  18: <rustdoc::doctree::Impl as rustdoc::clean::Clean<alloc::vec::Vec<rustdoc::clean::Item>>>::clean
             at librustdoc\clean/mod.rs:3384
  19: <rustdoc::doctree::Module as rustdoc::clean::Clean<rustdoc::clean::Item>>::clean
             at librustdoc\clean/mod.rs:541
             at C:\projects\rust\src\libcore\ops/function.rs:271
             at C:\projects\rust\src\libcore/option.rs:404
             at C:\projects\rust\src\libcore\iter/mod.rs:2448
             at C:\projects\rust\src\liballoc/vec.rs:1906
             at C:\projects\rust\src\liballoc/vec.rs:1803
             at C:\projects\rust\src\liballoc/vec.rs:1767
             at librustdoc\clean/mod.rs:541
  20: <alloc::vec::Vec<T> as alloc::vec::SpecExtend<T, I>>::spec_extend
             at librustdoc\clean/mod.rs:536
             at C:\projects\rust\src\libcore\ops/function.rs:271
             at C:\projects\rust\src\libcore/option.rs:404
             at C:\projects\rust\src\libcore\iter/mod.rs:1311
             at C:\projects\rust\src\liballoc/vec.rs:1829
  21: <rustdoc::doctree::Module as rustdoc::clean::Clean<rustdoc::clean::Item>>::clean
             at C:\projects\rust\src\liballoc/vec.rs:1767
             at librustdoc\clean/mod.rs:536
  22: <rustdoc::visit_ast::RustdocVisitor<'a, 'tcx, 'rcx> as rustdoc::clean::Clean<rustdoc::clean::Crate>>::clean
             at librustdoc\clean/mod.rs:166
  23: rustdoc::core::run_core::{{closure}}
             at librustdoc/core.rs:270
  24: rustc::ty::context::TyCtxt::create_and_enter
             at C:\projects\rust\src\librustc_driver/driver.rs:1094
             at C:\projects\rust\src\librustc\ty/context.rs:1573
             at C:\projects\rust\src\libstd\thread/local.rs:377
             at C:\projects\rust\src\libstd\thread/local.rs:288
             at C:\projects\rust\src\librustc\ty/context.rs:1570
             at C:\projects\rust\src\librustc\ty/context.rs:1557
             at C:\projects\rust\src\libstd\thread/local.rs:377
             at C:\projects\rust\src\libstd\thread/local.rs:288
             at C:\projects\rust\src\librustc\ty/context.rs:1554
             at C:\projects\rust\src\librustc\ty/context.rs:1197
  25: rustdoc::core::run_core
             at C:\projects\rust\src\librustc_driver/driver.rs:1007
             at librustdoc/core.rs:217

error: internal compiler error: unexpected panic

@EPashkin EPashkin changed the title WIP: Generate WidgetPath Generate WidgetPath Feb 23, 2018
@EPashkin
Copy link
Member Author

Done full regen

@GuillaumeGomez
Copy link
Member

I'll copy your comment on the rustc issue.

@GuillaumeGomez
Copy link
Member

And code seems however I'll just wait that the rustdoc issue is solved before merging it (sorry). I'll do it before the end of the day.

@EPashkin
Copy link
Member Author

No problem 😉

@GuillaumeGomez
Copy link
Member

Let's retry. A fix for an ICE got merged yesterday so maybe the problem is already solved...

@EPashkin
Copy link
Member Author

Seems not 😭

@GuillaumeGomez
Copy link
Member

Yep, I think it comes from last nightly.

@GuillaumeGomez
Copy link
Member

It's fixed in this PR.

@EPashkin
Copy link
Member Author

EPashkin commented Mar 2, 2018

Rebased. I hope that error really fixed

@EPashkin
Copy link
Member Author

EPashkin commented Mar 3, 2018

CI passed 🎉

@GuillaumeGomez
Copy link
Member

Then I merge. Thanks!

@GuillaumeGomez GuillaumeGomez merged commit 75c325b into gtk-rs:master Mar 3, 2018
@EPashkin EPashkin deleted the widget_path branch March 3, 2018 12:01
vhdirk pushed a commit to vhdirk/gtk-rs that referenced this pull request Jan 16, 2019
alex179ohm pushed a commit to alex179ohm/gtk that referenced this pull request Oct 21, 2019
Add deprecated version for not generated parents
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants