Skip to content
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

Use hello_world instead of the guessing_game #16175

Merged
merged 2 commits into from
Aug 2, 2014
Merged

Use hello_world instead of the guessing_game #16175

merged 2 commits into from
Aug 2, 2014

Conversation

EduardoBautista
Copy link
Contributor

Solves: #16162

src/guessing_game.rs:2:9: 2:10 warning: unused variable: `x`, #[warn(unused_variable)] on by default
src/guessing_game.rs:2 let x: int;
^
Compiling hello_world v0.1.0 (file:/home/you/projects/hello_world)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does cargo really emit a bad file URL like that? file:/home/... is not correct, it should be file:///home/... (or sometimes file://home/... but that's not actually technically correct). I'd test it but I don't currently have cargo installed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kballard Yes it does, this was my output:

Compiling hello_world v0.1.0 (file:/Users/eduardobautista/Projects/rust-guide)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, because currently rust-url is not compatible with windows paths

@steveklabnik
Copy link
Member

r+=me

bors added a commit that referenced this pull request Aug 2, 2014
@bors bors closed this Aug 2, 2014
@bors bors merged commit 69267b1 into rust-lang:master Aug 2, 2014
@EduardoBautista EduardoBautista deleted the fix-guessing-game-appearing-early branch August 2, 2014 17:25
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 3, 2024
fix: Correctly set and mark the proc-macro spans

This slows down analysis by 2-3s on self for me unfortunately (~2.5% slowdown)

Noisy diff due to two simple refactoring in the first 2 commits. Relevant changes are [7d762d1](rust-lang/rust-analyzer@7d762d1) and [1e1113c](rust-lang/rust-analyzer@1e1113c) which introduce def site spans and correct marking for proc-macros respectively.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants