-
Notifications
You must be signed in to change notification settings - Fork 182
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
Dummy std lib #601
Dummy std lib #601
Conversation
Codecov Report
@@ Coverage Diff @@
## master #601 +/- ##
==========================================
+ Coverage 86.55% 86.60% +0.04%
==========================================
Files 96 96
Lines 8229 8371 +142
==========================================
+ Hits 7123 7250 +127
- Misses 1106 1121 +15
Continue to review full report at Codecov.
|
7920716
to
0f8aa6a
Compare
@sbillig lint is failing on some new conditions, but everything else is good, so feel free to take a look. Ill fix the clippy stuff before merging |
@g-r-a-n-t I'm trying to build on this, and running into trouble. If I add files to Eg. added |
@sbillig huh, Ill look into it later today. I think it might be related to a change in the ingot_all_modules query |
pub fn items(&self, db: &dyn AnalyzerDb) -> Rc<IndexMap<String, Item>> {
match self {
Item::Ingot(ingot) => ingot
.lib_module(db)
.expect("ingot is missing a lib file")
.items(db), A lib ingot is just the contents of lib.fe right now; the rest of the files are ignored. |
good catch. things are a bit tangled, but I think I know how to clean it up |
Ok, I think items need to be teased apart into a few separate categories:
notes:
|
794684a
to
c19e9ec
Compare
f36fda8
to
f7b381b
Compare
Alright @sbillig, this is ready for another review. I basically did what was described in my previous comment and fixed the issue you initially pointed out. As mentioned before, I didn't overhaul the item map queries yet, so it's possible to have cycles on |
For clarity, cycles occur when two modules contain use paths that point at each other.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👨🍳 👍
What was wrong?
We don't have a standard library.
How was it fixed?
A library ingot named
std
gets added to the global scope during compilation. It currently contains dummy code, which we'll replace once low-level intrinsics are supported.To-Do