forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#99288 - Aaron1011:stable-intrinsics, r=yaahc
Mark stabilized intrinsics with `rustc_allowed_through_unstable_modules` Fixes rust-lang#99286 PR rust-lang#95956 accidentally made these intrinsics unstable when accessed through the unstable path segment 'std::intrinsics'
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/test/ui/stability-attribute/issue-99286-stable-intrinsics.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// check-pass | ||
// | ||
// Regression test for issue #99286 | ||
// Tests that stabilized intrinsics are accessible | ||
// through 'std::intrinsics', even though the module | ||
// is unstable. | ||
|
||
#![allow(unused_imports)] | ||
#![allow(deprecated)] | ||
|
||
use std::intrinsics::drop_in_place as _; | ||
use std::intrinsics::copy_nonoverlapping as _; | ||
use std::intrinsics::copy as _; | ||
use std::intrinsics::write_bytes as _; | ||
use std::intrinsics::{drop_in_place, copy_nonoverlapping, copy, write_bytes}; | ||
|
||
fn main() {} |