Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning: broken MIR (occurs when compiling any of the examples on rustc stable 1.8) #724

Closed
mark-summerfield opened this issue May 18, 2016 · 1 comment

Comments

@mark-summerfield
Copy link
Contributor

I don't know if this matters, but thought I'd let you know. The all_widgets example seemed to run okay except that I couldn't change the numbers for frame height or width in the GUI: I tried using the mouse wheel, clicking above, below, and on the number, typing a number and none had any effect.

The same warning also occurs with canvas, primitives, and text. Incidentally, the text example is very slow to resize (I'm on a 3+GHz i7).

examples/all_widgets.rs:148:39: 148:44 warning: broken MIR (var2 = conrod::ui::Ui::new(tmp19, tmp21) -> [return: bb44, unwind: bb43]): call dest mismatch (conrod::ui::Ui<(gfx_texture::Texture<gfx_device_gl::Resources>, gfx_graphics::glyph::GlyphCache<gfx_device_gl::Resources, gfx_device_gl::factory::Factory>)> <- conrod::ui::Ui<(<gfx_graphics::back_end::GfxGraphics<'static, gfx_device_gl::Resources, gfx_device_gl::command::CommandBuffer> as graphics::graphics::Graphics>::Texture, gfx_graphics::glyph::GlyphCache<gfx_device_gl::Resources, gfx_device_gl::factory::Factory>)>): Sorts(ExpectedFound { expected: gfx_texture::Texture<gfx_device_gl::Resources>, found: <gfx_graphics::back_end::GfxGraphics<'static, gfx_device_gl::Resources, gfx_device_gl::command::CommandBuffer> as graphics::graphics::Graphics>::Texture })
examples/all_widgets.rs:148 Ui::new(glyph_cache.unwrap(), theme)
^~~~~
Running target/release/examples/all_widgets

@mitchmindtree
Copy link
Contributor

Thanks @mark-summerfield, I reported this a while ago to the core team and they seem to be aware of it, I'm guessing the warning will go away in one of the upcoming stable rustc releases 👍

Thanks for the report, I'll leave this open for others to see until the next rustc comes out and the warning goes away.

@mitchmindtree mitchmindtree changed the title warning when running all_widgets on Ubuntu 14 warning: broken MIR (occurs when compiling any of the examples on rustc stable 1.8) May 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants