Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c84f2b2
Remove some unnecessary uses of `FieldDef::ident`
camelid Jan 12, 2022
51d7665
rustdoc: remove hand-rolled isatty
euclio Jan 12, 2022
867554a
Fix suggesting turbofish with lifetime arguments
compiler-errors Jan 13, 2022
7781636
Link sidebar "location" heading to top of page
jsha Jan 11, 2022
dae6dc6
Fix `try wrapping expression in variant` suggestion with struct field…
compiler-errors Jan 12, 2022
272fb23
Don't use source-map when detecting struct field shorthand
compiler-errors Jan 13, 2022
953da98
Rename Printer constructor from mk_printer() to Printer::new()
dtolnay Jan 15, 2022
29b659a
Fix missing dot separator
GuillaumeGomez Jan 15, 2022
75967ce
Add test for dot separator
GuillaumeGomez Jan 15, 2022
8f33b4e
Copy an example to PartialOrd as well
azdavis Jan 16, 2022
828febf
Clear up discriminants with more examples
azdavis Jan 16, 2022
bfe0a4e
Touch up stray comment in PR 92953
dtolnay Jan 16, 2022
361ef2a
Docs: recommend VecDeque instead of Vec::remove(0)
kornelski Jan 16, 2022
bb1423e
fix const_ptr_offset_from tracking issue
RalfJung Jan 16, 2022
869b7bc
Rollup merge of #92795 - jsha:link-to-top, r=GuillaumeGomez
matthiaskrgr Jan 17, 2022
3de7276
Rollup merge of #92799 - rust-lang:followup-from-92533, r=Aaron1011
matthiaskrgr Jan 17, 2022
ff1b653
Rollup merge of #92808 - compiler-errors:wrap-struct-shorthand-field-…
matthiaskrgr Jan 17, 2022
681271e
Rollup merge of #92819 - euclio:atty, r=CraftSpider
matthiaskrgr Jan 17, 2022
c6ff4be
Rollup merge of #92876 - compiler-errors:fix-turbofish-lifetime-sugge…
matthiaskrgr Jan 17, 2022
216ce7c
Rollup merge of #92921 - dtolnay:printernew, r=wesleywiser
matthiaskrgr Jan 17, 2022
0aae1ec
Rollup merge of #92937 - GuillaumeGomez:dot-separator, r=jsha
matthiaskrgr Jan 17, 2022
775fe37
Rollup merge of #92953 - azdavis:azdavis-copy-example, r=dtolnay
matthiaskrgr Jan 17, 2022
7bdd978
Rollup merge of #92977 - kornelski:popdoc, r=dtolnay
matthiaskrgr Jan 17, 2022
9612038
Rollup merge of #92981 - RalfJung:const_ptr_offset_from, r=dtolnay
matthiaskrgr Jan 17, 2022
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/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1893,7 +1893,7 @@ extern "rust-intrinsic" {
pub fn nontemporal_store<T>(ptr: *mut T, val: T);

/// See documentation of `<*const T>::offset_from` for details.
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "41079")]
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "92980")]
pub fn ptr_offset_from<T>(ptr: *const T, base: *const T) -> isize;

/// See documentation of `<*const T>::guaranteed_eq` for details.
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/ptr/const_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ impl<T: ?Sized> *const T {
/// }
/// ```
#[stable(feature = "ptr_offset_from", since = "1.47.0")]
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "41079")]
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "92980")]
#[inline]
pub const unsafe fn offset_from(self, origin: *const T) -> isize
where
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/ptr/mut_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ impl<T: ?Sized> *mut T {
/// }
/// ```
#[stable(feature = "ptr_offset_from", since = "1.47.0")]
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "41079")]
#[rustc_const_unstable(feature = "const_ptr_offset_from", issue = "92980")]
#[inline(always)]
pub const unsafe fn offset_from(self, origin: *const T) -> isize
where
Expand Down