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

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 · 24 days ago
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 # to comment.
  • subversive_dev@lemmy.ml
    link
    fedilink
    English
    arrow-up
    12
    ·
    24 days ago

    Pretty elite flex, ngl

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    8
    ·
    24 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
      link
      fedilink
      English
      arrow-up
      10
      ·
      24 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
        link
        fedilink
        arrow-up
        3
        ·
        24 days ago

        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
        ·
        24 days ago

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

  • BlackRoseAmongThorns@slrpnk.net
    link
    fedilink
    arrow-up
    2
    ·
    20 days ago

    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.

  • 3 users / day
  • 60 users / week
  • 569 users / month
  • 1.22K users / 6 months
  • 1 local subscriber
  • 8.15K subscribers
  • 889 Posts
  • 4.22K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • EdTheLegendary@programming.dev
  • torcherist@programming.dev
  • UI: unknown version
  • BE: 0.19.18
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org