narpfel
ae21fbbffc
Make default Rust code compatible with 2024 edition ( #7581 )
2025-04-20 04:52:25 +00:00
narpfel
21aaec6be5
Add note to Rust example explaining why functions are missing in the output ( #6013 )
...
Resolves #5939 .
Rust issue about this problem:
https://github.com/rust-lang/rust/issues/119850
Hopefully this can be reverted again when there is a fix on the Rust
side.
2024-01-16 22:02:20 -06:00
redzic
9e27ff27fb
Make Rust examples more idiomatic ( #2634 )
...
* Make Rust examples more idiomatic
* Make 'non-idiomatic' example match the aligned version
* Rename examples
2021-05-05 11:52:24 +02:00
Patrick Quist
ce64888b7e
More rust examples ( #2482 )
...
* more rust examples
* Update default.rs
2021-03-11 17:30:03 +01:00
Tony Yang
2501734007
Fix Rust Max_array examples ( #1960 )
...
* Fix Max_array.rs iter_mut is not necessary
The previous example failed to compile as `y` was not borrowed as a mutable reference but used to produce a mutable iterator. Changing from `iter_mut()` to `iter()` resolved this issue.
* Fix Max_array_(Optimized).rs
The previous example failed to compile as `y` was not borrowed as a mutable reference but used to produce a mutable iterator. Changing from `iter_mut()` to `iter()` resolved this issue.
2020-05-11 01:03:13 +02:00
Christopher Serr
91a35e65d4
Improve the Rust examples
...
This commit
- formats the Rust examples idiomatically
- uses idiomatic code
- uses only safe code without compromising on performance
- makes them compile on stable
2020-03-26 23:28:49 +01:00
Matt Godbolt
199f4876c8
Merge pull request #745 from jsheard/rust-example
...
Simplify Rust sum_array examples
2018-09-29 19:10:46 -07:00
RabsRincon
2e219a2294
Improve syntax highlight switching on AST and Opt
2018-03-28 22:23:06 +02:00
Joshua Sheard
e5ecb46309
Add naive c-like version of Rust sum_array examples
2018-01-07 17:25:14 +00:00
Joshua Sheard
b0908584fa
Simplify Rust sum_array examples
2018-01-04 18:57:02 +00:00
RabsRincon
43279a61ca
Fix various points raised after code reviews
...
Some fixes, a great slam and then some
2017-12-09 11:19:45 +01:00
Rubén
6f7a4b8b4a
Add D examples and beautify all examples names
2017-10-12 02:15:31 +02:00
Vinzent Steinberg
8c59c340c0
Fix Rust examples for current nightly
...
Also remove trailing whitespaces.
2016-03-02 23:50:58 +01:00
Matt Godbolt
a66a085874
Fix up some rust syntax in the examples
2015-05-16 08:12:23 -05:00
Matt Godbolt
0db11da754
Updated rust examples
2015-01-12 21:22:55 -06:00
Matt Godbolt
1a124be932
Fix up rust example for 1.0
2015-01-11 20:40:32 -06:00
Matt Godbolt
3ee715691e
Fix warnings in rust example
2014-12-02 21:10:16 -06:00
Matt Godbolt
43a2173b38
Early rust support
2014-04-30 21:55:02 -05:00