Skip to content

Commit 3129d37

Browse files
committed
Auto merge of #142962 - GuillaumeGomez:rollup-do1coji, r=GuillaumeGomez
Rollup of 7 pull requests Successful merges: - #137268 (Allow comparisons between `CStr`, `CString`, and `Cow<CStr>`.) - #142704 (Remove the deprecated unstable `concat_idents!` macro) - #142742 ([win][aarch64] Fix linking statics on Arm64EC, take 2) - #142843 (Enable reproducible-build-2 for Windows MSVC) - #142916 (rustdoc-json: Add test for `#[optimize(..)]`) - #142919 (rustdoc-json: Add test for `#[cold]`) - #142944 (Stats output tweaks) Failed merges: - #142825 (Port `#[track_caller]` to the new attribute system) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 36b2163 + e8dd3c3 commit 3129d37

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+700
-603
lines changed

compiler/rustc_builtin_macros/messages.ftl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,6 @@ builtin_macros_concat_bytes_oob = numeric literal is out of bounds
118118
builtin_macros_concat_bytestr = cannot concatenate a byte string literal
119119
builtin_macros_concat_c_str_lit = cannot concatenate a C string literal
120120
121-
builtin_macros_concat_idents_ident_args = `concat_idents!()` requires ident args
122-
123-
builtin_macros_concat_idents_missing_args = `concat_idents!()` takes 1 or more arguments
124-
builtin_macros_concat_idents_missing_comma = `concat_idents!()` expecting comma
125121
builtin_macros_concat_missing_literal = expected a literal
126122
.note = only literals (like `"foo"`, `-42` and `3.14`) can be passed to `concat!()`
127123

compiler/rustc_builtin_macros/src/concat_idents.rs

Lines changed: 0 additions & 71 deletions
This file was deleted.

compiler/rustc_builtin_macros/src/errors.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -299,27 +299,6 @@ pub(crate) struct ConcatBytesBadRepeat {
299299
pub(crate) span: Span,
300300
}
301301

302-
#[derive(Diagnostic)]
303-
#[diag(builtin_macros_concat_idents_missing_args)]
304-
pub(crate) struct ConcatIdentsMissingArgs {
305-
#[primary_span]
306-
pub(crate) span: Span,
307-
}
308-
309-
#[derive(Diagnostic)]
310-
#[diag(builtin_macros_concat_idents_missing_comma)]
311-
pub(crate) struct ConcatIdentsMissingComma {
312-
#[primary_span]
313-
pub(crate) span: Span,
314-
}
315-
316-
#[derive(Diagnostic)]
317-
#[diag(builtin_macros_concat_idents_ident_args)]
318-
pub(crate) struct ConcatIdentsIdentArgs {
319-
#[primary_span]
320-
pub(crate) span: Span,
321-
}
322-
323302
#[derive(Diagnostic)]
324303
#[diag(builtin_macros_bad_derive_target, code = E0774)]
325304
pub(crate) struct BadDeriveTarget {

compiler/rustc_builtin_macros/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ mod cfg_eval;
3636
mod compile_error;
3737
mod concat;
3838
mod concat_bytes;
39-
mod concat_idents;
4039
mod define_opaque;
4140
mod derive;
4241
mod deriving;
@@ -84,7 +83,6 @@ pub fn register_builtin_macros(resolver: &mut dyn ResolverExpand) {
8483
compile_error: compile_error::expand_compile_error,
8584
concat: concat::expand_concat,
8685
concat_bytes: concat_bytes::expand_concat_bytes,
87-
concat_idents: concat_idents::expand_concat_idents,
8886
const_format_args: format::expand_format_args,
8987
core_panic: edition_panic::expand_panic,
9088
env: env::expand_env,

0 commit comments

Comments
 (0)