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

Rollup of 9 pull requests #118655

Merged
merged 33 commits into from
Dec 6, 2023
Merged
Changes from 2 commits
Commits
Show all changes
33 commits
Select commit Hold shift click to select a range
ed87ecc
Update variable name to fix `unused_variables` warning
wdunicornpro Nov 10, 2023
d1583eb
lib features ending in '_internals?' are internal
RalfJung Nov 21, 2023
74834a9
also make 'core_intrinsics' internal
RalfJung Nov 22, 2023
9ae3213
Simplify Default for tuples
DaniPopes Nov 27, 2023
13c16e3
Use OnceCell in cell module documentation
marcin-serwin Nov 29, 2023
114380d
Give `Handler::fatal` and `Session::fatal` the same return type.
nnethercote Dec 1, 2023
d4933aa
Inline and remove `DiagnosticBuilder::new_diagnostic_*` functions.
nnethercote Dec 3, 2023
ab640ca
Inline and remove more `DiagnosticBuilder::new_diagnostic_*` functions.
nnethercote Dec 3, 2023
6a95dee
Rename some arguments.
nnethercote Dec 3, 2023
ed95f39
Always use `G` for `EmissionGuarantee` type variables.
nnethercote Dec 3, 2023
32dc78e
Avoid `Diagnostic::new_with_code(..., None, ...)`.
nnethercote Dec 3, 2023
d51b3db
Remove some unused code, and downgrade some `pub`s.
nnethercote Dec 3, 2023
b7e18ca
De-genericize some `IntoDiagnostic` impls.
nnethercote Dec 3, 2023
8c20ad6
Use `DiagnosticBuilder::new` more.
nnethercote Dec 3, 2023
a8ff867
Move some `HandlerInner` functions to `Handler`.
nnethercote Dec 4, 2023
883bdb7
Remove `HandlerInner::emit`.
nnethercote Dec 4, 2023
3ab05ca
Make `Handler::{err,bug}` more like `Handler::{warn,note}`.
nnethercote Dec 4, 2023
7811c97
Inline and remove `fatal_no_raise`.
nnethercote Dec 4, 2023
d627e2a
Fix parser ICE when recovering `dyn`/`impl` after `for<...>`
sjwang05 Dec 4, 2023
a0ba895
bootstrap(builder.rs): Don't explicitly warn against `semicolon_in_ex…
Xanewok Dec 5, 2023
334577f
Add deeply_normalize_for_diagnostics, use it in coherence
compiler-errors Nov 27, 2023
3448284
Continue folding if deep normalizer fails
compiler-errors Nov 28, 2023
b97ff8e
Add print_trait_sugared
compiler-errors Nov 24, 2023
f6c30b3
Add more
compiler-errors Nov 24, 2023
2d2a76d
Rollup merge of #117793 - wdunicornpro:patch-1, r=workingjubilee
compiler-errors Dec 5, 2023
19bf749
Rollup merge of #118123 - RalfJung:internal-lib-features, r=compiler-…
compiler-errors Dec 5, 2023
ad23f30
Rollup merge of #118268 - compiler-errors:pretty-print, r=estebank
compiler-errors Dec 5, 2023
598ca0e
Rollup merge of #118346 - compiler-errors:deeply-normalize-for-diagno…
compiler-errors Dec 5, 2023
aa5f251
Rollup merge of #118350 - DaniPopes:tuple-default, r=workingjubilee
compiler-errors Dec 5, 2023
6fa93e8
Rollup merge of #118450 - marcin-serwin:master, r=workingjubilee
compiler-errors Dec 5, 2023
dbcde57
Rollup merge of #118585 - sjwang05:issue-118564, r=compiler-errors
compiler-errors Dec 5, 2023
e813370
Rollup merge of #118587 - nnethercote:cleanup-error-handlers-2, r=com…
compiler-errors Dec 5, 2023
0a8c0f7
Rollup merge of #118642 - Xanewok:patch-1, r=clubby789
compiler-errors Dec 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions library/core/src/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,17 143,17 @@
//!
//! ```
//! # #![allow(dead_code)]
//! use std::cell::RefCell;
//! use std::cell::OnceCell;
//!
//! struct Graph {
//! edges: Vec<(i32, i32)>,
//! span_tree_cache: RefCell<Option<Vec<(i32, i32)>>>
//! span_tree_cache: OnceCell<Vec<(i32, i32)>>
//! }
//!
//! impl Graph {
//! fn minimum_spanning_tree(&self) -> Vec<(i32, i32)> {
//! self.span_tree_cache.borrow_mut()
//! .get_or_insert_with(|| self.calc_span_tree())
//! self.span_tree_cache
//! .get_or_init(|| self.calc_span_tree())
//! .clone()
//! }
//!
Expand Down