| Age | Commit message (Collapse) | Author | Lines |
|
Temporary fix for metadata decoding for struct constructors
Same as https://github.com/rust-lang/rust/pull/37078, but for nightly.
Ideally, metadata lookup functions should "just work" for constructor ids, but this fixes the issue as well.
Fixes https://github.com/rust-lang/rust/issues/37026
r? @alexcrichton
|
|
Rollup of 9 pull requests
- Successful merges: #36679, #36699, #36997, #37040, #37060, #37065, #37072, #37073, #37081
- Failed merges:
|
|
|
|
[tracking issue](https://github.com/rust-lang/rust/issues/27749)
|
|
Note that attributes on expressions are still unstable and are behind the `stmt_expr_attributes` flag.
cc [Tracking issue](https://github.com/rust-lang/rust/issues/15701)
|
|
cc [`?` tracking issue](https://github.com/rust-lang/rust/issues/31436)
|
|
Update E0303 to new error format
Fixes #35790
r? @jonathandturner
|
|
Turn compatibility lint `match_of_unit_variant_via_paren_dotdot` into a hard error
The lint was introduced 10 months ago and made deny-by-default 7 months ago.
In case someone is still using it, https://github.com/rust-lang/rust/pull/36868 contains a stable replacement.
r? @nikomatsakis
|
|
add println!() macro with out any arguments
lets add println!() to write "\n".
like java https://docs.oracle.com/javase/7/docs/api/java/io/PrintStream.html#println()
|
|
|
|
|
|
|
|
r=nikomatsakis
incr.comp.: Add test case for dependency graph of type aliases.
r? @nikomatsakis
|
|
Merge E0002 into E0004
Fixes #36724.
r? @jonathandturner
|
|
error
|
|
Make error messages more precise
|
|
|
|
Add regression test for Issue #21837
This PR adds a regression test for Issue #21837, as explained in the comments of the issue.
|
|
Improve error message and snippet for "did you mean `x`"
- Fixes #36164
- Part of #35233
Based on the standalone example https://is.gd/8STXMd posted by @nikomatsakis and using the third formatting option mentioned in #36164 and agreed by @jonathandturner.
Note however this does not address the question of [how to handle an empty or unknown suggestion](https://github.com/rust-lang/rust/issues/36164#issuecomment-244460024). @nikomatsakis any suggestions on how best to address that part?
|
|
|
|
|
|
Enforce the shadowing restrictions from RFC 1560 for today's macros
This PR enforces a weakened version of the shadowing restrictions from RFC 1560. More specifically,
- If a macro expansion contains a `macro_rules!` macro definition that is used outside of the expansion, the defined macro may not shadow an existing macro.
- If a macro expansion contains a `#[macro_use] extern crate` macro import that is used outside of the expansion, the imported macro may not shadow an existing macro.
This is a [breaking-change]. For example,
```rust
macro_rules! m { () => {} }
macro_rules! n { () => {
macro_rules! m { () => {} } //< This shadows an existing macro.
m!(); //< This is inside the expansion that generated `m`'s definition, so it is OK.
} }
n!();
m!(); //< This use of `m` is outside the expansion, so it causes the shadowing to be an error.
```
r? @nrc
|
|
Introduce the possibility of assigning distinct error codes to the various origin types of E0308. Start by assigning E0317 for the "IfExpressionWithNoElse" case, and write a long diagnostic specific to this case.
Fixes #36596
|
|
|
|
Update E0220 error format
@jonathandturner
Part of #35233 .
Fixes #35385.
|
|
|
|
|
|
- Fixes #36164
- Part of #35233
- handles unknown fields
- uses UI-style tests
- update all related tests (cfail, ui, incremental)
|
|
Rollup of 6 pull requests
- Successful merges: #36865, #36872, #36873, #36877, #36880, #36882
- Failed merges:
|
|
First step for #34761
|
|
resolve: fix incorrect code in `module_to_string`
Fixes #36881.
r? @nrc or @eddyb
|
|
Update E0035, E0036 and E0370 to new error format
Fixes #35634.
Fixes #35206.
Fixes #35207.
r? @jonathandturner
|
|
|
|
|
|
|
|
|
|
|
|
squash! Update E0220 error format
Update Error E0220 to new format
|
|
|
|
|
|
Update E0025 to new error format
Part of #35233.
Fixes #35198.
r? @jonathandturner
|
|
Update E0050 to new error format
Part of #35233.
Fixes #35211.
r? @jonathandturner
|
|
|
|
Assign def ids and build the module graph during expansion
r? @nrc
|
|
Update E0425, E0446, E0449
This addresses https://github.com/rust-lang/rust/issues/35343, https://github.com/rust-lang/rust/issues/35923, and https://github.com/rust-lang/rust/issues/35924. Part of https://github.com/rust-lang/rust/issues/35233
Specifically, this adds labels to these error messages following the suggestions in the attached bugs.
r? @nrc
|
|
|
|
Rollup of 14 pull requests
- Successful merges: #36563, #36574, #36586, #36662, #36663, #36669, #36676, #36721, #36723, #36727, #36729, #36742, #36754, #36756
- Failed merges:
|
|
New error format for E0512
Part of #35233, fixes #36107
r? @jonathandturner
|
|
E0513
Part of #35233
r? @jonathandturner
|
|
reject macros with empty repetitions
Fixes #5067 by checking the lhs of `macro_rules!` for repetitions which could match an empty token tree.
|