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-05-25 tags: triage-meeting --- # T-lang meeting agenda * Meeting date: 2021-05-25 ## Attendance * Team members: Niko, Josh, Taylor, Felix * Others: simulacrum, Mara ## Meeting roles * Action item scribe: simulacrum * Note-taker: nikomatsakis ## Scheduled meetings - Done: "Generators planning" [lang-team#92](https://github.com/rust-lang/lang-team/issues/92) - Done: "May updates" [lang-team#93](https://github.com/rust-lang/lang-team/issues/93) - Tomorrow: "Rust language "guiding principles"" [lang-team#91](https://github.com/rust-lang/lang-team/issues/91) ## Action item review * [Action items list](https://hackmd.io/gstfhtXYTHa3Jv-P_2RK7A) ## Pending lang team project proposals ### "MCP: Allowing the compiler to eagerly drop values" lang-team#86 **Link:** https://github.com/rust-lang/lang-team/issues/86 - Pending action item: Niko to make sure we have a lang team design note on eagerly drop https://github.com/rust-lang/lang-team/issues/86 - Niko: started working on this. Will be done soon. - No discussion needed. ## PRs on the lang-team repo ### Draft design notes #### "Initial draft of copy ergonomics design note" lang-team#62 **Link:** https://github.com/rust-lang/lang-team/pull/62 #### "Autoref/autoderef for operators" lang-team#63 **Link:** https://github.com/rust-lang/lang-team/pull/63 #### "Auto trait design note" lang-team#69 **Link:** https://github.com/rust-lang/lang-team/pull/69 #### "Add design notes for function-type `Default` implementation discussion" lang-team#71 **Link:** https://github.com/rust-lang/lang-team/pull/71 #### "Add draft of variadic notes" lang-team#76 **Link:** https://github.com/rust-lang/lang-team/pull/76 ## Proposed FCPs **Check your boxes!** * Mark deleted several from here - the ones needing discussion are nominated, so will be below. Several have outstanding action items (mostly on Niko). ### "RFC: Add `target` configuration" rfcs#2991 **Link:** https://github.com/rust-lang/rfcs/pull/2991 * Blocked on consideration of more ergonomic target configuration as outlined [here](https://github.com/rust-lang/rfcs/pull/2991#discussion_r496090143) * would be an alternative to permitting specification of explicit target, potentially seen as avoiding negative effects of overly-specific cfgs. ## Active FCPs ### "rustc: Allow safe #[target_feature] on wasm" rust#84988 **Link:** https://github.com/rust-lang/rust/pull/84988 * Trailing comment by Ralf: We should ask for clarification of the LLVM spec that this is not UB at the LLVM level. Could end up like other LLVM UB but not Rust UB bugs; Ralf thinks this is likely a reasonable tradeoff to make. ## P-critical issues ### "ICE when reifying function pointers to copy / copy_nonoverlapping using an if" rust#84297 **Link:** https://github.com/rust-lang/rust/issues/84297 * With some intrinsics, the way they are implemented, you can't get an actual function pointer * That can cause breakage when something becomes an intrinsic where it used to be a wrapper * We can fix this by always making things wrappers around intrinsics, but this impacts codegen etc * Or we can make the compiler generate shims automatically Example: ```rust= fn main() { let _unused = if true { core::ptr::copy::<i32> } else { core::ptr::copy_nonoverlapping::<i32> }; } ``` * Niko: I think we should just get rid of intrinsics as a concept and have lang items, and then use eddyb's trick to generate shims (direct calls are special indirect calls make a function pointer): ```rust= #[lang(likely)] fn likely(...) { likely(...) } ``` * There's a distinction that some functions (e.g., `copy`) make sense to invoke by pointer and some don't (e.g., `likely`). * It doesn't make much sense to invoke `likely` by pointer, but then it doesn't hurt, right? * Meeting summary: * Lang would prefer that functions act like functions, and hence that the compiler can generate wrappers. * Not our purview for whether this is fixed in the compiler or not. * Question: Can all intrinsics be represented with a fn pointer -- notably not sure about SIMD? * Mark to leave comment ## Nominated RFCs, PRs and issues ### "RFC: Overconstraining and omitting `unsafe` in impls of `unsafe` trait methods" rfcs#2316 **Link:** https://github.com/rust-lang/rfcs/pull/2316 * [matklad requested real world examples](https://github.com/rust-lang/rfcs/pull/2316#issuecomment-823507045) * originally motivated by the future trait, but Pin made that unnecessary * Primarily blocked on concerns about learnability * (but also ~no checkboxes ticked) * Proposal to shift to trusted/unsafe model, perhaps. * Meaning of unsafe is very context dependent. * But this RFC in some sense codifies the relationship more clearly * It makes them *unsafe to call* and not *unsafe to implement* * How does this combine with requiring an unsafe block inside the method? * You can put an unsafe block inside the function but not have an unsafe on the impl * That will compile * But is this different from any other unsafe function? * cramertj: I find it weird to have to write unsafe when there is not specific condition to write * Niko: I'm fairly convinced this is not making the space worse, though I'm also convinced trusted could be useful * scott: +1 to the idea of splitting up the keywords better here. Would be nice even just to make it easier to say out loud without the confusion. And with `try`/`?` and `async`/`await` it seems quite reasonable to have `unsafe`/`trusted` or similar for introduce and discharge. (Though `unsafe` isn't "carried" so it's not a perfect parallel.) ### "Calling methods on generic parameters of const fns" rfcs#2632 **Link:** https://github.com/rust-lang/rfcs/pull/2632 * Sort of not-clearly blocked. Really old pending FCP (since April 2019) - https://github.com/rust-lang/rfcs/issues/2632#issuecomment-481395097 * May make sense to close this RFC, in favor of a fresh one given all the changes since then, at least to start a fresh thread. ### "Tracking issue for RFC 2523, `#[cfg(version(..))]`" rust#64796 **Link:** https://github.com/rust-lang/rust/issues/64796 * Ongoing discussion of cfg(version(...)) stabilizing before cfg(accessible(...)) * https://github.com/rust-lang/rust/issues/64796#issuecomment-844173493 * One possibility: implementing a subset of cfg(accessible) that requires the accessibility item be in std/core/alloc * cramertj: stdlib + rustc? * josh: it'd be nice if we had feature detection for the language, but right now cfg(version) is the only thing we have for that * we could use the names of feature gates but we dropped that from the earlier proposals due to opposition * I'd still like to see it, but less concerned about blocking cfg(version) on that * utility of cfg for language features is much lower because of the fact that we have to be able to parse the item body * mara: you can avoid it with an identity macro though * mara: people use versioning to check for const -- that's not possible with cfg(accessible), right? * josh: that doesn't work now, is that an important use case? * mara: a lot of scripts use versioning for that (I can make myself const if my callees are const) * taylor: Feel like we should stabilize -- already immediately useful. Crates can't use cfg(version) until it's in their MSRV window as is. * niko: +1, given that build.rs versioning is in active use, the utility of delaying seems low to me ### "Stabilize "RangeFrom" patterns" rust#83918 **Link:** https://github.com/rust-lang/rust/pull/83918 ### "Uplift the invalid_atomic_ordering lint from clippy to rustc" rust#84039 **Link:** https://github.com/rust-lang/rust/pull/84039 ### "Deny float matches" rust#84045 **Link:** https://github.com/rust-lang/rust/pull/84045 ### "ICE when reifying function pointers to copy / copy_nonoverlapping using an if" rust#84297 **Link:** https://github.com/rust-lang/rust/issues/84297 ### "Add `expr202x` macro pattern" rust#84364 **Link:** https://github.com/rust-lang/rust/pull/84364 ### "Allow struct and enum to contain inner attrs" rust#84414 **Link:** https://github.com/rust-lang/rust/pull/84414 ### "stabilize member constraints" rust#84701 **Link:** https://github.com/rust-lang/rust/pull/84701 * r+'d ### "implement `Default` for all arrays" rust#84838 **Link:** https://github.com/rust-lang/rust/pull/84838 ### "add back support for inner attributes on non-block expressions?" rust#84879 **Link:** https://github.com/rust-lang/rust/issues/84879 ### "rustc: Allow safe #[target_feature] on wasm" rust#84988 **Link:** https://github.com/rust-lang/rust/pull/84988 ### "Re-add support for parsing (and pretty-printing) inner-attributes in match body" rust#85193 **Link:** https://github.com/rust-lang/rust/pull/85193 ### "Stabilize RFC 2345: Allow panicking in constants" rust#85194 **Link:** https://github.com/rust-lang/rust/issues/85194 ### "Ignore derived Clone and Debug implementations during dead code analysis" rust#85200 **Link:** https://github.com/rust-lang/rust/pull/85200 ### "Check for union field accesses in THIR unsafeck" rust#85263 **Link:** https://github.com/rust-lang/rust/pull/85263

    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