Skip to content

Commit d817a9f

Browse files
committed
Remove deprecated LLVM-style inline assembly
1 parent 02899ce commit d817a9f

File tree

5 files changed

+6
-35
lines changed

5 files changed

+6
-35
lines changed

core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@
180180
#![feature(intrinsics)]
181181
#![feature(lang_items)]
182182
#![feature(link_llvm_intrinsics)]
183-
#![feature(llvm_asm)]
184183
#![feature(min_specialization)]
185184
#![feature(mixed_integer_ops)]
186185
#![feature(must_not_suspend)]

core/src/macros/mod.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,32 +1373,6 @@ pub(crate) mod builtin {
13731373
($cond:expr, $($arg:tt)+) => {{ /* compiler built-in */ }};
13741374
}
13751375

1376-
/// LLVM-style inline assembly.
1377-
///
1378-
/// Read the [unstable book] for the usage.
1379-
///
1380-
/// [unstable book]: ../unstable-book/library-features/llvm-asm.html
1381-
#[unstable(
1382-
feature = "llvm_asm",
1383-
issue = "70173",
1384-
reason = "prefer using the new asm! syntax instead"
1385-
)]
1386-
#[rustc_deprecated(
1387-
since = "1.56",
1388-
reason = "will be removed from the compiler, use asm! instead"
1389-
)]
1390-
#[rustc_builtin_macro]
1391-
#[macro_export]
1392-
macro_rules! llvm_asm {
1393-
("assembly template"
1394-
: $("output"(operand),)*
1395-
: $("input"(operand),)*
1396-
: $("clobbers",)*
1397-
: $("options",)*) => {
1398-
/* compiler built-in */
1399-
};
1400-
}
1401-
14021376
/// Prints passed tokens into the standard output.
14031377
#[unstable(
14041378
feature = "log_syntax",

core/src/prelude/v1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ pub use crate::hash::macros::Hash;
5656
#[doc(no_inline)]
5757
pub use crate::{
5858
assert, cfg, column, compile_error, concat, concat_idents, env, file, format_args,
59-
format_args_nl, include, include_bytes, include_str, line, llvm_asm, log_syntax, module_path,
60-
option_env, stringify, trace_macros,
59+
format_args_nl, include, include_bytes, include_str, line, log_syntax, module_path, option_env,
60+
stringify, trace_macros,
6161
};
6262

6363
#[unstable(

std/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@
294294
#![feature(intra_doc_pointers)]
295295
#![feature(lang_items)]
296296
#![feature(linkage)]
297-
#![feature(llvm_asm)]
298297
#![feature(log_syntax)]
299298
#![feature(map_try_insert)]
300299
#![feature(maybe_uninit_extra)]
@@ -572,8 +571,8 @@ pub use core::{
572571
#[allow(deprecated)]
573572
pub use core::{
574573
assert, assert_matches, cfg, column, compile_error, concat, concat_idents, const_format_args,
575-
env, file, format_args, format_args_nl, include, include_bytes, include_str, line, llvm_asm,
576-
log_syntax, module_path, option_env, stringify, trace_macros,
574+
env, file, format_args, format_args_nl, include, include_bytes, include_str, line, log_syntax,
575+
module_path, option_env, stringify, trace_macros,
577576
};
578577

579578
#[unstable(

std/src/prelude/v1.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ pub use crate::result::Result::{self, Err, Ok};
4040
#[doc(no_inline)]
4141
pub use core::prelude::v1::{
4242
assert, cfg, column, compile_error, concat, concat_idents, env, file, format_args,
43-
format_args_nl, include, include_bytes, include_str, line, llvm_asm, log_syntax, module_path,
44-
option_env, stringify, trace_macros, Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq,
45-
PartialOrd,
43+
format_args_nl, include, include_bytes, include_str, line, log_syntax, module_path, option_env,
44+
stringify, trace_macros, Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd,
4645
};
4746

4847
#[unstable(

0 commit comments

Comments
 (0)