Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6fa58be
add test for assoc type mismatch in supertrait
Feb 29, 2024
189e784
adjust obligation spans for super projections
Feb 8, 2024
443c816
rename `ast_*` to `hir_*` in wfcheck
Mar 1, 2024
aa55f6d
suppress fulfillment errors for super projections
Mar 1, 2024
6bd970d
address review feedback
Mar 4, 2024
f415379
Add proper cfgs for struct HirIdValidator used only with debug assert…
mu001999 Mar 6, 2024
8e45d0f
Cancel parsing ever made during recovery
clubby789 Mar 6, 2024
ee1c691
Make `x t miri` respect `MIRI_TEMP`
WaffleLapkin Mar 6, 2024
9891d6a
Add advice for failing `shims/fs.rs` miri test
WaffleLapkin Mar 6, 2024
52bc7ce
Make not finding core a fatal error
saethlin Mar 6, 2024
850cc34
Don't require specifying unrelated assoc types when trait alias is in…
compiler-errors Mar 7, 2024
bf9782d
Fix tidy --bless on Windows
workingjubilee Mar 7, 2024
1a2bc11
Rust is a proper name: rust → Rust
RalfJung Mar 6, 2024
9d9e78e
Set `RustcDocs` to only run on host
tgross35 Mar 7, 2024
71d35d8
remove the --generate-link-to-definition flags from bootstrap
mu001999 Mar 7, 2024
db48b93
improve debug logging
Mar 7, 2024
9669934
Apply `EarlyBinder` only to `TraitRef` in `ImplTraitHeader`
Y-Nak Mar 5, 2024
0e37648
Rollup merge of #121863 - lukas-code:silence-mismatched-super-project…
GuillaumeGomez Mar 7, 2024
e52c541
Rollup merge of #122043 - Y-Nak:move-early-binder, r=lcnr
GuillaumeGomez Mar 7, 2024
f1fb720
Rollup merge of #122066 - mu001999:clean, r=oli-obk
GuillaumeGomez Mar 7, 2024
6b04518
Rollup merge of #122104 - RalfJung:rust, r=ChrisDenton
GuillaumeGomez Mar 7, 2024
d7106d2
Rollup merge of #122110 - WaffleLapkin:miri-temp, r=RalfJung
GuillaumeGomez Mar 7, 2024
66a062a
Rollup merge of #122114 - saethlin:cant-find-crate-spam, r=WaffleLapkin
GuillaumeGomez Mar 7, 2024
9bda4e4
Rollup merge of #122115 - clubby789:cancel-recoverr, r=compiler-errors
GuillaumeGomez Mar 7, 2024
bb582c6
Rollup merge of #122123 - compiler-errors:object-trait-alias-bounds, …
GuillaumeGomez Mar 7, 2024
d03d9a4
Rollup merge of #122126 - workingjubilee:every-os-in-the-world-belong…
GuillaumeGomez Mar 7, 2024
ce9a6ad
Rollup merge of #122129 - tgross35:rustcdocs-host-only, r=onur-ozkan
GuillaumeGomez Mar 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions compiler/rustc_parse/src/parser/stmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -787,13 +787,17 @@ impl<'a> Parser<'a> {
let suggest_eq = if self.token.kind == token::Dot
&& let _ = self.bump()
&& let mut snapshot = self.create_snapshot_for_diagnostic()
&& let Ok(_) = snapshot.parse_dot_suffix_expr(
colon_sp,
self.mk_expr_err(
&& let Ok(_) = snapshot
.parse_dot_suffix_expr(
colon_sp,
self.dcx().delayed_bug("error during `:` -> `=` recovery"),
),
) {
self.mk_expr_err(
colon_sp,
self.dcx()
.delayed_bug("error during `:` -> `=` recovery"),
),
)
.map_err(Diag::cancel)
{
true
} else if let Some(op) = self.check_assoc_op()
&& op.node.can_continue_expr_unambiguously()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#![allow(unused)]

fn test_122112() {
// Make sure we don't ICE if parsing in recovery fails
let _: std::env::temp_dir().join(&self, push: Box<usize>); //~ ERROR expected one of
}

fn main() {
let _: std::env::temp_dir().join("foo"); //~ ERROR expected one of
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
error: expected one of `!`, `+`, `->`, `::`, `;`, or `=`, found `.`
--> $DIR/recover-colon-instead-of-eq-in-local.rs:2:32
--> $DIR/recover-colon-instead-of-eq-in-local.rs:5:32
|
LL | let _: std::env::temp_dir().join(&self, push: Box<usize>);
| - ^ expected one of `!`, `+`, `->`, `::`, `;`, or `=`
| |
| while parsing the type for `_`

error: expected one of `!`, `+`, `->`, `::`, `;`, or `=`, found `.`
--> $DIR/recover-colon-instead-of-eq-in-local.rs:9:32
|
LL | let _: std::env::temp_dir().join("foo");
| - ^ expected one of `!`, `+`, `->`, `::`, `;`, or `=`
| |
| while parsing the type for `_`
| help: use `=` if you meant to assign

error: aborting due to 1 previous error
error: aborting due to 2 previous errors