Comments (4)
Try updating your nightly compiler and checking if it's still like that? You're using a nightly compiler from January.
from rust.
To second compiler-errors' comment, I know that there was a change in this suggestion sometime in the past month.
Edit: nevermind
rust/compiler/rustc_infer/src/infer/error_reporting/need_type_info.rs
Lines 226 to 227 in b376f49
from rust.
Output with the PR linked above:
error[E0284]: type annotations needed for `Select<{[email protected]:2782:13}, _, Expression<'_>, _>`
--> crates/lang/src/parser.rs:41:13
|
41 | let lit = select! {
| ^^^
42 | Token::Int(i) = e => Expression::new(Expr::Lit(ast::Lit::Int(i.parse().unwrap())), e.span()),
| ---- type must be known at this point
|
= note: the full type name has been written to '/home/gh-estebank/iowo/target/debug/deps/lang-e2d6e25819442273.long-type-4587393693885174369.txt'
= note: cannot satisfy `<_ as chumsky::input::Input<'_>>::Span == SimpleSpan`
help: consider giving `lit` an explicit type, where the type for type parameter `I` is specified
|
41 | let lit: Select<for<'a, 'b> fn(tokens::Token<'_>, &'a mut MapExtra<'_, 'b, _, _>) -> Option<Expression<'_>>, _, Expression<'_>, _> = select! {
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
We still need a minimal repro to add a test to the test suite.
from rust.
Needs test.
from rust.
Related Issues (20)
- ICE on stable due to messed up target/ directory HOT 6
- Unheplful Borrow Error Related to Use of Borrows in Loop
- ICE: `assertion failed: layout.is_sized()` HOT 3
- Tracking Issue for future-compatibility warning `SELF_CONSTRUCTOR_FROM_OUTER_ITEM`
- ICE: `error performing operation: fully_perform` HOT 3
- Couldn't evaluate constant const with `-Zpolymorphize=on` HOT 2
- missing diagnostic HOT 1
- std::fs::symlink_metadata + set_permissions makes unintuitive behavior HOT 2
- test
- AST pretty-printer produces invalid syntax for postfix match
- ICE: `Layout::compute: unexpected type '_'` HOT 1
- The compiler keeps going on Ctrl-C HOT 13
- Document minimum supported versions for apple operating systems to platform documentation HOT 3
- Performance regression: rustc failed to optimize `_mm256_avg_epu8` after 1.75.0 HOT 8
- Future version of mingw-w64 breaks externally linking some math functions
- Tracking Issue for `macro_metavar_expr_concat` HOT 11
- Debug for FilePermissions prints the mode in decimal. HOT 3
- Improve error[E0492]: statics cannot refer to interior mutable data HOT 1
- `-C linker-plugin-lto` prevents vectorization of `mem::swap` at `-C opt-level=3` HOT 6
- Null reference in `PanicInfo.location().file()` when panicking on target `aarch64-nintendo-switch-freestanding` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust.