Esteban Küber
a7b727dab3
Account for bounds when denying _
in type parameters
2020-02-27 15:59:26 -08:00
Esteban Küber
e6c85960d1
Revert "Backport only: avoid ICE on bad placeholder type"
...
This reverts commit 1cb555a1dc
.
2020-02-27 15:59:08 -08:00
Esteban Küber
1cb555a1dc
Backport only: avoid ICE on bad placeholder type
...
#69148 has a proper fix, but it is too big to backport.
This change avoids the ICE by actually emitting an appropriate error. The
output will be duplicated in some cases, but that's better than the
avoidable ICE.
2020-02-20 11:05:24 -08:00
Eduard-Mihai Burtescu
4c7eb59e81
rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros.
2020-02-06 21:46:38 +02:00
Ben Lewis
a6c4025fac
perf: eagerly convert literals to consts, this avoids creating loads on unevaluated consts
...
which requires a lot of unnecessary work to evaluate them further down the line.
2020-01-14 07:47:45 +13:00
memoryruins
eb4580a570
Update ui test suite to use dyn
2019-05-29 00:57:31 -04:00
Andy Russell
b6f148c8bd
hide --explain
hint if error has no extended info
2019-04-18 13:29:28 -04:00
Vadim Petrochenkov
18229bb1ad
syntax: Better recovery for $ty::AssocItem
and ty!()::AssocItem
2019-03-12 10:25:03 +03:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Zack M. Davis
a5de379b55
structured suggestion for E0223 ambiguous associated type
...
It looks like we tend to use angle-brackets around the placeholder in
the few other places we use `Applicability::HasPlaceholders`, but that
would be confusing here, so ...
2018-10-11 21:10:35 -07:00
Zack M. Davis
4b1808578a
add dyn
to display of dynamic (trait) type names
...
The `dyn Trait` syntax was stabilized in 199ee327
. Resolves #49277 .
2018-06-23 18:10:25 -07:00
Oliver Schneider
b48a26cdd1
Produce nice array lengths on a best effort basis
2018-03-22 09:56:04 +01:00
Guillaume Gomez
2e104a77cf
update tests
2018-03-14 00:53:24 +01:00
Vadim Petrochenkov
fa2d9fc4b9
Update UI tests
2018-02-26 20:24:02 +03:00
Guillaume Gomez
5747fd6611
Update ui tests
2018-02-25 12:15:05 +01:00
Vadim Petrochenkov
d333752f5c
Fix parsing of paths with fn-like generic arguments
2017-12-20 22:55:57 +03:00
Vadim Petrochenkov
eef85cf0ff
Add tests checking taht "priority" of qpath recovery is higher than unary and binary operators
2017-12-20 22:43:47 +03:00
Vadim Petrochenkov
70e5c37319
syntax: recovery for incorrect associated item paths like [T; N]::clone
2017-12-17 19:00:50 +03:00