Skip to content

Incorrect span for mismatched type error during FRU #628

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

Closed
brson opened this issue Jul 6, 2011 · 0 comments
Closed

Incorrect span for mismatched type error during FRU #628

brson opened this issue Jul 6, 2011 · 0 comments
Labels
A-type-system Area: Type system E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@brson
Copy link
Contributor

brson commented Jul 6, 2011

In the following example, foo is bool when it's expected to be int.

auto a = rec(foo = 0);
auto b = rec(foo = true with a);

The mismatched type error spans the entire rec being assigned to variable b, instead of just the incorrect expression, 'true'. For errors that occur in large records this can get pretty confusing.

@ghost ghost assigned catamorphism Jul 13, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
Add constants for sysconf(3) and pathconf(3)
pdietl pushed a commit to pdietl/rust that referenced this issue Apr 23, 2020
Correct sentence about unsized coercions
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
* Compile time cblas loading

* Now with fortran abi

* Add shared lib

* Add to julia tarballs

* Add FBlas test

* Fix CI

* Add missing file

* prepare for cross-compile support

* update build_tarballs.jl

* add to TARGETS

* allow BC nonsense without clang if blasheaders is pregenerated

* Revert "add to TARGETS"

This reverts commit 59fd884acb7b48e7bc0df2ca7edbac51dadf8071.

* fix

* Simplify cmake build

Co-authored-by: Valentin Churavy <[email protected]>
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
GuillaumeGomez pushed a commit to GuillaumeGomez/rust that referenced this issue Apr 18, 2025
fix clobbered or lateout registers overlapping with input registers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

2 participants