Rust Lang 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
    • Invite by email
      Invitee

      This note has no invitees

    • 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
    • Note Insights New
    • Engagement control
    • Make a copy
    • 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 Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy 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
  • Invite by email
    Invitee

    This note has no invitees

  • 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
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- title: Triage meeting 2021-12-14 tags: triage-meeting --- # T-lang meeting agenda * Meeting date: 2021-12-14 ## Attendance * Team members: Josh, Scott, Niko, Taylor, Felix * Others: simulacrum, Lokathor ## Meeting roles * Action item scribe: simulacrum * Note-taker: nikomatsakis ## Scheduled meetings * Dec 15th: Lang team check-in * Dec 22nd: Unclear * https://github.com/rust-lang/lang-team/issues/129 ## Announcements or custom items * nikomatsakis has been working on a document about dyn upcast: * https://rust-lang.github.io/dyn-upcasting-coercion-initiative/design-discussions/upcast-safety-2.html * [Zulip chat](https://rust-lang.zulipchat.com/#narrow/stream/144729-wg-traits/topic/dyn.20upcasting.202021-12) * joshtriplett: RFC pull request was just made to rename Stream to AsyncIterator: https://github.com/rust-lang/rfcs/pull/3208/ * Not directly a lang item, but intersecting interests of a lot of people here! ## Action item review * [Action items list](https://hackmd.io/gstfhtXYTHa3Jv-P_2RK7A) ## Pending lang team project proposals ### "negative impls integrated into coherence" lang-team#96 **Link:** https://github.com/rust-lang/lang-team/issues/96 ### "Deprecate target_vendor " lang-team#102 **Link:** https://github.com/rust-lang/lang-team/issues/102 ### "Async fundamentals initiative" lang-team#116 **Link:** https://github.com/rust-lang/lang-team/issues/116 ### "Attribute for trusted external static declarations" lang-team#118 **Link:** https://github.com/rust-lang/lang-team/issues/118 ### "Prototype Sync & Async Iterator Items (Minimal generators)" lang-team#121 **Link:** https://github.com/rust-lang/lang-team/issues/121 ### "Support platforms with size_t != uintptr_t" lang-team#125 **Link:** https://github.com/rust-lang/lang-team/issues/125 ### "Positional Associated Types" lang-team#126 **Link:** https://github.com/rust-lang/lang-team/issues/126 ### "Heap allocations in constants" lang-team#129 **Link:** https://github.com/rust-lang/lang-team/issues/129 ## PRs on the lang-team repo None. ## RFCs waiting to be merged None. ## Proposed FCPs **Check your boxes!** ### "Tracking issue for RFC 2115: In-band lifetime bindings" rust#44524 **Link:** https://github.com/rust-lang/rust/issues/44524 ### "Change location of where clause on GATs" rust#90076 **Link:** https://github.com/rust-lang/rust/pull/90076 ## Active FCPs ### "Relax priv-in-pub lint on generic bounds and where clauses of trait impls." rust#90586 **Link:** https://github.com/rust-lang/rust/pull/90586 ### "negative impls integrated into coherence" lang-team#96 **Link:** https://github.com/rust-lang/lang-team/issues/96 * This is basically all set but we just need to create the real tracking issue. * There is a repo with actual content https://rust-lang.github.io/negative-impls-initiative/ ### "Positional Associated Types" lang-team#126 **Link:** https://github.com/rust-lang/lang-team/issues/126 * Needs a tracking issue, too. ## P-critical issues None. ## Discussed RFCs, PRs, and issues ### "Relax priv-in-pub lint on generic bounds and where clauses of trait impls." rust#90586 **Link:** https://github.com/rust-lang/rust/pull/90586 In FCP, doesn't need to be nominated. Nomination removed. ### "Make specifying repr optional for fieldless enums" rust#88203 **Link:** https://github.com/rust-lang/rust/pull/88203 * One of that "group" of things we've been looking at. * jswrenn was going to "say something" here but pnkfelix didn't finish following up yet. * [jswrenn does have a long comment here](https://github.com/rust-lang/rust/issues/60553#issuecomment-984290718) * Removing nomination as the next immediate step is the action item. ### "Allow using $:literal containing integer to index into a tuple" rust#91166 **Link:** https://github.com/rust-lang/rust/pull/91166 * Discussed previously, petrochenkov and dtolnay are in discussion. * nikomatsakis: I agree with the goal as described in the PR header * joshtriplett: should we post a statement that we agree with the goal but would like dtolnay/petrochenkov to figure out the best strategy * scottmcm: feels like the kind of thing where "if petrochenkov/dtolnay agree, I would agree" * pnkfelix: they don't yet, right? * joshtriplett: no, they both understand how it works, and are disagreeing about the best next step * pnkfelix: what about the behavior of `0.0`? * nikomatsakis: `x.(0)` is another edge case that petrochenkov raised * joshtriplett: I don't think he was suggesting it should work, * scottmcm: I'd like to discuss the float thing. I'm not sure what my "mental expectation" is here.... * nikomatsakis: that gives an error, and dtolnay * scottmcm: but why is that an error, and how is it different from 0? * nikomatsakis: but 3 levels is definitely an error, right? ```rust macro_rules! m { ($thing:ident . $float:literal) => { $thing . $float }; } fn main() { let x = ((('x',),),); let _ = m!(x.0.0.0); } ``` * nikomatsakis: I think that my 'mental model' for how `x.0.0` works is that `0.0` is a bunch of small bits that are built up into a `f32` * joshtriplett: I don't think that is how it works today * nikomatsakis: yeah, and I think we can't fix that easily (because proc macros can see the difference etc) * nikomatsakis: there is no backwards compatiblity question here, right? specifically, it will always take the same arm, it's just a question of whether the match arm gets an error once it compiles. * joshtriplett: potentially a *surprising* gap then, but not back compat. * scottmcm: I think I would not expect floats to work, but by that same logic I don't expect ints to work * nikomatsakis: what happens with tt.... this works ```rust macro_rules! m { ($thing:ident . $float:tt) => { $thing . $float }; } fn main() { let x = ((('x',),),); let _ = m!(x.0.0); } ``` pnkfelix ``$(tt).+``: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=c3331fa3b172f545d3b54e043078f80c * nikomatsakis: it fails because of the synthetic parens we introduce to manage to avoid `$a = a + b` having weird behavior here.. ```rust macro_rules! m { ($a:expr) => { $a * 3 }; } ``` * nikomatsakis: I think I agree with scott that either you can see a literal as equivalent to its underlying token or you can't; so the `0.0` example should work * simulacrum: I could see it being somewhat different. A `0` is kind of viewable more as an "identifier" than a float to me. I feel like accepting `0` as a token allows you to do whatever you want, but accepting it as a literal you have to use it as a literal. * nikomatsakis: I'm not sure if dtolnay is fixing the problem the right way * cramertj: it seems like they're not trying to match a literal, that's the wrong way to do that thing * pnkfelix: as in, what should the category be for the projection argument? * cramertj: right, they're literally not matching a literal here, they're matching a "post expression selector" or something --- you could imagine something that supports indexing operations, for example. I assume they didn't intend to support that here, but it seems like they're trying to do a specific custom thing that isn't what literal is for. * scottmcm: certainly I wouldn't expect `0.0e0` to work * joshtriplett: Or `tuplename."string literal"` * nikomatsakis: it may be that they're trying to have different arms for "tuple field" vs "other field", and hence they're not using `tt` * the main reason I can see to not use tt is if you really want *tuple fields* here * cramertj: even so, it seems like literal is not what you want, it's a hack to get that behavior * nikomatsakis: I feel like the right fix is new forms of fragment specifics for different kinds of field names * e.g. named field, numbered field, method call, etc * code snippet: https://github.com/dtolnay/anyhow/blob/1.0.51/src/ensure.rs#L306-L312 * pnkfelix: we should go back to dtolnay and see what the use case is * joshtriplett: who will summarize into the issue? * scottmcm bravely steps up :superhero: ### "remove pref_align_of intrinsic" rust#90877 **Link:** https://github.com/rust-lang/rust/pull/90877 * Lokathor: I recall the result of last meeting was "leave this on nightly, why the urgency" * can we comment on this and un-nominate? * it has a use case (c2rust) * nikomatsakis: I'd be ok with that, I'd be opposed to removing it unless there's a good alternative to that use case * joshtriplett: if someone argues it can't be stable, that'd be another good argument to remove, but not obvious why we couldn't stabilize it * Action Item: joshtriplett to summarize and de-nominate ### "Unreachable code is not borrow-checked" rust#91377 **Link:** https://github.com/rust-lang/rust/issues/91377 * nikomatsakis: I think this is working as designed, for better or worse, it was hard to decide precisely what set of errors you were going to get in code like that and we decided to just run with it. ### "Mark defaulted `PartialEq`/`PartialOrd` methods as const" rust#91439 **Link:** https://github.com/rust-lang/rust/pull/91439 * Adds a (perma unstable) `#[default_method_body_is_const]` attribute * We believe the behavior of this is * whole trait impl can be marked const (or not) * this attribute means "if the whole impl is marked const, this default won't break it" * i.e., you get to assume current trait impl is const, and you check that fn is const under that assumption * cramertj: alternative would be track which methods get called and know that it is const if those functions are const * lokathor: I believe individual const fns off of the trait would be a potential future extension * cramertj: right, but that's probably soemthing we want, right? * joshtriplett: all this issue is asking us is * are we prepared to commit to the idea that if you impl Eq and you `eq` method is const... * cramertj: ...but that's not actually the condition, it's actually whether the impl is const * nikomatsakis: I also don't think there's any commitment; if we stabilized const impls, then we would be committed, but we haven't yet * joshtriplett: second paragraph: * "if we stabilized any const traits that used this feature, we're commiting to having this mechanism or some other mechanism that makes this feature possible" * "in the meantime, until we stabilize a const trait, we're not committing to anything" * nikomatsakis: I'd like to know how we're recording these kinds of implications, I know there's a repo * joshtriplett: do we need an FCP or just :thumbsup: * nikomatsakis: I think a :thumbsup: suffices, this feels like a "check in" from active initiative that doesn't require full consensus * joshtriplett: then perhaps we should ask the question of where the assumption is recorded that we need to evaluate this before stabilizing const trait impls * nikomatsakis: let's say we're good with it as long as the assumptions are recorded somewhere for future evaluation * simulacrum: I want to write a comment! * joshtriplett: No me! I'm already writing it! * nikomatsakis: :brain-exploding: 🤯 ETOOMANYVOLUNTEERS?! what just happened?! ### "New declarative macros, functions and fields not being recognized" rust#91249 **Link:** https://github.com/rust-lang/rust/issues/91249 * nikomatsakis: Seems like this is saying "we need an RFC for hygiene, it is clear that strictly saying 'all names are local to the macro' is going to be confusing when you have non-lexical lookup like this one". * joshtriplett: I feel like we should tag this as the tracking issue * nikomatsakis: I feel like this is obvious-- how is type-based dispatch going to work. Also how are things non-hygienic. * joshtriplett: well, you might want to have methods that are "hidden" outside the macro, right? * scottmcm: isn't that a fn? * nikomatsakis: not necessarily, but I feel like if I were going to enumerate a list of things, I would defintiely have put "type-based dispatch" on the list of things to consider. * scottmcm: I think that because I can call (or implement) a trait method without having imported its name specifically, it doesn't feel like a hygiene issue to me. * joshtriplett: we need to link this from macros 2.0 tracking issue and either close it or leave it open, but de-nominate it. * https://github.com/rust-lang/rust/issues/46342 is basically the same bug, just different context * see also https://github.com/rust-lang/rfcs/pull/2498 ## Nominated RFCs, PRs and issues

    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