Rust Types Team
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Help
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
--- title: "2023-09-11 Planning meeting" tags: weekly-meeting, T-types date: 2023-09-11 url: https://hackmd.io/1S12RB_hQQ24jzNcdman4w --- # 2023-09-11 Planning meeting ## Updates ### AFIT/RPITIT stabilization Plan is to open a stabilization report "any day now". [Draft here.](https://hackmd.io/z8in5DLRT4StYM9Y77yfrg) ### TAITs * pick one of https://github.com/rust-lang/rust/pull/114740, https://github.com/rust-lang/rust/pull/115008 and https://github.com/rust-lang/rust/pull/114933 to fix RPIT and TAIT unsoundness :boom: * needs T-types FCP ### a-mir-formality Most current work is on using rustc to generate formality code via SMIR. Niko to resume hacking and working on docs soon. One key thing I'm thinking about is reflecting the AFIT/RPITIT work, as well as picking up the work I was doing on fuzzing (I may start that over after consulting with some folks who understand fuzzing a bit more). Another direction I'm interested in going is talking more about coinductive trait semantics. ### Trait solver refactor Some progress during the start of august, after which @lcnr was on vacation: overflow handling and some work on the provisional cache, see https://rust-lang.zulipchat.com/#narrow/stream/364551-t-types.2Ftrait-system-refactor/topic/weekly.20progress.20updates for updates. nikomatsakis: I believe there is an intermediate goal of using trait solver for coherence? I'd like to better understand the milestones. ### Trait object upcasting WIP stabilization report: https://hackmd.io/QggP6SJVTa2jb7DjGq0vrQ?both ### Negative impls currently have an FCP in https://github.com/rust-lang/rust/pull/112875, @lcnr still wants to take some time to look at this in more detail. We need to merge Michael's PR https://github.com/rust-lang/rust/pull/112875, properly define the meaning of always applicable and implement that. We need to our (Niko, lcnr and Santiago) meetings about it. ### Polonius lqd has prepared a PR that reimplements the existing borrow-check in a polonius style. The diff is in some ways fairly minimal. Effectively we change: * *from* a map `Region -> Points` that identifies, for each region, the points at which it is live (because some variable is used whose type mentions this region or one that it outlives); * *to* a map `Point -> Loans` that identifies, for each point, the loans that are live (because they flow into a region that appears in the type of some live variable). This code is currently feature gated and "opt in". It imposes some minimal performance overhead, with one case (serde) being up to 6% slower. However, right now this means that it takes 6% more time to do BOTH the old analysis (unchanged) AND the new one. It's not yet clear what time would be if we did JUST the new one. The current plan is to land the PR and then explore optimizations but also to do work that enables a flow-sensitive version (which would then accept more cases and actually deliver user-visible benefit). We have opened a topic highlighting that we would like to onboard at least one new contributor, but [they have to be well-versed and have time to spend](https://rust-lang.zulipchat.com/#narrow/stream/186049-t-types.2Fpolonius/topic/contribution), or else it's likely mot worth the effort yet. ### chalk-ty No new changes ## Nominated issues 4 open: https://github.com/rust-lang/rust/labels/I-types-nominated ### [Tracking issue for dyn upcasting coercion](https://github.com/rust-lang/rust/issues/65991) Stabilization report draft: https://hackmd.io/QggP6SJVTa2jb7DjGq0vrQ?both lcnr: > also, cc @rust-lang/types this feature needs pretty much the most involved builtin impls we have. `Unsize<dyn SuperTrait>: dyn Trait` is non-trivial , see e.g. #114036. I still think this feature is very much desirable and this is a cost we are willing to pay. >To add to the above point, I would like us1 to increase our requirements for stabilizing new features >#114036 dealt with an issue which is both quite subtle - the original approach in that PR added new ways to exploit #57893 - and the general issue of "projection bounds on trait objects have to be handled in some way", was afaict never mentioned anywhere during the stabilization process. >I have some ideas here, like requiring the stabilization report to again fully describe everything that is stabilized, referencing the implementation. I think starting the FCP without any summary of what is stabilized, or stating "implements RFC X", is bound to cause bigger issues going forward. But these ideas are my own and might not necessarily work out too well in practice. The types team will have an in-person meetup this year where I will try to talk about this and I am also interested in the opinions of others here via zulip or in-person. ### [lint incorrect implied bounds in wfcheck](https://github.com/rust-lang/rust/pull/109763) Bevy regresses on ```rust trait Trait: 'static {} impl Trait for &'static () {} struct Foo<T: Trait>(T); impl Foo<&()> {} ``` lcnr: > rn this lints triggers for bevy with afaict no sensible way to silence the lint. Given that we may be able to avoid it by a sensible and small extension to implied bounds, we may be able to avoid this. Discussion here: https://rust-lang.zulipchat.com/#narrow/stream/326866-t-types.2Fnominated/topic/.23109763.3A.20lint.20incorrect.20implied.20bounds.20in.20wfcheck/near/384780130 lcnr's idea is to make this pass: ```rust trait Trait: 'static {} impl Trait for &'static () {} struct Foo<T: Trait>(T); impl Foo<&()> {} ``` ### [Associated type constraints on super traits allowing for unsound transmutation to trait objects](https://github.com/rust-lang/rust/issues/114389) Probably a duplicate of [#57893](https://github.com/rust-lang/rust/issues/57893) ### [Allow dropping `dyn` trait object's principal](https://github.com/rust-lang/rust/pull/114679) Allows us to cast from `dyn Trait + Send` to `dyn Send`. pnkfelix: >Discussed in T-lang triage meeting; our conclusion was that if immediate stabilization is desired, then @rust-lang/types is the right team to own authoring a stabilization report (or, if the effort for a stabilization report is unwarranted, then the PR author can instead add a feature gate), so this can remain S-waiting-on-team, but the relevant team is now T-types. Three options: 1) Stabilize immediately 2) Put under `dyn` upcasting feature 3) Put under separate feature gate @_**Michael Goulet (compiler-errors)|426609** [said](https://rust-lang.zulipchat.com/#narrow/stream/326866-t-types.2Fnominated/topic/.23114679.3A.20Allow.20dropping.20.60dyn.60.20trait.20object's.20principal/near/386672548): > I'll write up a stabilization report here. While I think we should do this for consistency's sake, I don't think it's worth gating behind a feature gate and having it sit in stabilization limbo forever. ## Types FCPs 5 ongoing: https://github.com/rust-lang/rust/issues?q=is%3Aopen+label%3AT-types+label%3Aproposed-final-comment-period ### [Tracking issue for dyn upcasting coercion](https://github.com/rust-lang/rust/issues/65991) Not a t-types FCP ### [Rework negative coherence to properly consider impls that only partly overlap](https://github.com/rust-lang/rust/pull/112875) Allows ```rust impl<T, U> PartialEq<&U> for &T where T: PartialEq<U> {} impl<F> PartialEq<F> for F where F: FnPtr {} ``` compiler-errors: >I think this should go through a T-types FCP since it (partially) commits us to using the new solver. This PR can always be reverted in its totality, and negative coherence is a nightly feature anyways, so any risk is exceedingly thin, and we're not locked into anything per se. >The main points of this FCP: > * The new negative coherence algorithm (see PR description for the change of algorithm) > * Using the new trait solver in negative coherence > * Removing the FnPtr trait hack, by adding a builtin Rigid: !FnPtr impl for all rigid types that are not fn ptrs (in this case, ty::Ref). ### [relax leak-check](https://github.com/rust-lang/rust/pull/112999) Discussed in deep dive: https://rust-lang.zulipchat.com/#narrow/stream/326132-t-types.2Fmeetings/topic/2023-08-28.20higher.20ranked.20subtyping.20and.20leak.20check Seems like it warrants more discussion ### [Check RPIT and AFIT hidden types are well-formed considering regions](https://github.com/rust-lang/rust/pull/114740) ### [wf-check hidden types at definition site](https://github.com/rust-lang/rust/pull/114933) ### [Stabilize `impl_trait_projections`](https://github.com/rust-lang/rust/pull/115659) ## Deep dive planning 12 proposals: https://github.com/rust-lang/types-team/issues?q=is%3Aissue+is%3Aopen+label%3Adeep-dive-proposal

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully