Comments (5)
It's likely due to 66d7cfd.
This isn't probably worth tracking as a regression since fundamental should probably be marked an internal feature, since the semantics of #[fundamental]
(especially its interaction w blankets and rustc_deny_explicit_impl
impls) is kinda a detail we shouldn't expose...
from rust.
My reading of that issue does not lead me to believe this chance was intentional, hence a 'regression', unless the term 'regression' isn't applicable to nightly-to-nightly.
fwiw nightly-to-nightly is considered a regression usually, you just were indeed using what I am... pretty sure was always intended to be a perma-unstable API?
from rust.
Maybe someone knows why the same issue doesn't affect Box, which is also #[fundamental], generic, and implements PartialEq. That could be a workaround.
Oh, right; because of negative coherence. We have an implicit impl !FnPtr
for most types built-in to the compiler.
@finnbear: You can add #![feature(with_negative_coherence)]
to your crate to make this work.
from rust.
You can add #![feature(with_negative_coherence)] to your crate to make this work.
Thanks very much, I think this solves my problem (cannot be 100% yet since still dealing with new ICE's). Closing as there is less motivation to restore the old behavior now that a workaround exists.
from rust.
Regardless of stability, I'm under the impression that the old behavior is desirable and recoverable (such as by ignoring conflict implementations of FnPtr
if impl FnPtr
is truly disallowed). However, if there is intent or motivation to keep the new behavior, you're right that it wouldn't violate any stability guarantee.
Maybe someone knows why the same issue doesn't affect Box
, which is also #[fundamental]
, generic, and implements PartialEq
. That could be a workaround.
from rust.
Related Issues (20)
- Consider using random keys for incr. comp. hashing HOT 2
- E0050 emitted unexpectedly on missing `:`
- Duplicated label on E0381 HOT 1
- ### Summary
- <!--
- Unnecessary alloca Without Optimization Flags HOT 4
- Can't cast higher-ranked safe fn to (not higher-ranked) unsafe fn ptr
- Regression in clone impl of enum with variant that has a field with a bivariant substitution HOT 3
- A different case of `implementation of "FnOnce` is not general enough" HOT 2
- ICE compiling internal project
- Weird AVX 512 code generated with std::simd when using -Zbuild-std
- Long ty names written to disk can leak username info in paths
- Unify/streamline long type name written to disk mechanism
- Build to AArch64 errors with "error: fixup value out of range"
- Incorrect relative jump (rjmp) code generation in latest nightly release for AVR toolchain HOT 1
- `unused_qualification` breaks code for older rust versions HOT 1
- We should document the exact minimum versions of build tools required to build a given Rust toolchain
- Rust debugger crashes with error "Library not loaded: @rpath/libunwind.1.dylib" on m1 mac HOT 2
- `--emit metadata` produces less error messages with some targets
- Tracking Issue for `ptr::fn_addr_eq`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust.