summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-08-13Auto merge of #206 - ajaxm:ajaxm/rustup-update, r=komaedabors
Suggest rustup update in readme I'm pretty new to Rust. I tried installing rustlings for the first time and got this error: ``` $> cargo install --force --path . error: `/Users/ajax/projects/rust/rustlings` is not a crate root; specify a crate to install from crates.io, or use --path or --git to specify an alternate source Caused by: failed to parse manifest at `/Users/ajax/projects/rust/rustlings/Cargo.toml` Caused by: editions are unstable Caused by: feature `edition` is required this Cargo does not support nightly features, but if you switch to nightly channel you can add `cargo-features = ["edition"]` to enable this feature ``` I'm not sure if the answer was to run `rustup update` but I noticed that I was running Rust 1.29.0, so updated to 1.36.0 and got it working. If there's a way to specify a minimum required version, pls let me know. Lastly, the whitespace changes were automatic from my editor. What's the convention here for making such updates? Thanks!
2019-08-131.4.1marisa
2019-08-12Auto merge of #208 - EnricoMiccoli:patch-1, r=komaedabors
chore: Correct typo in hint text
2019-08-12chore: Correct typoEnrico Miccoli
2019-08-11Auto merge of #207 - nkanderson:fix_iterators2, r=komaedabors
Fix iterators2 A couple of small changes to the `iterators2` exercise. @Jesse-Cameron, it looks like you contributed this exercise, so I wanted to check and see if these changes are in line with your intentions. Happy to adjust if they're not :)
2019-08-09chore(iterators2): Add exercise instructionsNiklas Anderson
2019-08-09fix(iterators2): Remove syntax resulting in misleading error messageNiklas Anderson
closes #199
2019-08-03docs: Suggest rustup update in readmeAjax Manohar
2019-07-27Auto merge of #201 - zdzc:patch-1, r=komaedabors
docs: Fix wrong title fix #200
2019-07-27docs: Fix wrong titleAndre Pratama
fix #200
2019-07-27Auto merge of #198 - nkanderson:160_options1-add-test, r=komaedabors
fix(option1): Add test for prematurely passing exercise Fixes the bug referenced in #160, but does not address the larger feature work referenced by the issue.
2019-07-26fix(option1): Add test for prematurely passing exerciseNiklas Anderson
Fixes the bug referenced in #160, but does not address the larger feature work referenced by the issue.
2019-07-13Auto merge of #192 - petemcfarlane:patch-2, r=komaedabors
fix(test1): Swap assertion parameter order `Expected` should come before `actual`, other wise it leads to confusing compiler messages, e.g. ``` note: expected type `()` found type `{integer}` ``` There may be other tests that need updating, but this is as far as I am through the Rustlings course right now :)
2019-07-13fix(test1): Swap assertion parameter orderPete McFarlane
`Expected` should come before `actual`, other wise it leads to confusing compiler messages, e.g. ``` note: expected type `()` found type `{integer}` ```
2019-07-131.4.0marisa
2019-07-12Auto merge of #191 - MrFroop:master, r=komaedabors
Fix(watch): Check if changed exercise file exists before calling verify. Prevent a panic if the file triggering the watch event is gone.
2019-07-11Check if changed exercise file exists before calling verify.Fredrik Jambrén
2019-07-08fix(readme): http to httpsetisdew
changing readme image (line 1) to https fixes markdown preview and improves fidelity
2019-07-04Auto merge of #186 - Jesse-Cameron:iterator-exercise2, r=komaedabors
feat(iterators2): adds iterators2 exercise including config Hi there! I really enjoyed doing the rustlings exercises so I thought that I would try to add an exercise! This one just covers a couple of basic iterator operations. Getting people used to the `map` and `collect` functions. However, it does feel kinda similar to the next exercise. So I may also revisit some of the tests in iterators3 if we think that is necessary.
2019-07-03feat(iterators2): adds iterators2 exercise including configJesse
2019-06-28Auto merge of #184 - Jesse-Cameron:master, r=komaedabors
fix(test1): renamed function name to snake case addressing a minor function naming convention, see: [RFC #430](https://doc.rust-lang.org/1.0.0/style/style/naming/README.html) closes #180
2019-06-29fix(test1): renamed function name to snake caseJesse
closes #180
2019-06-23Auto merge of #172 - miller-time:fix-book-links, r=komaedabors
chore: Fix a couple broken book links While I was fixing these, I figured maybe it's good to just use a consistent URL for book links: https://doc.rust-lang.org/book/ Is there a plan for what to do with this old 1.4.0 example that doesn't exist in the current version of the book? Perhaps at least include a disclaimer when recommending that folks check it out? https://github.com/rust-lang/rustlings/blob/34e31232dfddde284a341c9609b33cd27d9d5724/exercises/threads/README.md#L1
2019-06-23Auto merge of #171 - miller-time:rustfmt-exercises, r=komaedabors
chore: Clean up some formatting in exercises I noticed some formatting that isn't consistent with the `rustfmt` style and tried my best to run it on the files in the exercises directory (which does fail for files that can't compile!), which just caught some minor whitespace things here and there. Note: also can't just apply `rustfmt` blindly because of the blank lines that lead to the hint comments
2019-06-20Auto merge of #179 - briankung:fix_irrefutable_let_pattern_structs1, r=komaedabors
Fixes the irrefutable let pattern warning in `structs1.rs` PR https://github.com/rust-lang/rustlings/pull/163 accidentally introduced an error using some versions of the Rust compiler where the compiler would (rightly!) complain about an irrefutable let pattern. I have no idea why this did not occur in all versions of the compiler, but here is a way around it.
2019-06-20Fixes the irrefutable let pattern warningBrian Kung
2019-06-11chore: Clean up some formatting in exercisesRussell Cousineau
2019-06-11chore: Fix a couple broken book linksRussell Cousineau
2019-06-11Auto merge of #169 - miller-time:fix-install-script, r=komaedabors
fix(installation): Fix rustlings installation check fixes #147 I did some quick testing with the `-x` check: ```sh if [ -x "$(notrustlings)" ] then echo "notrustlings does not exist" else echo "notrustlings appears to exist!" notrustlings fi ``` which produced: ``` ./test.sh: line 12: notrustlings: command not found notrustlings appears to exist! ./test.sh: line 17: notrustlings: command not found ``` (consistent with comments in issue) Using `if ! [ -x "$(command -v <command>)" ]` appears to be the standard way to perform this type of check.
2019-06-11Auto merge of #170 - miller-time:rename-iterator-exercise, r=komaedabors
fix(iterators): Rename iterator3.rs fixes #155
2019-06-11Auto merge of #176 - danwilhelm:dan-minor-text, r=komaedabors
chore: Minor text updates - Make the default rustlings executable text consistent with the README and install script by adding `--force`. - Remove a missed highlighting character from Issue #133.
2019-06-10chore: Remove missed highlighting char from Issue #133Dan Wilhelm
2019-06-10chore: Make install instructions consistentDan Wilhelm
2019-06-09fix(installation): Fix rustlings installation checkRussell Cousineau
2019-06-09docs: Move content from Readme to Contributingliv
2019-06-09docs: Recommend `rustlings watch` as defaultliv
2019-06-09docs: Add CONTRIBUTING.mdliv
2019-06-09chore: Fix link to Arc<T> in the bookRohan Prinja
2019-06-07fix(iterators): Rename iterator3.rsRussell Cousineau
2019-06-05feat(changelog): Use clog for changelogsliv
2019-06-051.3.0liv
2019-06-05Auto merge of #167 - rust-lang:fix/remove-highlighting, r=komaedabors
Remove highlighting and syntect Closes #166 and #122
2019-06-05Commit Cargo.lock fileliv
2019-06-05Remove highlighting and syntectliv
2019-05-26Auto merge of #164 - HanKruiger:master, r=komaedabors
Fix broken link
2019-05-26Auto merge of #165 - gushroom:fix-outdated-links, r=komaedabors
fixed outdated links The links had the 2018 book in them and they were outdated.
2019-05-26fixed outdated linksgushroom
2019-05-26Fix broken linkHanKruiger
2019-05-25Auto merge of #163 - briankung:add_structs, r=komaedabors
Adds a simple exercise for structures Thanks for rustlings! Here's a small contribution in return.
2019-05-25Adds a simple exercise for structuresBrian Kung