Europe Pub
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
SorteKanin@feddit.dk to Rust@programming.dev · 4 个月前

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

parsa.wtf

external-link
message-square
6
link
fedilink
49
external-link

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

parsa.wtf

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

    Pretty elite flex, ngl

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    8
    ·
    4 个月前

    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
      link
      fedilink
      English
      arrow-up
      10
      ·
      4 个月前

      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
        link
        fedilink
        arrow-up
        3
        ·
        4 个月前

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

      • FizzyOrange@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        4 个月前

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

  • BlackRoseAmongThorns@slrpnk.net
    link
    fedilink
    arrow-up
    2
    ·
    4 个月前

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

Rust@programming.dev

rust@programming.dev

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: !rust@programming.dev

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

Wormhole

!performance@programming.dev

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

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

  • 8 users / day
  • 69 users / week
  • 190 users / month
  • 1.16K users / 6 months
  • 3 local subscribers
  • 8.36K subscribers
  • 472 Posts
  • 1.17K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • EdTheLegendary@programming.dev
  • torcherist@programming.dev
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org