programming.dev
  • Communities
  • Create Post
  • Create Community
  • Aquileo | heart
    Support Lemmy
  • Aquileo | search
    Search
  • Login
  • Sign Up
SorteKanin@feddit.dk to Rust · 29 days ago

It's not me, it's the compiler!

parsa.wtf

Aquileo | external-link
Aquileo | message-square
6
Aquileo | link
Aquileo | fedilink
50
Aquileo | external-link

It's not me, it's the compiler!

parsa.wtf

SorteKanin@feddit.dk to Rust · 29 days ago
Aquileo | message-square
6
Aquileo | link
Aquileo | fedilink
Parsa's Blog | bool as u32
parsa.wtf
Aquileo | external-link
That time I found a rustc bug
Aquileo | alert-triangle
You must log in or # to comment.
  • subversive_dev@lemmy.ml
    Aquileo | link
    Aquileo | fedilink
    English
    Aquileo | arrow-up
    12
    ·
    29 days ago

    Pretty elite flex, ngl

  • FizzyOrange
    Aquileo | link
    Aquileo | fedilink
    Aquileo | arrow-up
    8
    ·
    29 days ago

    Wow that’s pretty crazy. I guess this bug was only in nightly?

    Also I want to know more about this guy’s crazy build system.

    • blackjacksepp@feddit.org
      Aquileo | link
      Aquileo | fedilink
      English
      Aquileo | arrow-up
      10
      ·
      29 days ago

      Nope, the bug was present in multiple stable versions. From the Github issue comments:

      I can reproduce the bug on 1.94, 1.95, 1.96 and nightly. (1.93 seems to be the latest version without the bug present)

      • nialv7@lemmy.world
        Aquileo | link
        Aquileo | fedilink
        Aquileo | arrow-up
        3
        ·
        29 days ago

        that’s a pretty big fuckup, no? also does MIR not check for variable not being initialized?

      • FizzyOrange
        Aquileo | link
        Aquileo | fedilink
        Aquileo | arrow-up
        2
        ·
        29 days ago

        Wow. I wonder why nobody saw this before then? Op’s code doesn’t look unusual.

  • BlackRoseAmongThorns@slrpnk.net
    Aquileo | link
    Aquileo | fedilink
    Aquileo | arrow-up
    2
    ·
    24 days ago

    Very nice read, the code examples were very clear :)

Rust

rust

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits
  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
Visibility: Public
Aquileo | globe

This community can be federated to other instances and be posted/commented in by their users.

  • 62 users / day
  • 54 users / week
  • 561 users / month
  • 1.23K users / 6 months
  • 1.6K local subscribers
  • 8.17K subscribers
  • 1.36K Posts
  • 6.07K Comments
  • Modlog
  • mods:
  • snowe
  • Ategon
  • EdTheLegendary
  • torcherist
  • BE: 0.19.18
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org