HackMD
    • Create new note
    • Create a note from template
      • 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
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me 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
    • Save as template
    • 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 Create Help
Create Create new note Create a note from template
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
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me 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
# T-lang meeting agenda * Meeting date: 2021-02-02 * [Action items document](https://hackmd.io/gstfhtXYTHa3Jv-P_2RK7A) * [Watch the recording](https://youtu.be/XXuARxRMByQ) ## Attendance * Team members: nikomatsakis, scottmcm, pnkfelix * Others: ## Pending proposals - Discuss policy proposals - Switch to compiler-team process: meta-design-meeting once a month - At start of that meeting, review active project groups; this also allows for them to be added to one of the month's meetings - Handling blocking concerns, and requiring a "second" for them. (Does not indicate agreement with the concern, but indicates desire to hear more about the concern.) - Will handle these via FCP on a lang-team issue - "MCP: Deref Patterns" [lang-team#77](https://github.com/rust-lang/lang-team/issues/77) - [Charter pending](https://github.com/rust-lang/lang-team/pull/78) ## Project board review Review the [Lang team project board](https://github.com/rust-lang/lang-team/projects/2) and get updates ## Nominated RFCs - No nominated RFCs this time. ## P-high issues on rust-lang/rust - "regression 1.50: deny after forbid breaks build" [rust#80988](https://github.com/rust-lang/rust/issues/80988) - "beta regression: forbid(warnings) interacts poorly with common derives." [rust#81218](https://github.com/rust-lang/rust/issues/81218) - Fix is in [PR #81556](https://github.com/rust-lang/rust/pull/81556) - the effect is that if you have a `forbid(group)` and later do a `allow(lint)` where `lint` is in `group`, you get a FCW but the allow takes effect - Notes for future: - If we convert a lint into a group, it should be exempted - We should move swiftly to make this a hard error as there wasn't much breakage - As soon as we address `derive` triggering it ## Nominated PRs and issues on rust-lang/rust - "Tracking issue for RFC 2535, 2530, 2175, "Or patterns, i.e `Foo(Bar(x) | Baz(x))`"" [rust#54883](https://github.com/rust-lang/rust/issues/54883) - Pending action item: scottmcm to look at stabilization report - Linked from https://github.com/rust-lang/rust/pull/79278 : https://hackmd.io/oczPRxyBSKOAojC1Dgxupw - "Lint for unused borrows as part of `UNUSED_MUST_USE`" [rust#76894](https://github.com/rust-lang/rust/pull/76894) - Pending action item: nikomatsakis - "CString lifetime warning incorrectly fires" [rust#78691](https://github.com/rust-lang/rust/issues/78691) - Needs the lang team to make a call on this. - False warning on lint for this line - `gecko_profiler_register_thread(CString::new("foo").unwrap().as_ptr());` - the `CString::new()` is being converted to a raw pointer; that raw pointer is valid until end of statement - Whether this is a false positive depends on what `gecko_profiler_register_thread` - What is expected rewrite? - Put `CString::new` into a let, but that is also quite possibly wrong (e.g., ) - Lint on: - `let x = CString::new("foo").unwrap().as_ptr();` -- good, guaranteed wrong - `let x = Some(CString::new("foo").unwrap().as_ptr());` - `let x = Foo { field: CString::new("foo").unwrap().as_ptr() };` - `let x = (CString::new("foo").unwrap().as_ptr(), ...)` - Not lint on: - `let x = foo(CString::new("foo").unwrap().as_ptr());` - `let x = foo(Some(CString::new("foo").unwrap().as_ptr()));` - `let x = foo(x.as_ptr())` where `foo` is the identity function - Resolution: josh to comment Current output: ``` warning: getting the inner pointer of a temporary `CString` --> src/main.rs:9:69 | 9 | gecko_profiler_register_thread(CString::new("foo").unwrap().as_ptr()); | ---------------------------- ^^^^^^ this pointer will be invalid | | | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime | = note: `#[warn(temporary_cstring_as_ptr)]` on by default = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned = help: for more information, see https://doc.rust-lang.org/reference/destructors.html ``` - "expand/resolve: Turn `#[derive]` into a regular macro attribute" [rust#79078](https://github.com/rust-lang/rust/pull/79078) - In FCP for 3 more days, no need to review. Can merge after FCP and after petrochenkov fixes merge conflicts - "Stabilize `unsafe_op_in_unsafe_fn` lint" [rust#79208](https://github.com/rust-lang/rust/pull/79208) - Nominated for discussion, would default to allow - Deferring the question of whether to change the default/recommended style - Action item: nikomatsakis to request stabilization report - ""!" is the only type that is unsafe to raw-ptr-deref into a "_" pattern" [rust#79735](https://github.com/rust-lang/rust/issues/79735) - "Unsafe checking skips pointer dereferences in unused places" [rust#80059](https://github.com/rust-lang/rust/issues/80059) - Observation: - initialization is inherently a control-flow based analysis, which implies - `panic!(); *foo`, the `*foo` is dead code, it's hard to say whether (we care that) `foo` is initialized or not - `let foo: bool; let _ = *foo;` doesn't involve dead code - Consensus: - [We already have precedent that unsafe checks apply in dead code](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=20b3738f2625185d9a4d1215b8b729cd) - "Promote 2018 warn lints to deny in Rust 2021" [rust#80165](https://github.com/rust-lang/rust/issues/80165) - Conclusion from previous week: we will break these out into separate PRs - Action item: Ryan to create those PRs - Question: should we warn on these lints in prior editions? - Action item: Niko to write up pros/cons - "make const_err a future incompat lint" [rust#80394](https://github.com/rust-lang/rust/pull/80394) - Ralf's grand plan to make const-err less painful - This step: makes it a future incompatibility lint to have constants that cannot be evaluated - [Mark's summary](https://github.com/rust-lang/rust/pull/80394#issuecomment-7590986900) - Josh to leave comment saying "go for it" - Done - "relax adt unsizing requirements" [rust#80726](https://github.com/rust-lang/rust/pull/80726) - [lcnr added a write-up](https://github.com/rust-lang/rust/pull/80726#issuecomment-765906358) - `struct Foo<T: ?Sized> { x: T }` - `Arc<Foo<[u8; 32]>>` want to permit coercion to `Arc<Foo<[u8]>>` - `Arc<T>` can be coerced to `Arc<U>` if `T: Unsize<U>` or something like that - `struct Foo2<T: ?Sized> { a: T, x: T }` - `Foo2<[u8]>` would affect type of both fields - `struct A<T, U: ?Sized>(T, B<T, U>);` - `struct B<T, U: ?Sized>(T, U);` - Propose feature-gating -- on principle, to give time - Felix to leave comment - "Visit more targets when validating attributes" [rust#80920](https://github.com/rust-lang/rust/pull/80920) - Validating more cases where we were failing to check for unexpected attributes - e.g., `#[inline] const T: u32`, these were being silently ignored before - We now get an error, breaking change, crater run, 3 crates affected - Affected crates: - olm-rs-1.0.0 -- real regression on the latest version - Conclusion: - Move forward (we may want to revisit our policy but not on this instance) - Ping authors of olm-rs crate (and perhaps other affected crates) -- done - Action item: - Josh to file issue - https://gitlab.gnome.org/jhaye/olm-rs/-/issues/37 - Mark to leave a comment - "don't gratuitously error on tests returning Result with lifetime" [rust#80934](https://github.com/rust-lang/rust/pull/80934) - "Stabilize remaining integer methods as `const fn`" [rust#80962](https://github.com/rust-lang/rust/pull/80962) - "beta regression: forbid(warnings) interacts poorly with common derives." [rust#81218](https://github.com/rust-lang/rust/issues/81218) - Already addressed above in P-high issues - "Allow specifying alignment for functions" [rust#81234](https://github.com/rust-lang/rust/pull/81234) - "Support forwarding caller location through trait object method call" [rust#81360](https://github.com/rust-lang/rust/pull/81360) - "Allow casting mut array ref to mut ptr" [rust#81479](https://github.com/rust-lang/rust/pull/81479)

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