-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Select Polonius algorithm via POLONIUS_ALGORITHM
environment variable
#51246
Select Polonius algorithm via POLONIUS_ALGORITHM
environment variable
#51246
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
02e2169
to
8d61e69
Compare
POLONIUS_ALGORITHM
environment variablePOLONIUS_ALGORITHM
environment variable
let algorithm = env::var("POLONIUS_ALGORITHM") | ||
.unwrap_or(String::from("DatafrogOpt")); | ||
let algorithm = Algorithm::from_str(&algorithm).unwrap(); | ||
info!("Using Polonius algorithm: {:?}", algorithm); |
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.
I don't know why this would be info!
level in particular — I would say make it debug!
, and probably:
debug!("compute_regions: using polonius algorithm {:?}", algorithm);
8d61e69
to
265b04d
Compare
@bors r+ |
📌 Commit 265b04d has been approved by |
⌛ Testing commit 265b04d with merge 6ac784c21adad47ecf3e1e49a14859c8617ad4d5... |
💔 Test failed - status-appveyor |
🤔
|
This seems to be spurious? @bors retry |
⌛ Testing commit 265b04d with merge 005322cc0a24306657e0e23af6d0591c2cb8f260... |
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
1 similar comment
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Was this some network issue? |
…komatsakis Select Polonius algorithm via `POLONIUS_ALGORITHM` environment variable This pull request allows selecting the Polonius algorithm being used by providing an environment variable `POLONIUS_ALGORITHM`. Example usage: ``` POLONIUS_ALGORITHM=compare RUST_LOG=rustc_mir::borrow_check::nll=trace ./x.py test --stage 1 --compare-mode polonius -- src/test/ui/nll/issue-47680.rs ... stderr: ------------------------------------------ INFO 2018-05-31T17:35:31Z: rustc_mir::borrow_check::nll: Using Polonius algorithm: Compare INFO 2018-05-31T17:35:31Z: rustc_mir::borrow_check::nll: Using Polonius algorithm: Compare ------------------------------------------ ... ``` r? @nikomatsakis
☀️ Test successful - status-appveyor, status-travis |
This pull request allows selecting the Polonius algorithm being used by providing an environment variable
POLONIUS_ALGORITHM
.Example usage:
r? @nikomatsakis