love it when the answer to something like this is ultimately "no, you're basically screwed" (my words! People helping have been very awesome and helpful! There's just no way to do this)
with quote tweet:
Dear Rust folks:
I want to define a trait with a method that is intended to return a type, any type, that conforms to a different trait, and have that be generic.
Is that possible? Is there a different pattern for this?
So I want a FooLikeFactory that constructs FooLikes
@DaveHolmes ("Dave Holmes") wrote:
Welp I guess I’m going to Coachella. Be nice to the old man.
@rochers ("Scott Rocher") retweeted:
@jencotton ("Jen Cotton🔥") wrote:
Spent today doing headcount planning. I am so amped to grow the Design & Research team @modernhealthco. Especially looking for underrepresented peeps to ensure that what we’re building is culturally centered. Mental healthcare needs to be for everyone not just the few. DMs open
@zkat__ ("kat.rs") replied to a tweet by @zkat__:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=9897bd42b12e5a28e3655ba1fe145d1e a playground link for those who are interested in a more concrete explanation of my problem
@Blklivesmatter ("Black Lives Matter") wrote:
The NYC landlord responsible for the fire in the Bronx high-rise that killed 17 people, including 8 children, is on Mayor Eric Adams transition team
with quote tweet:
@annia ("Annia Ciezadlo") replied to a tweet by @annia:
Here's the ownership of the building. The man listed as landlord, Rick Gropper, is on @NYCMayor's transition team—for housing:
@bascule ("Tony "Abolish ICE" Arcieri 🦀🌹") wrote:
with quote tweet:
@TheAcademy ("The Academy") wrote:
Hypothetically, if we asked you who would you want to host the Oscars, and this is strictly hypothetical, who would it hypothetically be?
@polotek ("Marco Rogers") replied to a tweet by @polotek:
The reason I like debugging is that it improves my mental model of how the system works. Every time I come up with a hypothesis and it turns out to be right, I get more confident in my understanding. Maybe one reason people get frustrated is their mental model isn’t helping them?
with quote tweet:
@gurlcode ("Jenn Creighton") wrote:
Most devs seem to hate debugging. Why?
@bascule ("Tony "Abolish ICE" Arcieri 🦀🌹") replied to a tweet by @bascule:
Maybe he could be Din Djarin’s biological father, back from the dead!
@bascule ("Tony "Abolish ICE" Arcieri 🦀🌹") replied to a tweet by @bascule:
Now I’m seriously wondering when Antonio Banderas is going to show up to Tatooine
Photo by Vjeran Pavic / The Verge
Apple has denied that last month’s iOS 15.2 update is behind the difficulty some iPhone owners have faced with using the iCloud Private Relay feature on cellular networks. Verizon, AT&T, and T-Mobile earlier this week said they weren’t blocking the VPN-like feature, but T-Mobile claimed to have identified that iOS 15.2 toggled it off by default.
Now Apple says that’s not the case. After releasing an updated beta of iOS 15.3 that clarifies the language in iCloud settings, Apple issued a statement to 9to5Mac saying that iOS 15.2 wasn’t the problem. “No changes were made to iCloud Private Relay in iOS 15.2 that would have toggled the feature off,” the statement reads. “Users are encouraged to check their Settings to see if Private Relay is...
@polotek ("Marco Rogers") wrote:
with quote tweet:
Senate passes bill to award the Congressional Gold Medal posthumously to Emmett Till and his mother. https://nbcnews.to/3neGDEX
@MattBaume ("Matt Baume") replied to a tweet by @meakoopa:
@meakoopa Bowser because he's heavy & can knock others out of the way (and because I like how meaty his hands are WAIT who said that), on the pirate ship because it accelerates fast (just don't hit the walls too much), with the teeny little roller wheels for better acceleration/handling.
@polotek ("Marco Rogers") wrote:
Is this true? I have always liked debugging.
with quote tweet:
@gurlcode ("Jenn Creighton") wrote:
Most devs seem to hate debugging. Why?
@polotek ("Marco Rogers") retweeted:
@astradisastra ("Astra Taylor") wrote:
Labor getting on board to push @POTUS to Cancel Student Debt.
with quote tweet:
@StrikeDebt ("The Debt Collective") wrote:
“A coalition of local unions is calling on the Biden Administration to cancel all student loan debt. The current administration has the power to cancel it under the Higher Education Act of 1965.”
@bascule ("Tony "Abolish ICE" Arcieri 🦀🌹") wrote:
The more I read about long COVID the more it reminds me of polio: a disease where most people recover but it becomes both deeply invasive into the body and deeply damaging in a small percentage of cases
@polotek ("Marco Rogers") retweeted:
@JoshuaPotash ("Read Teaching to Transgress by bell hooks") wrote:
The Army raising its max bonus for new recruits to $50k right now is such a clear example of how this country is set up. We always have money for war, but can't feed, house, or test the poor.
@Extrawurst ("Stephan D.") retweeted:
@ThisWeekInRust ("This Week in Rust") wrote:
This Week in Rust 425 https://this-week-in-rust.org/blog/2022/01/12/this-week-in-rust-425/ #rustlang
@bascule ("Tony "Abolish ICE" Arcieri 🦀🌹") replied to a tweet by @bascule:
Well it is directed by Robert Rodriguez after all…
@meakoopa ("Anthony Oliveira") replied to a tweet by @meakoopa:
i historically liked plying a hefty bowser/monster truck build but lately I am liking a zippy steerable baby/koopaling with a vespa moment?
@meakoopa ("Anthony Oliveira") wrote:
please tell me your mario kart character and kart build, and why/how the combo works! i would like to know!!
with quote tweet:
@meakoopa ("Anthony Oliveira") wrote:
i am player 2 but i was not done selecting. My Mario Kart selection is:
Bowser Jr
on the city tripper / vespa
with the hot monster truck wheel
and the parafoil https://twitter.com/kylehill/status/1481411777925689344
Dear Rust folks:
I want to define a trait with a method that is intended to return a type, any type, that conforms to a different trait, and have that be generic.
Is that possible? Is there a different pattern for this?
So I want a FooLikeFactory that constructs FooLikes
@bascule ("Tony "Abolish ICE" Arcieri 🦀🌹") replied to a tweet by @bascule:
Danny Trejo shows up to Tatooine looking like he just stumbled in off the set of Desperado
@bascule ("Tony "Abolish ICE" Arcieri 🦀🌹") replied to a tweet by @bascule:
“You’re gonna have to see the mayor to get a permit for that rancor”
@meakoopa ("Anthony Oliveira") replied to a tweet by @meakoopa:
we have not unlocked the clown car yet...
nikvo@esperanto.masto.host wrote:
pli malvarmas dum la vintro en la norda parto de usono sed almenaŭ la tero turniĝas malpli rapide tie ĉi do mi ne havas tiom da kapturno
pli malvarmas dum la vintro en la norda parto de usono sed almenaŭ la tero turniĝas malpli rapide tie ĉi do mi ne havas tiom da kapturno
@meakoopa ("Anthony Oliveira") retweeted:
@am_geoffrey ("Dr. Geoffrey M") wrote:
It's been 25+ years since I first saw this, but I return to it occasionally when I am in a Mood. It has Lewis Carroll, Milton, and terrible jokes, which recommends it highly for @meakoopa
and the Dumpster Raccoons.
https://youtu.be/26kf2nZgFGI
@bryansafi ("Bryan Safi") wrote:
Bless.
with quote tweet:
@cimmer ("Christina Rocks") wrote:
Did I just *SCREAM* with joy when @bryansafi came on screen in Search Party S5? YES!!!
@meakoopa ("Anthony Oliveira") wrote:
i am player 2 but i was not done selecting. My Mario Kart selection is:
Bowser Jr
on the city tripper / vespa
with the hot monster truck wheel
and the parafoil
with quote tweet:
@kylehill ("Good Job, Kylf") replied to a tweet by @meakoopa:
@meakoopa the people need to know if you’re controller 1 or 2
@jwz ("j͕̠̦̪͕̓͛̊̾̄ͅw̧̧̳̪̘͊̋͗̾͢͠z̢̘̞͈̺̞̩̓̽̐̋͗̆̋̚͟͜") retweeted:
still thinking about how joe biden said “google for covid test sites near you” and then less than a week later we find out that many of those sites are just scams giving fake tests and mass reporting negatives to those who go to them
best fuckin country on earth
@jwz ("j͕̠̦̪͕̓͛̊̾̄ͅw̧̧̳̪̘͊̋͗̾͢͠z̢̘̞͈̺̞̩̓̽̐̋͗̆̋̚͟͜") wrote:
Recent Movies and TV. The Matrix Resurrections (2021): Well that was a steaming pile of shit, wasn't it? Like, why did 10% of this movie feel like I was watching an episode of Seinfeld? Boy, give me some more of those techbro office scenes. I really... https://jwz.org/b/yjvK
@bascule ("Tony "Abolish ICE" Arcieri 🦀🌹") wrote:
I shit talk Manchin an awful lot but to be clear every sitting Republican Senator is just as much of a climate villain as he is. Especially Mitch
with quote tweet:
@BillWeirCNN ("Bill Weir") wrote:
McConnell says on the floor of the Senate that Biden's fiery voting rights speech shows he's just mad that he couldn't spend $5T on "windmills and welfare."
@polotek ("Marco Rogers") retweeted:
@TECollab ("TechEquity Collaborative") wrote:
It’s crystal-clear that racism is inherent to every institution in this country. But knowing that racism exists isn’t nearly enough—how do you push leadership towards real anti-racist action? @hutchamachutch will join us Feb. 3 to discuss. http://ow.ly/vPhQ50Htgpv
@gaywonk ("Carlos Maza") retweeted:
@ejdickson ("Ej Dickson") wrote:
EXCLUSIVE: 270 doctors and public health experts are calling on Spotify to adopt a clear misinformation policy following a mega-viral Joe Rogan interview with Dr. Robert Malone: https://www.rollingstone.com/culture/culture-news/covid-misinformation-joe-rogan-spotify-petition-1282240/
@Blklivesmatter ("Black Lives Matter") wrote:
Tragedies like what happened in this Bronx high-rise are policy choices, not a failure of “closing the door”.
with quote tweet:
@ABCPolitics ("ABC News Politics") wrote:
NYC Mayor Eric Adams says there's a key message to take from devastating Bronx fire: "Close the door."
"If we can drill that in, we can save lives...This painful moment can turn into a purposeful moment." https://abcn.ws/3fayYD2
AmpMe _isn’t_a brand-new app that popped up just to scam unsuspecting users out of their money. See the photo atop this post? That’s from 2015, when we first covered the idea: an app that can sync up a room full of smartphones into a single gigantic speaker with no fees in sight. But as App Store scam hunter Kosta Eleftheriou points out, the app looksseriously shady more than six years later — if you downloaded it yesterday, it would immediately try to sell you on a $9.99 a week automatic recurring subscription. That’s $520 a year, an incredible sum if you pull it out as a party trick and then forget to cancel.
AppFigures estimates the app has raked in $13 million since 2018.
3. Buy lots of fake reviews on a daily basis (notice the...
isagalaev ("Ivan Sagalaev") wrote:
Okay, serious questions. Why electrons don't just stick to protons in nuclei? They're attracted electromagnetically, and there's no mechanical inertia like between planets and stars to let them spin around each other. So… How?
@fakedansavage ("Dan Savage") replied to a tweet by @fakedansavage:
*seemed
@fakedansavage ("Dan Savage") wrote:
He seems nice.
with quote tweet:
@SpiroAgnewGhost ("Spiro Agnew’s Ghost") wrote:
Former Chief of Staff of a GOP state Senator. In a road rage incident, he rammed his BMW into the Prius on the driver’s door & began pushing the car sideways, then shot a gun at the white Prius. The Prius driver drew a gun and fired back... killing him.
https://floridapolitics.com/archives/485132-john-kuczwanski-killed-in-road-rage-incident/?fbclid=IwAR3YLzjJ0PjQVvgnpxqgDCK_or2dmViUTeS9RfUsqcoY_n-8emxMPKxc96A
@gaywonk ("Carlos Maza") retweeted:
@Greene_DM ("Dan Greene") wrote:
Sucks to realize you're not living through an Event but a Condition
@bascule ("Tony "Abolish ICE" Arcieri 🦀🌹") replied to a tweet by @bascule:
"It's been exposed to the wild-wild interwebs for an indeterminate amount of time. Must be bug free!"
with quote tweet:
@Anka213 ("Lambda Duck") replied to a tweet by @fasterthanlime:
@fasterthanlime I guess "reasonable effort" does not include using any kind of formal verification or fuzz testing or, you know, writing it in an actual programming language.
@bcantrill ("Bryan Cantrill") wrote:
Me defining I2C configuration in terms of TOML: Haha fuck yeah!!! Yes!!
Me realizing that TOML's unstable table ordering behavior caused us to debug the wrong bus for a day: Well this fucking sucks. What the fuck.
@bascule ("Tony "Abolish ICE" Arcieri 🦀🌹") replied to a tweet by @bascule:
After a year of segfaults I had switched to Perl 5
@bascule ("Tony "Abolish ICE" Arcieri 🦀🌹") wrote:
Circa 1995 or so I started writing my first dynamic CGI applications in C and thought `strtok(3)` (!!!) made parsing the incoming arguments from environment variables so easy.
This is that sort of thing on steroids...
with quote tweet:
@slyphon ("* head shown actual size") wrote:
@jwz ("j͕̠̦̪͕̓͛̊̾̄ͅw̧̧̳̪̘͊̋͗̾͢͠z̢̘̞͈̺̞̩̓̽̐̋͗̆̋̚͟͜") wrote:
You'll find my balls require temporal supersampling today. Satisfying simulations of bouncing balls obeying physical laws; for a fleeting moment during the simulation, the balls pass through a beautiful regular arrangement. Each sequence is obtained by... https://jwz.org/b/yjvJ
@AOC ("Alexandria Ocasio-Cortez") replied to a tweet by @AOC:
Find it here: https://couragetochangepac.org
@AOC ("Alexandria Ocasio-Cortez") wrote:
Are you running/thinking of running in a local election (ex: council race) to help make things better?
I want to help - especially in tackling our housing crisis. We need people running everywhere. Check out our @CouragetoChange endorsement page to learn more.
Good luck! 🗳
with quote tweet:
@JCColtin ("Jeff Coltin") replied to a tweet by @JCColtin:
Rep. @AOC also asking endorsed candidates to pledge to end single-family zoning and to oppose "member deference" in some cases. 👀
https://couragetochangepac.org/wp-content/uploads/2022/01/CTC-2022-Questionnaire-1.pdf
isagalaev ("Ivan Sagalaev") wrote:
Random header: "Grocery store shortages are back. Here are some of the reasons why."
There's only one reason: unregulated, monopolized, "free" market built on workforce that can't unionize, for the sole purpose of increasing value for shareholders. Sounds familiar?
Image: Geico
We’re still waiting on the Portal movie that’s apparently been years in the making, but if you must see Portal icon / villain GLaDOS in some sort of cinematic, there’s a new Geico ad you can watch right here or at the top of this post. Yes, you read that correctly — Geico actually made a Portal-themed ad featuring GLaDOS, and the insurance company even got voice actor Ellen McLain to reprise her role as the famous robot.
If you’ve seen any Geico ad featuring Martin the Gecko from the past many years (or perhaps forever, it feels like he’s always been a character I’m aware of), this ad will be familiar territory. Martin, armed with an Aperture Science Handheld Portal Device, makes a few quips (and of course mentions that it’s possible to...
@jwz ("j͕̠̦̪͕̓͛̊̾̄ͅw̧̧̳̪̘͊̋͗̾͢͠z̢̘̞͈̺̞̩̓̽̐̋͗̆̋̚͟͜") wrote:
Tesla adds Road-Rage Mode to their murderbots. Why Tesla Can Program Its Cars to Break Road Safety Laws: Putting a Tesla in "assertive" mode will effectively direct the car to tailgate other motorists, perform unsafe passing maneuvers, and roll through... https://jwz.org/b/yjvI
@outcontextyuri ("out of context GL") wrote:
Soulmate
@Blklivesmatter ("Black Lives Matter") wrote:
We are sending our deepest condolences to the Bronx families impacted by the 5-alarm fire. If you can, donate to help support the victims of this tragedy: https://www.gofundme.com/f/relief-for-families-at-333-e-183rd-st
@polotek ("Marco Rogers") retweeted:
@brianbeutler ("Brian Beutler") wrote:
The easiest concession in the world Democrats could offer the young voters at their wits end with the party is to stop treating fascists, liars, and seditionists as people deserving of comity.
with quote tweet:
@DougAndres ("Doug Andres") wrote:
Sen. Durbin: "Perhaps the president went a little too far in rhetoric."
@bascule ("Tony "Abolish ICE" Arcieri 🦀🌹") wrote:
Perhaps we need physically isolated COVID wards which are structurally completely distinct from regular hospitals https://coloradosun.com/2022/01/12/colorado-covid-omicron-hospital-patients/
@polotek ("Marco Rogers") retweeted:
@juwanthewriter ("Juwan the Writer/Off the Record Tweeter (he/him)") wrote:
This is a persistent reality for journalists, even those working for national conglomerates. As if waiting months to hear back from jobs isn’t enough, the pay often doesn’t cover the cost of living for many, let alone self-care when the harassment and layoffs come.
with quote tweet:
@BethanyFreuden1 ("Bethany Freudenthal") wrote:
Welcome to my last paycheck. This is weekly take-home pay after 8 years as a journalist. I don’t think I can do this anymore, and I am so heartbroken. I could never afford rent and a car payment on my own with this salary. Readers need to know this.
@polotek ("Marco Rogers") retweeted:
@Blackamazon ("🗽Sydette Cosmic Dreaded Gorgon 🇬🇾") wrote:
Folks : “ We want to talk about the mental health impact of remote learning on children “
Children “ WE WILL MARCH IN THE STREETS BECAUSE WE DON’T WANT TO DIE AND WE ARE NOT LEARNING”
Folks: Crickets
@fakedansavage ("Dan Savage") replied to a tweet by @fakedansavage:
When I'm around. Don't know about you.
@fakedansavage ("Dan Savage") wrote:
Dicks, also hard.
with quote tweet:
@pagerspermer ("Bad Dad") replied to a tweet by @fakedansavage:
@fakedansavage Economics is very hard. I would stick to dicks.
@vv1lder ("emily wilder") retweeted:
@DrLSW ("Lana Wilder") replied to a tweet by @vv1lder:
@vv1lder The message here is that we must TALK to our patients with kindness and understanding. Not ignore, ridicule or patronize. Some will listen, and many of those will survive to later get the shot!
@vv1lder ("emily wilder") retweeted:
@jherrerx ("Jack Herrera") wrote:
Heartbreaking story. One thing I took from it is how a competent doctor talks with people who don't want to get vaccinated: By taking the time to sit with them, answer questions, and provide information—firmly but respectfully. Education, not admonishment or shaming.
with quote tweet:
@vv1lder ("emily wilder") wrote:
got this heartbreaking text from my mom about her experience at the hospital
“10 minutes in to my dictation, a code blue was called over the intercom…to her room. I finished my note. She didn’t make it.”
@SethMacFarlane ("Seth MacFarlane") wrote:
This was a really cool, fun, thoughtful read - part hard science, part speculative analysis, this book by @davidasinclair needs more eyeballs on it. Right up your philosophical alley if you’re an Orville fan.
@DaveHolmes ("Dave Holmes") wrote:
Uhh this is the same picture.
with quote tweet:
Uhh is this the same picture?
@joshbloch ("Joshua Bloch") retweeted:
@joshbloch ("Joshua Bloch") replied to a tweet by @WorldBollard:
@WorldBollard @GreatDismal Thanks @GreatDismal. You introduced me to the @WorldBollard Association, and I wasted more time than I'll admit to publicly.
@fakedansavage ("Dan Savage") retweeted:
@georgehahn ("George Hahn") wrote:
I wanna start a new political party. We basically do what the GOP does (change the rules, refuse to cooperate and move the goal post) but do it in our favor, for the benefit of the majority of Americans. It’s called the Surprise Party. Who’s in?
@bdurette ("Brandon DuRette") wrote:
Great job @Jason and @TWiStartups on hiring @mollywood as co-host! She's so good at oscillating between insightful commentator and naive newbie.
@fakedansavage ("Dan Savage") wrote:
Not the obituary I wanted to read today.
https://www.nytimes.com/2022/01/12/arts/music/ronnie-spector-dead.html
@travisthetechie ("Travis Smith") retweeted:
@UninvisibleTube ("Alé #GoFundMePlease ♥️") wrote:
Governments should have a Secretary of Disability to make sure they're continuing to further accessibility and disabled rights.
#DisabilityTwitter
@travisthetechie ("Travis Smith") retweeted:
@BreeNewsome ("Bree Newsome Bass") wrote:
I’m shocked at how badly this admin is managing the pandemic, honestly. I’d like to know what the inner workings are that led to this catastrophe. I don’t understand how there was no plan beyond telling ppl to vaccinate
with quote tweet:
@FOX2News ("FOX 2 Detroit") wrote:
The White House said it will send 5 million rapid COVID-19 tests and 5 million lab-based PCR tests to schools each month in an effort to keep them open. https://www.fox2detroit.com/news/biden-administration-to-send-schools-additional-10m-covid-19-tests-per-month?taid=61dee5f1b732710001518368&utm_campaign=trueanthem&utm_medium=trueanthem&utm_source=twitter
@BarackObama ("Barack Obama") replied to a tweet by @BarackObama:
The filibuster has no basis in the Constitution, and in recent years, it has become a routine way for the Senate minority to block important progress on issues supported by the majority of voters. But we can’t allow it to be used to block efforts to protect our democracy.
@BarackObama ("Barack Obama") replied to a tweet by @BarackObama:
That’s why I fully support @POTUS’s call to modify Senate rules as necessary to make sure pending voting rights legislation gets called for a vote. And every American who cares about the survival of our most cherished institutions should support the President’s call as well.
@BarackObama ("Barack Obama") wrote:
Now is the time for the U.S. Senate to do the right thing and call a vote on crucial voting rights legislation. Future generations are counting on us to protect our democracy. I wrote out some thoughts about why this is so important. https://www.usatoday.com/story/opinion/2022/01/12/obama-senate-democrats-must-protect-democracy-majority-vote/9185565002/
@VyneTTV ("Vyne (THEY/THEM)") wrote:
Your she/they and he/they friends notice when you never use the they💜
The Rust team is happy to announce a new version of Rust, 1.58.0. Rust is a programming language empowering everyone to build reliable and efficient software.
If you have a previous version of Rust installed via rustup, getting Rust 1.58.0 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 thedetailed release notes for 1.58.0 on GitHub.
Rust 1.58 brings captured identifiers in format strings, a change to theCommand
search path on Windows, more #[must_use]
annotations in the
standard library, and some new library stabilizations.
Format strings can now capture arguments simply by writing {ident}
in the
string. Formats have long accepted positional arguments (optionally by index)
and named arguments, for example:
println!("Hello, {}!", get_person()); // implicit position
println!("Hello, {0}!", get_person()); // explicit index
println!("Hello, {person}!", person = get_person()); // named
Now named arguments can also be captured from the surrounding scope, like:
let person = get_person();
// ...
println!("Hello, {person}!"); // captures the local `person`
This may also be used in formatting parameters:
let (width, precision) = get_format();
for (name, score) in get_scores() {
println!("{name}: {score:width$.precision$}");
}
Format strings can only capture plain identifiers, not arbitrary paths or
expressions. For more complicated arguments, either assign them to a local name
first, or use the older name = expression
style of formatting arguments.
This feature works in all macros accepting format strings. However, one corner
case is the panic!
macro in 2015 and 2018 editions, where panic!("{ident}")
is still treated as an unformatted string -- the compiler will warn about this
not having the intended effect. Due to the 2021 edition's update of panic
macros for improved consistency, this works as expected in 2021 panic!
.
Command
search pathOn Windows targets, std::process::Command
will no longer search the current
directory for executables. That effect was owed to historical behavior of the
win32 CreateProcess
API, so Rust was effectively searching in this order:
PATH
environment variable, if it was explicitly changed from the parent.PATH
environment variable.However, using the current directory can lead to surprising results, or even
malicious behavior when dealing with untrusted directories. For example,ripgrep
published CVE-2021-3013 when they learned that their child
processes could be intercepted in this way. Even Microsoft's own PowerShelldocuments that they do not use the current directory for security.
Rust now performs its own search without the current directory, and the legacy
16-bit directory is also not included, as there is no API to discover its
location. So the new Command
search order for Rust on Windows is:
PATH
environment variable.PATH
environment variable.Non-Windows targets continue to use their platform-specific behavior, most
often only considering the child or parent PATH
environment variable.
#[must_use]
in the standard libraryThe #[must_use]
attribute can be applied to types or functions when failing
to explicitly consider them or their output is almost certainly a bug. This has
long been used in the standard library for types like Result
, which should be
checked for error conditions. This also helps catch mistakes such as expecting
a function to mutate a value in-place, when it actually returns a new value.
Library proposal 35 was approved in October 2021 to audit and expand the
application of #[must_use]
throughout the standard library, covering many
more functions where the primary effect is the return value. This is similar
to the idea of function purity, but looser than a true language feature. Some
of these additions were present in release 1.57.0, and now in 1.58.0 the effort
has completed.
The following methods and trait implementations were stabilized.
Metadata::is_symlink
Path::is_symlink
{integer}::saturating_div
Option::unwrap_unchecked
Result::unwrap_unchecked
Result::unwrap_err_unchecked
The following previously stable functions are now const
.
Duration::new
Duration::checked_add
Duration::saturating_add
Duration::checked_sub
Duration::saturating_sub
Duration::checked_mul
Duration::saturating_mul
Duration::checked_div
There are other changes in the Rust 1.58.0 release: check out what changed inRust,Cargo, and Clippy.
Many people came together to create Rust 1.58.0. We couldn't have done it without all of you.Thanks!
@vv1lder ("emily wilder") retweeted:
@dataeditor ("Steven Rich") wrote:
what the headline does not tell you is that approximately two thirds of those officers died from covid
with quote tweet:
@fox28columbus ("FOX 28 Columbus") wrote:
458 US officers died in the line of duty in 2021, highest since 1930 https://myfox28columbus.com/news/nation-world/458-us-officers-died-in-the-line-of-duty-in-2021-highest-since-1930
@zkat__ ("tired but ❄️festive🎄 gay") retweeted:
@DualPowerApp ("The Dual Power App") wrote:
We go live tonight.
7 PM (EST).
If you’re a developer or UI/UX designer who understands the importance of technology in our fight for systems change, please join us at the link below:
#DualPower
@josheidelson ("Josh Eidelson") wrote:
Scoop: Around 566 New York Times tech workers will get a unionization vote starting this month, an NLRB regional director ruled, despite the company's efforts to shrink the bargaining unit https://www.bloomberg.com/news/articles/2022-01-12/new-york-times-tech-staff-to-vote-on-unionizing-this-month @NYTGuildTech @nyguild @CWAUnion
@vv1lder ("emily wilder") wrote:
got this heartbreaking text from my mom about her experience at the hospital
“10 minutes in to my dictation, a code blue was called over the intercom…to her room. I finished my note. She didn’t make it.”
@polotek ("Marco Rogers") replied to a tweet by @polotek:
But that's weird too, because I currently do *not* have the quality filter enabled.
Looking at the message on this setting, it says "duplicate and automated tweets". So maybe it's less algorithmic than I assume it is?
owl@beach.city ("ugglan") wrote:
Äntligen, UBI (universitetsberoende inkomst)
owl@beach.city ("ugglan") wrote:
"Snart kan du plugga med lön"
👀
@davidcrespo ("conputer dipshit") wrote:
once you do this people might start to wonder why you can't just do it all the time
with quote tweet:
@DemocracyDocket ("Democracy Docket") wrote:
🚨BREAKING: Senator Schumer announces plan to push through filibuster and proceed with voting rights legislation using a procedure known as "messages between the Houses" in a caucus memo.
Here's what you need to know🧵👇
@polotek ("Marco Rogers") replied to a tweet by @polotek:
There also seems to be a difference between the main replies twitter shows you and a separate group they refer to as "additional replies". I assume that is mostly determined by the "quality filter". Which is twitter's name for the algorithm they use to filter out replies.
@polotek ("Marco Rogers") replied to a tweet by @polotek:
The message on one of the false positives said it was hidden for "potentially offensive content". There was nothing remotely offensive there.
@zkat__ ("tired but ❄️festive🎄 gay") wrote:
Ahhh yes the Notorious RBG that everyone was making idolizing shirts about
with quote tweet:
@peachofababy ("amy") replied to a tweet by @peachofababy:
Idk I knew she was problematic in a lot of ways but these are the two opinions authored by her I’ve read for a class that made me realize she was actually quite evil
@zkat__ ("tired but ❄️festive🎄 gay") retweeted:
@AlexCatsoulis ("Alex Cat") wrote:
I just find it wild when non profits doing “social justice” work are anti-union. Your org is fighting for racial equity, immigrant rights, and gender equality but you’re against the 1 thing that would significantly benefit every marginalized group you’re supposedly fighting for?
@zkat__ ("tired but ❄️festive🎄 gay") retweeted:
@lazerwalker ("emilia ✨") wrote:
cw homophobia and transphobia.
Tabletop Simulator is not currently a safe space/tool/game/??? for you if you’re queer.
with quote tweet:
@vexedfennec ("Carci, but angy") wrote:
It got dramatically worse. Entirely as expected.
Unless @TabletopSim takes some pretty serious steps to get things back under control--and I honestly don't have any expectation they will--I think this is pretty much it for LGBTQ+ people being accepted or even safe on BG's game. https://twitter.com/vexedfennec/status/1480945724862840833
A new open letter from Angela Hession, Twitch’s vice president of global trust and safety, details the company’s approach to making its streaming platform a more harmonious place, most notably the deletion of millions of bots in an attempt to stem the site’s hate raid epidemic.
@zkat__ ("tired but ❄️festive🎄 gay") wrote:
She
with quote tweet:
@anhdangerous ("AnhDang") wrote:
My favorite bitch from Harrow the Ninth, Ianthe Tridentarius
@zkat__ ("tired but ❄️festive🎄 gay") retweeted:
@ctrlshifti ("Kat Maddox") wrote:
we are no longer in late stage capitalism. this is end game capitalism. upgrade your gear we're going raiding
with quote tweet:
@AlanRMacLeod ("Alan MacLeod") wrote:
What stage of capitalism is this?
@zkat__ ("tired but ❄️festive🎄 gay") retweeted:
@XLarimeX ("Larime Taylor") replied to a tweet by @XLarimeX:
This is an anti-NFT: free art you can save, print, and color. I'm a disabled artist, I draw with my mouth, and art is how I make a living and survive.
If you like it, consider giving a tip, or commission me! DMs are open!
PayPal: xlarimex@gmail.com
CashApp: $LarimeTaylor
@zkat__ ("tired but ❄️festive🎄 gay") retweeted:
@AdvoGabby ("Gabrielle Monroe") wrote:
#FuckFOSTA
Let's explore legislation and think tank how to amend FOSTA/SESTA to protect both trafficking survivors and sex workers.
Don't know legislation? We'll teach you.
Tuesdays - starting January 11th
3-4:30pm est every Tuesday.DM for invite.
SWers & accomplices. ✊🥰
@chrisbiscardi (":party-corgi:") wrote:
If you write JavaScript, reply to this with what you think about Rust.
@trixiemattel ("Trixie Mattel™") wrote:
did you know blueprints aren’t blue? @trixiemotel
@zkat__ ("tired but ❄️festive🎄 gay") retweeted:
@myunclesmemes ("my uncle’s meme stash") wrote:
Let's take a moment to thank them
owl@beach.city ("ugglan") wrote:
a11y is hard to beat though
owl@beach.city ("ugglan") wrote:
"Eyjafjallajökull, sometimes referred to as E15"
🤣
👀
with quote tweet:
@JustinBeckwith ("Justin Beckwith") wrote:
Calling all rustaceans! 🦀 We're looking for an experienced Rust engineer to come help us build the open source Google Cloud Rust SDK. Come work with us! https://careers.google.com/jobs/results/99961170103804614-senior-software-engineer-client-libraries-rust/