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 12 pull requests #101073

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e540425
Add a `File::create_new` constructor
joshtriplett Jul 2, 2022
152c851
Make forward compatibility lint deprecated_cfg_attr_crate_type_name d…
est31 Jul 26, 2022
8998024
Correct test-args to compiletest on Windows
czzrr Aug 19, 2022
e91cd39
session: diagnostic migration lint on more fns
davidtwco Aug 19, 2022
e6a3632
errors: `IntoDiagnosticArg` for `io::Error`/paths
davidtwco Aug 19, 2022
3becaaf
incremental: migrate diagnostics
davidtwco Aug 19, 2022
6a1f7af
Use direct pointer to filter_dirs function
est31 Aug 23, 2022
0a6af98
Simplify unicode_downloads.rs
est31 Aug 23, 2022
754b3e7
Change hint to correct path
est31 Aug 23, 2022
a788650
Remove some documentation duplicated between `writeln!` and `write!`
joshtriplett Aug 24, 2022
3c8618f
Update `write!` docs: can now import traits as `_` to avoid conflicts
joshtriplett Aug 24, 2022
589db1f
Expand example to show how to implement qualified trait names
joshtriplett Aug 24, 2022
cb843a0
Code deduplication in tool_only_multipart_suggestion
Xiretza Aug 22, 2022
ae937cc
Clarify comment to fit `as _` better
joshtriplett Aug 24, 2022
ad93272
Stabilize `const_ptr_offset_from`.
fee1-dead Apr 20, 2022
69ad634
Do not include `const_ptr_sub_ptr` in this stabilization
fee1-dead May 12, 2022
7529029
Provide structured suggestion for `hashmap[idx] = val`
estebank Aug 25, 2022
e7b7f88
rustdoc: omit start/end tags for empty item description blocks
notriddle Aug 26, 2022
4c27952
Use span_suggestion_with_style in SessionSubdiagnostic derive
Xiretza Aug 22, 2022
a134cd4
SessionSubdiagnostic: make `#[applicability]` optional
Xiretza Aug 26, 2022
181ce39
Unify indentation in subdiagnostic-derive test
Xiretza Aug 26, 2022
8bb4b5f
Support parsing IP addresses from a byte string
marmeladema Mar 12, 2022
016e874
Add `IsTerminal` trait to determine if a descriptor or handle is a te…
joshtriplett Jun 12, 2022
489b73b
Make is_terminal fail fast if a process has no console at all
joshtriplett Jun 20, 2022
d2cceb7
Rewrite FILE_NAME_INFO handling to avoid enlarging slice reference
joshtriplett Aug 24, 2022
72541dd
Rework SessionSubdiagnostic derive to support multipart_suggestion
Xiretza Aug 23, 2022
4854239
Rollup merge of #94890 - marmeladema:ip-addr-try-from-bytes, r=joshtr…
compiler-errors Aug 27, 2022
de6ab5a
Rollup merge of #96240 - fee1-dead-contrib:stabilize_const_offset_fro…
compiler-errors Aug 27, 2022
33b8db1
Rollup merge of #98033 - joshtriplett:is-terminal-fd-handle, r=thomcc
compiler-errors Aug 27, 2022
9a0172c
Rollup merge of #98801 - joshtriplett:file-create-new, r=thomcc
compiler-errors Aug 27, 2022
2910abe
Rollup merge of #99784 - est31:deny_cfg_attr_crate_type_name, r=Mark-…
compiler-errors Aug 27, 2022
bbed968
Rollup merge of #100754 - davidtwco:translation-incremental, r=compil…
compiler-errors Aug 27, 2022
d9dd336
Rollup merge of #100811 - czzrr:master, r=Mark-Simulacrum
compiler-errors Aug 27, 2022
00f0ba0
Rollup merge of #100924 - est31:closure_to_fn_ptr, r=Mark-Simulacrum
compiler-errors Aug 27, 2022
2fd242c
Rollup merge of #100953 - joshtriplett:write-docs, r=Mark-Simulacrum
compiler-errors Aug 27, 2022
2f50d33
Rollup merge of #100970 - Xiretza:derive-multipart-suggestion, r=davi…
compiler-errors Aug 27, 2022
5cc0d3a
Rollup merge of #101002 - estebank:hashmap-idx, r=davidtwco
compiler-errors Aug 27, 2022
8468c71
Rollup merge of #101018 - notriddle:notriddle/item-right-docblock-sho…
compiler-errors Aug 27, 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
Prev Previous commit
Next Next commit
Do not include const_ptr_sub_ptr in this stabilization
  • Loading branch information
fee1-dead committed Aug 25, 2022
commit 69ad63480820009278c470a67485e3505f03a633
2 changes: 1 addition & 1 deletion library/core/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2017,7 +2017,7 @@ extern "rust-intrinsic" {
pub fn ptr_offset_from<T>(ptr: *const T, base: *const T) -> isize;

/// See documentation of `<*const T>::sub_ptr` for details.
#[rustc_const_stable(feature = "const_ptr_offset_from", since = "1.65.0")]
#[rustc_const_unstable(feature = "const_ptr_sub_ptr", issue = "95892")]
pub fn ptr_offset_from_unsigned<T>(ptr: *const T, base: *const T) -> usize;

/// See documentation of `<*const T>::guaranteed_eq` for details.
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/consts/offset_from_ub.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![feature(const_ptr_sub_ptr)]
#![feature(core_intrinsics)]

use std::intrinsics::{ptr_offset_from, ptr_offset_from_unsigned};
Expand Down