Comments (4)
Thanks for improving my poor issue title 😄 @fmease 🙏
from rust.
NB By the way, lazy_type_alias
implements the desired semantics. See its tracking issue: #112792.
CC #21903.
from rust.
Right, that makes sense (I just had to do some advertising :P).
Yeah, the lint isn't super smart atm. This isn't the only case where bounds on type parameters of (eager) type aliases actually have a user-visible effect. Outlives-bounds for example may affect trait object lifetime defaults (we have an A-lint
issue for that somewhere).
from rust.
Good to know there is progress on the "make type
aliases work as expected" front 🙂.
But to avoid confusion, I do want to clarify that this is not what this issue is about, this one is a diagnostics issue, w.r.t. how type
aliases currently work. That is, when using <T as Trait>::Assoc
in the rhs of a type
alias, this already, currently, enforces that T : ?Sized + Trait
be true (and when Trait : Sized
, we end up with T : Trait
).
Given that, we should be allowed to add such bounds without having Rust warn us about our bounds being ignored, because given the rhs, they cannot be.
from rust.
Related Issues (20)
- `#[used]` attribute on static items in `extern` block has suboptimal error message HOT 1
- Build fail for WebAssembly on Windows with wasm-pack HOT 1
- Crater runs for 1.80 HOT 21
- assertion `left == right` failed HOT 1
- PR #113525 (Dynamically size sigaltstk in stdI) adds dependency on `libc::getauxval` breaking linaro-1.13.1-4.7 compatibility HOT 4
- `doc(inline)` overrides `doc(hidden)`, but only for crates HOT 1
- Inline ASM: Registers in the `dreg_low16` register class fail cause compilation failures when the `d32` target feature is disabled HOT 1
- Tracking Issue for `core::clone::CloneToUninit` trait HOT 6
- trying to get pointer to extern typed field causes runtime panic HOT 5
- Tracking Issue for `-Z verbose-asm`
- `unreachable_code` detection and/or lint seems broken HOT 1
- Internal Compiler Error when using extern types HOT 7
- Tracking Issue for consolidating command invocations in bootstrap
- electric bug display with seismic detector HOT 1
- Can `DynMetadata` be made constructable? HOT 1
- ICE: type map: `left == right`
- C-variadic functions may not be extern "C-unwind" HOT 3
- Tracking Issue for `mpmc`
- rustc panicked: [evaluate_obligation] evaluating trait selection obligation HOT 2
- Mistaken type annotation on documentation page for HashMap HOT 3
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.