« first day (2120 days earlier)      last day (1373 days later) » 

12:54 PM
> asked 25 mins ago
+5 / -0
 
 
2 hours later…
3:12 PM
posted on August 03, 2020 by The Rust Release Team

The Rust team is announcing a new version of Rust, 1.45.2. Rust is a programming language that is empowering everyone to build reliable and efficient software. If you have a previous version of Rust installed via rustup, getting Rust 1.45.2 is as easy as: rustup update stable If you don't have it already, you can get rustup from the appropriate page on our website, and check out the detailed

 
3:23 PM
@Shepmaster Ugh
And it's from that friend of ours.
 
Indeed.
 
Dangerous grounds we tread.
 
Indeed
 
I like potatoes.
 
Actually that answer did not provide enough information to get for<> working in my actual code, whereas PhantomData did work, so I don't think it is a duplicate. Also that answer is about generic arguments to functions. It isn't clear how it applies to structs. Please give more benefit of the doubt when closing questions in future thank you. — Timmmm 2 hours ago
> WELL MAYBE IF YOU USED THE REAL CODE WE'D KNOW THAT
ok, now I don't need to actually reply
 
3:30 PM
It ain't the first time they assume duplicate questions must be an exact match.
@Shepmaster Indeed.
 
@E_net4explains whatcha explanin
 
@Shepmaster Among other things, this.
 
@E_net4explains a throwback
 
Gotta put the "back" on a throw. Often.
 
random question; anyone know how to do a structural grep in JS code?
I want to find all .then calls that have two arguments
 
3:44 PM
An intriguing one. Alas, I would probably just search for .then( and find those manually.
 
the problem is it's a multiline thing
 
In complex cases, a regex would be far from ideal. What if there are commas inside the arrow functions.
So you'd need a parser instead?
There are parsers a plenty for ES.
 
github.com/gkz/grasp seems about right
but I'm having issues getting it to work
what's really annoying about this is that this is what one of my Rust projects does
(strata)
if only I ever made it work :-)
 
4:38 PM
no-repro stackoverflow.com/q/63228280/155423 — "Unfortunately, I used an example to produce the same problem in a different way"
 
5:02 PM
@Shepmaster It is separated into files, and it is a new generated project with only the code above. I have annotated lines of code with file name, I have used SO for years, and I know the reproducible rule. — knh190 2 mins ago
hehe
Obvs that's not true.
 
 
2 hours later…
6:59 PM
@Feeds Compiler team in complete are in holiday ?
 
 
2 hours later…
9:31 PM
Stargateur, what I wish to do is within the code of my app, somehow code the time command so that I can capture the time metrics of the said app and log it to log4rs. This is the first time I've actually logged a question to this wonderful board so please, bear with me, if I'm not making myself clear. I promise that I'll get better with time:). Thanks. — CEORiley 11 mins ago
I have don't understand at all
 
9:59 PM
@Stargateur they want Instant::now - old_now
And then log the value
29
A: Benchmarking programs in Rust

ideasman42For measuring time without adding 3rd party dependencies you can use std::time::Instant fn main() { use std::time::Instant; let now = Instant::now(); { my_function_to_measure(); } let elapsed = now.elapsed(); println!("Elapsed: {:.2}", elapsed); }

 
guess you right
 

« first day (2120 days earlier)      last day (1373 days later) »