Coder Social home page Coder Social logo

Comments (20)

oli-obk avatar oli-obk commented on May 29, 2024 2

What it is is a feature gated feature ICEing without the feature gate, so we would see it ICE on stable if untreated. This means it is a higher priority ICE than an ICE that is only reachable with feature gates.

We have not used "regression" as a term for "error -> ICE" changes, as by definition that'a true for any ICE that does not require feature gates. If we flagged it as a regression, that would flood and taint the actually problematic regressions.

We do flag these as regressions if there is no error before the ICE, as the user then has no information on how to fix it.

So while @matthiaskrgr is technically correct, in practice we don't and shouldn't use this terminology

from rust.

matthiaskrgr avatar matthiaskrgr commented on May 29, 2024 1

exactly, unless it gets fixed in time :)

from rust.

oli-obk avatar oli-obk commented on May 29, 2024 1

maybe internal features should just hard abort compilation if they aren't set

from rust.

compiler-errors avatar compiler-errors commented on May 29, 2024

While checkout out this ice (which does not require a feature gate btw, so potential beta-to-stable regression, which is inconvenient

What do you mean? Why would this beta a beta-to-stable regression? It regressed with #107606.

from rust.

compiler-errors avatar compiler-errors commented on May 29, 2024

cc @oli-obk pattern types need a real tracking issue, and you need to delay a span bug here rather than ICE

from rust.

matthiaskrgr avatar matthiaskrgr commented on May 29, 2024

right now: beta -> nightly regression
once nightly gets promoted to beta: stable -> beta regression
once beta gets promoted to stable: stable -> stable regression?

from rust.

compiler-errors avatar compiler-errors commented on May 29, 2024

yes? but you can say that about every single regression that ever gets filed lol

from rust.

compiler-errors avatar compiler-errors commented on May 29, 2024

I don't see the purpose of pointing out that this is a potential beta regression before it has even landed on nightly, unless there's some reason that this is particularly difficult to fix, particularly affects user-facing code, or we expect it to slip the beta promotion for some reason.

from rust.

matthiaskrgr avatar matthiaskrgr commented on May 29, 2024

Well, there are a few cases where feature gates actually do work and prevent crashes on stable 🙃

from rust.

matthiaskrgr avatar matthiaskrgr commented on May 29, 2024

might also solve some of the internal-feature ices we are getting from time to time

from rust.

workingjubilee avatar workingjubilee commented on May 29, 2024

...I do not see how it would be a regression, because we can safely bet on no one requiring the pattern_type! macro before the feature's library API landed.

The code did not travel back in time to 1.77 compilers and suddenly become usable stable API.

from rust.

matthiaskrgr avatar matthiaskrgr commented on May 29, 2024

its a regression because the compiler now crashes/ICEs where it would previously just show an error message.

from rust.

workingjubilee avatar workingjubilee commented on May 29, 2024

please show me the codebase that regressed.

from rust.

matthiaskrgr avatar matthiaskrgr commented on May 29, 2024

#123643 (comment)

from rust.

workingjubilee avatar workingjubilee commented on May 29, 2024

code that was not committed until April 8th, thus incapable of regressing on stable, yes.

from rust.

matthiaskrgr avatar matthiaskrgr commented on May 29, 2024

ah yes not yet. this is why I wrote so potential beta-to-stable regression, which is inconvenient ;)

from rust.

workingjubilee avatar workingjubilee commented on May 29, 2024

If it arrived on 1.79 on stable, it would be code that, since the moment it has been useful to write, has always ICEd. 1.79 cannot retrocausally regress code, unless you have a TARDIS or somesuch.

from rust.

matthiaskrgr avatar matthiaskrgr commented on May 29, 2024

I it was code that did not ICE on 1.78, and now ICEs on 1.79, so that makes it a regression.

from rust.

workingjubilee avatar workingjubilee commented on May 29, 2024

It was code that did not exist in this world on 1.78. It didn't exist in some timeless platonic realm of Forms. No actual programs were harmed in the making of this music video.

from rust.

workingjubilee avatar workingjubilee commented on May 29, 2024

I suppose if you insist we can call them "regressions" when they involve code samples that just came into being, but I wish to know what I should call it when my actual tests fail from version to version of rustc and I have to spend hours bisecting the issue and figuring out where in the codebase it has gone wrong and fixing the problem before the new version comes out, either in the code or in rustc. Because it sure isn't a just-fabricated problem with just-fabricated code, it's something that matters in code that is supposed to build and work on the latest stable Rust version.

from rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.