-
Notifications
You must be signed in to change notification settings - Fork 883
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
Subtree push with 1.77.0 nightly 2023-12-28 #5994
Subtree push with 1.77.0 nightly 2023-12-28 #5994
Commits on Dec 14, 2023
-
Split
Handler::emit_diagnostic
in two.Currently, `emit_diagnostic` takes `&mut self`. This commit changes it so `emit_diagnostic` takes `self` and the new `emit_diagnostic_without_consuming` function takes `&mut self`. I find the distinction useful. The former case is much more common, and avoids a bunch of `mut` and `&mut` occurrences. We can also restrict the latter with `pub(crate)` which is nice.
Configuration menu - View commit details
-
Copy full SHA for 7045cad - Browse repository at this point
Copy the full SHA 7045cadView commit details
Commits on Dec 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c7992af - Browse repository at this point
Copy the full SHA c7992afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7738d69 - Browse repository at this point
Copy the full SHA 7738d69View commit details -
Configuration menu - View commit details
-
Copy full SHA for cce3961 - Browse repository at this point
Copy the full SHA cce3961View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef315b3 - Browse repository at this point
Copy the full SHA ef315b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca2472e - Browse repository at this point
Copy the full SHA ca2472eView commit details
Commits on Dec 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0315daa - Browse repository at this point
Copy the full SHA 0315daaView commit details
Commits on Dec 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for df30a7a - Browse repository at this point
Copy the full SHA df30a7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 60419aa - Browse repository at this point
Copy the full SHA 60419aaView commit details
Commits on Dec 22, 2023
-
Auto merge of #119163 - fmease:refactor-ast-trait-bound-modifiers, r=…
…compiler-errors Refactor AST trait bound modifiers Instead of having two types to represent trait bound modifiers in the parser / the AST (`parser::ty::BoundModifiers` & `ast::TraitBoundModifier`), only to map one to the other later, just use `parser::ty::BoundModifiers` (moved & renamed to `ast::TraitBoundModifiers`). The struct type is more extensible and easier to deal with (see [here](https://github.com/rust-lang/rust/pull/119099/files#r1430749981) and [here](https://github.com/rust-lang/rust/pull/119099/files#r1430752116) for context) since it more closely models what it represents: A compound of two kinds of modifiers, constness and polarity. Modeling this as an enum (the now removed `ast::TraitBoundModifier`) meant one had to add a new variant per *combination* of modifier kind, which simply isn't scalable and which lead to a lot of explicit non-DRY matches. NB: `hir::TraitBoundModifier` being an enum is fine since HIR doesn't need to worry representing invalid modifier kind combinations as those get rejected during AST validation thereby immensely cutting down the number of possibilities.
Configuration menu - View commit details
-
Copy full SHA for 5085bf5 - Browse repository at this point
Copy the full SHA 5085bf5View commit details -
Auto merge of #118847 - eholk:for-await, r=compiler-errors
Add support for `for await` loops This adds support for `for await` loops. This includes parsing, desugaring in AST->HIR lowering, and adding some support functions to the library. Given a loop like: ```rust for await i in iter { ... } ``` this is desugared to something like: ```rust let mut iter = iter.into_async_iter(); while let Some(i) = loop { match core::pin::Pin::new(&mut iter).poll_next(cx) { Poll::Ready(i) => break i, Poll::Pending => yield, } } { ... } ``` This PR also adds a basic `IntoAsyncIterator` trait. This is partly for symmetry with the way `Iterator` and `IntoIterator` work. The other reason is that for async iterators it's helpful to have a place apart from the data structure being iterated over to store state. `IntoAsyncIterator` gives us a good place to do this. I've gated this feature behind `async_for_loop` and opened #118898 as the feature tracking issue. r? `@compiler-errors`
Configuration menu - View commit details
-
Copy full SHA for b29b02c - Browse repository at this point
Copy the full SHA b29b02cView commit details
Commits on Dec 23, 2023
-
Lots of vectors of messages called `message` or `msg`. This commit pluralizes them. Note that `emit_message_default` and `emit_messages_default` both already existed, and both process a vector, so I renamed the former `emit_messages_default_inner` because it's called by the latter.
Configuration menu - View commit details
-
Copy full SHA for 101bc22 - Browse repository at this point
Copy the full SHA 101bc22View commit details -
bool->enum for ast::PatKind::Struct presence of
..
See https://github.com/rust-lang/rust/blob/cee794ee98d49b45a55ba225680d98e0c4672736/compiler/rustc_parse/src/parser/pat.rs#L890-L897 for the only place this is constructed.
Configuration menu - View commit details
-
Copy full SHA for d9ea102 - Browse repository at this point
Copy the full SHA d9ea102View commit details -
Rollup merge of #119231 - aDotInTheVoid:PatKind-struct-bool-docs, r=c…
…ompiler-errors Clairify `ast::PatKind::Struct` presese of `..` by using an enum instead of a bool The bool is mainly used for when a `..` is present, but it is also set on recovery to avoid errors. The doc comment not describes both of these cases. See https://github.com/rust-lang/rust/blob/cee794ee98d49b45a55ba225680d98e0c4672736/compiler/rustc_parse/src/parser/pat.rs#L890-L897 for the only place this is constructed. r? ``@compiler-errors``
Configuration menu - View commit details
-
Copy full SHA for f002221 - Browse repository at this point
Copy the full SHA f002221View commit details
Commits on Dec 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fd78575 - Browse repository at this point
Copy the full SHA fd78575View commit details -
Merge remote-tracking branch 'origin/master' into subtree_sync_with_1…
….77.0_nightly_2023_12_27
Configuration menu - View commit details
-
Copy full SHA for 6cc513f - Browse repository at this point
Copy the full SHA 6cc513fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 621904f - Browse repository at this point
Copy the full SHA 621904fView commit details