-
Notifications
You must be signed in to change notification settings - Fork 6
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
Attempt to port to 1.73.0-nightly #19
Conversation
(entry_def, x) | ||
} else { | ||
let msg = | ||
"this tool currently only supports taint analysis on programs with a main function"; | ||
rustc_session::early_error(ErrorOutputType::default(), msg); | ||
//rustc_session::early_error(ErrorOutputType::default(), msg); | ||
panic!(msg); |
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.
This has to be fixed
}; | ||
|
||
let main_id = entry_def_id.to_def_id(); | ||
let main_id = entry_def_id; //.to_def_id(); |
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.
This may be wrong but is likely correct
let def_id = self.tcx.hir().local_def_id(item_id).to_def_id(); | ||
//let def_id = self.tcx.hir().local_def_id(item_id).to_def_id(); | ||
//let def_id = self.tcx.hir().body_owner_def_id(rustc_hir::BodyId { hir_id: item_id }).into(); // panics | ||
let def_id = self.tcx.hir().get_parent_item(item_id).into(); |
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.
This is very likely wrong, but I am not sure.
|
This is an attempt to port the taint to 1.73.0-nightly.
This now compiles and runs, but the tests still do not pass. I am not sure exactly why and I will probably not have much time to work further on this, so I recommend anyone to feel free to take it from here.