-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 5 pull requests #99231
Rollup of 5 pull requests #99231
Commits on Jul 11, 2022
-
Give a better error when
x dist
fails for an optional toolBefore: ``` thread 'main' panicked at 'Unable to build RLS', dist.rs:42:9 ``` After: ``` thread 'main' panicked at 'Unable to build submodule tool RLS (use `missing-tools = true` to ignore this failure) note: not all tools are available on all nightlies help: see https://forge.rust-lang.org/infra/toolstate.html for more information', dist.rs:43:9 ```
Configuration menu - View commit details
-
Copy full SHA for 9395103 - Browse repository at this point
Copy the full SHA 9395103View commit details
Commits on Jul 12, 2022
-
This is first step in implementing RFC 3216. - Parse `for<'a>` before closures in ast - Error in lowering - Add `closure_lifetime_binder` feature
Configuration menu - View commit details
-
Copy full SHA for 40ae7b5 - Browse repository at this point
Copy the full SHA 40ae7b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97fcead - Browse repository at this point
Copy the full SHA 97fceadView commit details -
Configuration menu - View commit details
-
Copy full SHA for f89ef3c - Browse repository at this point
Copy the full SHA f89ef3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c2dbd62 - Browse repository at this point
Copy the full SHA c2dbd62View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c28484 - Browse repository at this point
Copy the full SHA 0c28484View commit details -
Configuration menu - View commit details
-
Copy full SHA for 577f3c6 - Browse repository at this point
Copy the full SHA 577f3c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ebb852 - Browse repository at this point
Copy the full SHA 3ebb852View commit details -
Add an indirection for closures in
hir::ExprKind
This helps bring `hir::Expr` size down, `Closure` was the biggest variant, especially after `for<>` additions.
Configuration menu - View commit details
-
Copy full SHA for df4fee9 - Browse repository at this point
Copy the full SHA df4fee9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2923b4 - Browse repository at this point
Copy the full SHA d2923b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for b504a18 - Browse repository at this point
Copy the full SHA b504a18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30a3673 - Browse repository at this point
Copy the full SHA 30a3673View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9aa142b - Browse repository at this point
Copy the full SHA 9aa142bView commit details
Commits on Jul 13, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 031b2c5 - Browse repository at this point
Copy the full SHA 031b2c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c7ac816 - Browse repository at this point
Copy the full SHA c7ac816View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b1b38d - Browse repository at this point
Copy the full SHA 3b1b38dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a20834 - Browse repository at this point
Copy the full SHA 5a20834View commit details -
Configuration menu - View commit details
-
Copy full SHA for f94484f - Browse repository at this point
Copy the full SHA f94484fView commit details
Commits on Jul 14, 2022
-
Stabilize
core::ffi:c_*
and rexport instd::ffi
This only stabilizes the base types, not the non-zero variants, since those have their own separate tracking issue and have not gone through FCP to stabilize.
Configuration menu - View commit details
-
Copy full SHA for d431338 - Browse repository at this point
Copy the full SHA d431338View commit details -
Rollup merge of rust-lang#97720 - cjgillot:all-fresh, r=petrochenkov
Always create elided lifetime parameters for functions Anonymous and elided lifetimes in functions are sometimes (async fns) --and sometimes not (regular fns)-- desugared to implicit generic parameters. This difference of treatment makes it some downstream analyses more complicated to handle. This step is a pre-requisite to perform lifetime elision resolution on AST. There is currently an inconsistency in the treatment of argument-position impl-trait for functions and async fns: ```rust trait Foo<'a> {} fn foo(t: impl Foo<'_>) {} //~ ERROR missing lifetime specifier async fn async_foo(t: impl Foo<'_>) {} //~ OK fn bar(t: impl Iterator<Item = &'_ u8>) {} //~ ERROR missing lifetime specifier async fn async_bar(t: impl Iterator<Item = &'_ u8>) {} //~ OK ``` The current implementation reports "missing lifetime specifier" on `foo`, but **accepts it** in `async_foo`. This PR **proposes to accept** the anonymous lifetime in both cases as an extra generic lifetime parameter. This change would be insta-stable, so let's ping t-lang. Anonymous lifetimes in GAT bindings keep being forbidden: ```rust fn foo(t: impl Foo<Assoc<'_> = Bar<'_>>) {} ^^ ^^ forbidden ok ``` I started a discussion here: https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/Anonymous.20lifetimes.20in.20universal.20impl-trait/near/284968606 r? ``@petrochenkov``
Configuration menu - View commit details
-
Copy full SHA for f5e9cb5 - Browse repository at this point
Copy the full SHA f5e9cb5View commit details -
Rollup merge of rust-lang#98315 - joshtriplett:stabilize-core-ffi-c, …
…r=Mark-Simulacrum Stabilize `core::ffi:c_*` and rexport in `std::ffi` This only stabilizes the base types, not the non-zero variants, since those have their own separate tracking issue and have not gone through FCP to stabilize.
Configuration menu - View commit details
-
Copy full SHA for 103b860 - Browse repository at this point
Copy the full SHA 103b860View commit details -
Rollup merge of rust-lang#98705 - WaffleLapkin:closure_binder, r=cjgi…
…llot Implement `for<>` lifetime binder for closures This PR implements RFC 3216 ([TI](rust-lang#97362)) and allows code like the following: ```rust let _f = for<'a, 'b> |a: &'a A, b: &'b B| -> &'b C { b.c(a) }; // ^^^^^^^^^^^--- new! ``` cc ``@Aaron1011`` ``@cjgillot``
Configuration menu - View commit details
-
Copy full SHA for e5a86d7 - Browse repository at this point
Copy the full SHA e5a86d7View commit details -
Rollup merge of rust-lang#99126 - NiklasJonsson:84447/rustc_span, r=p…
…etrochenkov remove allow(rustc::potential_query_instability) in rustc_span Also, avoid sorting before debug output as iteration order can now be relied upon. Related rust-lang#84447
Configuration menu - View commit details
-
Copy full SHA for 85159a4 - Browse repository at this point
Copy the full SHA 85159a4View commit details -
Rollup merge of rust-lang#99139 - jyn514:dist-tool-help, r=Mark-Simul…
…acrum Give a better error when `x dist` fails for an optional tool Before: ``` thread 'main' panicked at 'Unable to build RLS', dist.rs:42:9 ``` After: ``` thread 'main' panicked at 'Unable to build submodule tool RLS (use `missing-tools = true` to ignore this failure) note: not all tools are available on all nightlies help: see https://forge.rust-lang.org/infra/toolstate.html for more information', dist.rs:43:9 ``` Closes rust-lang#85683 by explaining better why the error is expected.
Configuration menu - View commit details
-
Copy full SHA for c1b43ef - Browse repository at this point
Copy the full SHA c1b43efView commit details