Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
29fd82b
Be less confident when `dyn` suggestion is not checked for object safety
trevyn Jan 20, 2024
ccd6513
Additional doc links and explanation of `Wake`.
kpreid Oct 3, 2023
cef46f9
URL-encode chars in fragment.
kpreid Nov 6, 2023
a6c91f0
Remove the link.
kpreid Feb 11, 2024
114b0c7
std: enabling new netbsd (10) calls.
devnexen Dec 8, 2023
4ac90e2
Fix suggestion span for ?Sized
OdenShirataki Feb 11, 2024
fb5ed29
Clarify the lifetimes of allocations returned by the `Allocator` trait
Amanieu Dec 12, 2023
1c7ea30
implement `Default` for `AsciiChar`
joseluis Feb 13, 2024
8e9c8dd
Add information about allocation lifetime to Allocator::allocate
Amanieu Feb 13, 2024
f4e8863
Uplift TypeVisitableExt into rustc_type_ir
compiler-errors Jan 30, 2024
edc5053
Add assertions back to canonicalizer
compiler-errors Jan 30, 2024
7e80867
Move visitable bounds up into interner
compiler-errors Feb 13, 2024
7ec9601
Add test.
cjgillot Feb 13, 2024
a97e4af
Fix handling of adjustment casts.
cjgillot Feb 13, 2024
24b52fd
Do not point at `#[allow(_)]` as the reason for compat lint triggering
estebank Feb 13, 2024
71f2e3a
Optimize `delayed_bug` handling.
nnethercote Feb 13, 2024
b06f891
Fix typos in `OneLock` doc
IgorLaborieWefox Feb 14, 2024
ee88f34
Fix two UI tests with incorrect directive / invalid revision
jieyouxu Feb 10, 2024
05849e8
Use fewer delayed bugs.
nnethercote Feb 14, 2024
5d114f3
Rollup merge of #116387 - kpreid:wake-doc, r=cuviper
oli-obk Feb 14, 2024
1c7a999
Rollup merge of #118738 - devnexen:netbsd10_update, r=cuviper
oli-obk Feb 14, 2024
407de0e
Rollup merge of #118890 - Amanieu:allocator-lifetime, r=Mark-Simulacrum
oli-obk Feb 14, 2024
cc54612
Rollup merge of #120498 - compiler-errors:type-flags, r=lcnr
oli-obk Feb 14, 2024
c4371a7
Rollup merge of #120530 - trevyn:issue-116434, r=compiler-errors
oli-obk Feb 14, 2024
f3e66ed
Rollup merge of #120915 - OdenShirataki:master, r=fmease
oli-obk Feb 14, 2024
bad2cb0
Rollup merge of #121015 - nnethercote:opt-delayed-bug, r=oli-obk
oli-obk Feb 14, 2024
c1a8021
Rollup merge of #121024 - joseluis:feat-asciichar-default, r=scottmcm
oli-obk Feb 14, 2024
93bc340
Rollup merge of #121039 - cjgillot:gvn-adjust, r=compiler-errors
oli-obk Feb 14, 2024
f77870e
Rollup merge of #121045 - jieyouxu:fix-ui-tests, r=oli-obk
oli-obk Feb 14, 2024
9e31121
Rollup merge of #121049 - estebank:issue-121009, r=fmease
oli-obk Feb 14, 2024
638f525
Rollup merge of #121071 - nnethercote:fewer-delayed-bugs, r=oli-obk
oli-obk Feb 14, 2024
96635da
Rollup merge of #121073 - IgorLaborieWefox:patch-1, r=workingjubilee
oli-obk Feb 14, 2024
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
2 changes: 1 addition & 1 deletion library/core/src/ascii/ascii_char.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ use crate::mem::transmute;
#[unstable(feature = "ascii_char", issue = "110998")]
#[repr(u8)]
pub enum AsciiChar {
/// U+0000
/// U+0000 (The default variant)
#[unstable(feature = "ascii_char_variants", issue = "110998")]
Null = 0,
/// U+0001
Expand Down
3 changes: 3 additions & 0 deletions library/core/src/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#![stable(feature = "rust1", since = "1.0.0")]

use crate::ascii::Char as AsciiChar;

/// A trait for giving a type a useful default value.
///
/// Sometimes, you want to fall back to some kind of default value, and
Expand Down Expand Up @@ -158,6 +160,7 @@ macro_rules! default_impl {
default_impl! { (), (), "Returns the default value of `()`" }
default_impl! { bool, false, "Returns the default value of `false`" }
default_impl! { char, '\x00', "Returns the default value of `\\x00`" }
default_impl! { AsciiChar, AsciiChar::Null, "Returns the default value of `Null`" }

default_impl! { usize, 0, "Returns the default value of `0`" }
default_impl! { u8, 0, "Returns the default value of `0`" }
Expand Down