форум
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
SorteKanin@feddit.dk to Rust@programming.dev · 2 months 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 · 2 months 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
    ·
    2 months ago

    Pretty elite flex, ngl

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    8
    ·
    2 months 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
      ·
      2 months 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
        ·
        2 months 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
        ·
        2 months 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
    ·
    2 months 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.

  • 4 users / day
  • 187 users / week
  • 369 users / month
  • 720 users / 6 months
  • 2 local subscribers
  • 8.24K subscribers
  • 95 Posts
  • 332 Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • torcherist@programming.dev
  • EdTheLegendary@programming.dev
  • BE: 0.19.19
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org