-
Notifications
You must be signed in to change notification settings - Fork 16
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
Pass a hash of the modification date for cache control #5
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,6 +104,16 @@ pub fn driver_main<T: RustcPlugin>(plugin: T) { | |
exit(rustc_driver::catch_with_exit_code(move || { | ||
let mut orig_args: Vec<String> = env::args().collect(); | ||
|
||
let hash_check_arg = orig_args | ||
.iter() | ||
.enumerate() | ||
.find(|elem| elem.1 == crate::EXEC_HASH_ARG) | ||
.map(|t| t.0) | ||
.unwrap(); | ||
|
||
orig_args.remove(hash_check_arg); | ||
orig_args.remove(hash_check_arg); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it necessary to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh it's because you're deleting both arguments. Maybe |
||
|
||
let (have_sys_root_arg, sys_root) = get_sysroot(&orig_args); | ||
|
||
if orig_args.iter().any(|a| a == "--version" || a == "-V") { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,7 +152,7 @@ fn place_components_conflict<'tcx>( | |
// are disjoint | ||
// | ||
// Our invariant is, that at each step of the iteration: | ||
// - If we didn't run out of access to match, our borrow and access are comparable | ||
// - If we didn't run out of access to match, our borrow and access are comparalegal_flow | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think your find/replace was too aggressive :P |
||
// and either equal or disjoint. | ||
// - If we did run out of access, the borrow can access a part of it. | ||
|
||
|
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.
Can you add a brief comment that explains why we have to use RUSTC_WRAPPER instead of RUSTC_WORKSPACE_WRAPPER? Just for posterity. Or you can point to this PR.