Rollup merge of #125596 - nnethercote:rental-hard-error, r=estebank
Convert `proc_macro_back_compat` lint to an unconditional error. We still check for the `rental`/`allsorts-rental` crates. But now if they are detected we just emit a fatal error, instead of emitting a warning and providing alternative behaviour. The original "hack" implementing alternative behaviour was added in #73345. The lint was added in #83127. The tracking issue is #83125. The direct motivation for the change is that providing the alternative behaviour is interfering with #125174 and follow-on work. r? ``@estebank``
This commit is contained in:
commit
fa96e2cb4f
15 changed files with 75 additions and 601 deletions
|
@ -124,6 +124,9 @@ expand_not_a_meta_item =
|
||||||
expand_only_one_word =
|
expand_only_one_word =
|
||||||
must only be one word
|
must only be one word
|
||||||
|
|
||||||
|
expand_proc_macro_back_compat = using an old version of `{$crate_name}`
|
||||||
|
.note = older versions of the `{$crate_name}` crate no longer compile; please update to `{$crate_name}` v{$fixed_version}, or switch to one of the `{$crate_name}` alternatives
|
||||||
|
|
||||||
expand_proc_macro_derive_panicked =
|
expand_proc_macro_derive_panicked =
|
||||||
proc-macro derive panicked
|
proc-macro derive panicked
|
||||||
.help = message: {$message}
|
.help = message: {$message}
|
||||||
|
|
|
@ -14,8 +14,7 @@ use rustc_data_structures::fx::FxIndexMap;
|
||||||
use rustc_data_structures::sync::{self, Lrc};
|
use rustc_data_structures::sync::{self, Lrc};
|
||||||
use rustc_errors::{DiagCtxt, ErrorGuaranteed, PResult};
|
use rustc_errors::{DiagCtxt, ErrorGuaranteed, PResult};
|
||||||
use rustc_feature::Features;
|
use rustc_feature::Features;
|
||||||
use rustc_lint_defs::builtin::PROC_MACRO_BACK_COMPAT;
|
use rustc_lint_defs::{BufferedEarlyLint, RegisteredTools};
|
||||||
use rustc_lint_defs::{BufferedEarlyLint, BuiltinLintDiag, RegisteredTools};
|
|
||||||
use rustc_parse::{parser, MACRO_ARGUMENTS};
|
use rustc_parse::{parser, MACRO_ARGUMENTS};
|
||||||
use rustc_session::config::CollapseMacroDebuginfo;
|
use rustc_session::config::CollapseMacroDebuginfo;
|
||||||
use rustc_session::{parse::ParseSess, Limit, Session};
|
use rustc_session::{parse::ParseSess, Limit, Session};
|
||||||
|
@ -1330,21 +1329,17 @@ pub fn parse_macro_name_and_helper_attrs(
|
||||||
Some((trait_ident.name, proc_attrs))
|
Some((trait_ident.name, proc_attrs))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This nonterminal looks like some specific enums from
|
/// If this item looks like a specific enums from `rental`, emit a fatal error.
|
||||||
/// `proc-macro-hack` and `procedural-masquerade` crates.
|
/// See #73345 and #83125 for more details.
|
||||||
/// We need to maintain some special pretty-printing behavior for them due to incorrect
|
|
||||||
/// asserts in old versions of those crates and their wide use in the ecosystem.
|
|
||||||
/// See issue #73345 for more details.
|
|
||||||
/// FIXME(#73933): Remove this eventually.
|
/// FIXME(#73933): Remove this eventually.
|
||||||
fn pretty_printing_compatibility_hack(item: &Item, sess: &Session) -> bool {
|
fn pretty_printing_compatibility_hack(item: &Item, sess: &Session) {
|
||||||
let name = item.ident.name;
|
let name = item.ident.name;
|
||||||
if name == sym::ProceduralMasqueradeDummyType {
|
if name == sym::ProceduralMasqueradeDummyType
|
||||||
if let ast::ItemKind::Enum(enum_def, _) = &item.kind {
|
&& let ast::ItemKind::Enum(enum_def, _) = &item.kind
|
||||||
if let [variant] = &*enum_def.variants {
|
&& let [variant] = &*enum_def.variants
|
||||||
if variant.ident.name == sym::Input {
|
&& variant.ident.name == sym::Input
|
||||||
let filename = sess.source_map().span_to_filename(item.ident.span);
|
&& let FileName::Real(real) = sess.source_map().span_to_filename(item.ident.span)
|
||||||
if let FileName::Real(real) = filename {
|
&& let Some(c) = real
|
||||||
if let Some(c) = real
|
|
||||||
.local_path()
|
.local_path()
|
||||||
.unwrap_or(Path::new(""))
|
.unwrap_or(Path::new(""))
|
||||||
.components()
|
.components()
|
||||||
|
@ -1357,53 +1352,40 @@ fn pretty_printing_compatibility_hack(item: &Item, sess: &Session) -> bool {
|
||||||
let mut version = c.trim_start_matches("rental-").split('.');
|
let mut version = c.trim_start_matches("rental-").split('.');
|
||||||
version.next() == Some("0")
|
version.next() == Some("0")
|
||||||
&& version.next() == Some("5")
|
&& version.next() == Some("5")
|
||||||
&& version
|
&& version.next().and_then(|c| c.parse::<u32>().ok()).is_some_and(|v| v < 6)
|
||||||
.next()
|
|
||||||
.and_then(|c| c.parse::<u32>().ok())
|
|
||||||
.is_some_and(|v| v < 6)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if crate_matches {
|
if crate_matches {
|
||||||
sess.psess.buffer_lint(
|
// FIXME: make this translatable
|
||||||
PROC_MACRO_BACK_COMPAT,
|
#[allow(rustc::untranslatable_diagnostic)]
|
||||||
item.ident.span,
|
sess.psess.dcx.emit_fatal(errors::ProcMacroBackCompat {
|
||||||
ast::CRATE_NODE_ID,
|
|
||||||
BuiltinLintDiag::ProcMacroBackCompat {
|
|
||||||
crate_name: "rental".to_string(),
|
crate_name: "rental".to_string(),
|
||||||
fixed_version: "0.5.6".to_string(),
|
fixed_version: "0.5.6".to_string(),
|
||||||
},
|
});
|
||||||
);
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
false
|
|
||||||
}
|
|
||||||
|
|
||||||
pub(crate) fn ann_pretty_printing_compatibility_hack(ann: &Annotatable, sess: &Session) -> bool {
|
pub(crate) fn ann_pretty_printing_compatibility_hack(ann: &Annotatable, sess: &Session) {
|
||||||
let item = match ann {
|
let item = match ann {
|
||||||
Annotatable::Item(item) => item,
|
Annotatable::Item(item) => item,
|
||||||
Annotatable::Stmt(stmt) => match &stmt.kind {
|
Annotatable::Stmt(stmt) => match &stmt.kind {
|
||||||
ast::StmtKind::Item(item) => item,
|
ast::StmtKind::Item(item) => item,
|
||||||
_ => return false,
|
_ => return,
|
||||||
},
|
},
|
||||||
_ => return false,
|
_ => return,
|
||||||
};
|
};
|
||||||
pretty_printing_compatibility_hack(item, sess)
|
pretty_printing_compatibility_hack(item, sess)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn nt_pretty_printing_compatibility_hack(nt: &Nonterminal, sess: &Session) -> bool {
|
pub(crate) fn nt_pretty_printing_compatibility_hack(nt: &Nonterminal, sess: &Session) {
|
||||||
let item = match nt {
|
let item = match nt {
|
||||||
Nonterminal::NtItem(item) => item,
|
Nonterminal::NtItem(item) => item,
|
||||||
Nonterminal::NtStmt(stmt) => match &stmt.kind {
|
Nonterminal::NtStmt(stmt) => match &stmt.kind {
|
||||||
ast::StmtKind::Item(item) => item,
|
ast::StmtKind::Item(item) => item,
|
||||||
_ => return false,
|
_ => return,
|
||||||
},
|
},
|
||||||
_ => return false,
|
_ => return,
|
||||||
};
|
};
|
||||||
pretty_printing_compatibility_hack(item, sess)
|
pretty_printing_compatibility_hack(item, sess)
|
||||||
}
|
}
|
||||||
|
|
|
@ -440,3 +440,13 @@ pub(crate) struct EmptyDelegationList {
|
||||||
#[primary_span]
|
#[primary_span]
|
||||||
pub span: Span,
|
pub span: Span,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This used to be the `proc_macro_back_compat` lint (#83125). It was later
|
||||||
|
// turned into a hard error.
|
||||||
|
#[derive(Diagnostic)]
|
||||||
|
#[diag(expand_proc_macro_back_compat)]
|
||||||
|
#[note]
|
||||||
|
pub struct ProcMacroBackCompat {
|
||||||
|
pub crate_name: String,
|
||||||
|
pub fixed_version: String,
|
||||||
|
}
|
||||||
|
|
|
@ -267,7 +267,6 @@ pub(super) fn transcribe<'a>(
|
||||||
// some of the unnecessary whitespace.
|
// some of the unnecessary whitespace.
|
||||||
let ident = MacroRulesNormalizedIdent::new(original_ident);
|
let ident = MacroRulesNormalizedIdent::new(original_ident);
|
||||||
if let Some(cur_matched) = lookup_cur_matched(ident, interp, &repeats) {
|
if let Some(cur_matched) = lookup_cur_matched(ident, interp, &repeats) {
|
||||||
// njn: explain the use of alone here
|
|
||||||
let tt = match cur_matched {
|
let tt = match cur_matched {
|
||||||
MatchedSingle(ParseNtResult::Tt(tt)) => {
|
MatchedSingle(ParseNtResult::Tt(tt)) => {
|
||||||
// `tt`s are emitted into the output stream directly as "raw tokens",
|
// `tt`s are emitted into the output stream directly as "raw tokens",
|
||||||
|
|
|
@ -4,14 +4,12 @@ use crate::proc_macro_server;
|
||||||
|
|
||||||
use rustc_ast as ast;
|
use rustc_ast as ast;
|
||||||
use rustc_ast::ptr::P;
|
use rustc_ast::ptr::P;
|
||||||
use rustc_ast::token;
|
|
||||||
use rustc_ast::tokenstream::TokenStream;
|
use rustc_ast::tokenstream::TokenStream;
|
||||||
use rustc_data_structures::sync::Lrc;
|
|
||||||
use rustc_errors::ErrorGuaranteed;
|
use rustc_errors::ErrorGuaranteed;
|
||||||
use rustc_parse::parser::ForceCollect;
|
use rustc_parse::parser::ForceCollect;
|
||||||
use rustc_session::config::ProcMacroExecutionStrategy;
|
use rustc_session::config::ProcMacroExecutionStrategy;
|
||||||
use rustc_span::profiling::SpannedEventArgRecorder;
|
use rustc_span::profiling::SpannedEventArgRecorder;
|
||||||
use rustc_span::{Span, DUMMY_SP};
|
use rustc_span::Span;
|
||||||
|
|
||||||
struct MessagePipe<T> {
|
struct MessagePipe<T> {
|
||||||
tx: std::sync::mpsc::SyncSender<T>,
|
tx: std::sync::mpsc::SyncSender<T>,
|
||||||
|
@ -120,18 +118,13 @@ impl MultiItemModifier for DeriveProcMacro {
|
||||||
// We need special handling for statement items
|
// We need special handling for statement items
|
||||||
// (e.g. `fn foo() { #[derive(Debug)] struct Bar; }`)
|
// (e.g. `fn foo() { #[derive(Debug)] struct Bar; }`)
|
||||||
let is_stmt = matches!(item, Annotatable::Stmt(..));
|
let is_stmt = matches!(item, Annotatable::Stmt(..));
|
||||||
let hack = crate::base::ann_pretty_printing_compatibility_hack(&item, &ecx.sess);
|
|
||||||
let input = if hack {
|
|
||||||
let nt = match item {
|
|
||||||
Annotatable::Item(item) => token::NtItem(item),
|
|
||||||
Annotatable::Stmt(stmt) => token::NtStmt(stmt),
|
|
||||||
_ => unreachable!(),
|
|
||||||
};
|
|
||||||
TokenStream::token_alone(token::Interpolated(Lrc::new(nt)), DUMMY_SP)
|
|
||||||
} else {
|
|
||||||
item.to_tokens()
|
|
||||||
};
|
|
||||||
|
|
||||||
|
// We used to have an alternative behaviour for crates that needed it.
|
||||||
|
// We had a lint for a long time, but now we just emit a hard error.
|
||||||
|
// Eventually we might remove the special case hard error check
|
||||||
|
// altogether. See #73345.
|
||||||
|
crate::base::ann_pretty_printing_compatibility_hack(&item, &ecx.sess);
|
||||||
|
let input = item.to_tokens();
|
||||||
let stream = {
|
let stream = {
|
||||||
let _timer =
|
let _timer =
|
||||||
ecx.sess.prof.generic_activity_with_arg_recorder("expand_proc_macro", |recorder| {
|
ecx.sess.prof.generic_activity_with_arg_recorder("expand_proc_macro", |recorder| {
|
||||||
|
|
|
@ -276,22 +276,21 @@ impl FromInternal<(TokenStream, &mut Rustc<'_, '_>)> for Vec<TokenTree<TokenStre
|
||||||
|
|
||||||
Interpolated(nt) => {
|
Interpolated(nt) => {
|
||||||
let stream = TokenStream::from_nonterminal_ast(&nt);
|
let stream = TokenStream::from_nonterminal_ast(&nt);
|
||||||
// A hack used to pass AST fragments to attribute and derive
|
// We used to have an alternative behaviour for crates that
|
||||||
// macros as a single nonterminal token instead of a token
|
// needed it: a hack used to pass AST fragments to
|
||||||
// stream. Such token needs to be "unwrapped" and not
|
// attribute and derive macros as a single nonterminal
|
||||||
// represented as a delimited group.
|
// token instead of a token stream. Such token needs to be
|
||||||
// FIXME: It needs to be removed, but there are some
|
// "unwrapped" and not represented as a delimited group. We
|
||||||
// compatibility issues (see #73345).
|
// had a lint for a long time, but now we just emit a hard
|
||||||
if crate::base::nt_pretty_printing_compatibility_hack(&nt, rustc.ecx.sess) {
|
// error. Eventually we might remove the special case hard
|
||||||
trees.extend(Self::from_internal((stream, rustc)));
|
// error check altogether. See #73345.
|
||||||
} else {
|
crate::base::nt_pretty_printing_compatibility_hack(&nt, rustc.ecx.sess);
|
||||||
trees.push(TokenTree::Group(Group {
|
trees.push(TokenTree::Group(Group {
|
||||||
delimiter: pm::Delimiter::None,
|
delimiter: pm::Delimiter::None,
|
||||||
stream: Some(stream),
|
stream: Some(stream),
|
||||||
span: DelimSpan::from_single(span),
|
span: DelimSpan::from_single(span),
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
OpenDelim(..) | CloseDelim(..) => unreachable!(),
|
OpenDelim(..) | CloseDelim(..) => unreachable!(),
|
||||||
Eof => unreachable!(),
|
Eof => unreachable!(),
|
||||||
|
|
|
@ -635,9 +635,6 @@ lint_pattern_in_foreign = patterns aren't allowed in foreign function declaratio
|
||||||
lint_private_extern_crate_reexport =
|
lint_private_extern_crate_reexport =
|
||||||
extern crate `{$ident}` is private, and cannot be re-exported, consider declaring with `pub`
|
extern crate `{$ident}` is private, and cannot be re-exported, consider declaring with `pub`
|
||||||
|
|
||||||
lint_proc_macro_back_compat = using an old version of `{$crate_name}`
|
|
||||||
.note = older versions of the `{$crate_name}` crate will stop compiling in future versions of Rust; please update to `{$crate_name}` v{$fixed_version}, or switch to one of the `{$crate_name}` alternatives
|
|
||||||
|
|
||||||
lint_proc_macro_derive_resolution_fallback = cannot find {$ns} `{$ident}` in this scope
|
lint_proc_macro_derive_resolution_fallback = cannot find {$ns} `{$ident}` in this scope
|
||||||
.label = names from parent modules are not accessible without an explicit import
|
.label = names from parent modules are not accessible without an explicit import
|
||||||
|
|
||||||
|
|
|
@ -159,9 +159,6 @@ pub(super) fn decorate_lint(sess: &Session, diagnostic: BuiltinLintDiag, diag: &
|
||||||
BuiltinLintDiag::LegacyDeriveHelpers(label_span) => {
|
BuiltinLintDiag::LegacyDeriveHelpers(label_span) => {
|
||||||
lints::LegacyDeriveHelpers { span: label_span }.decorate_lint(diag);
|
lints::LegacyDeriveHelpers { span: label_span }.decorate_lint(diag);
|
||||||
}
|
}
|
||||||
BuiltinLintDiag::ProcMacroBackCompat { crate_name, fixed_version } => {
|
|
||||||
lints::ProcMacroBackCompat { crate_name, fixed_version }.decorate_lint(diag);
|
|
||||||
}
|
|
||||||
BuiltinLintDiag::OrPatternsBackCompat(suggestion_span, suggestion) => {
|
BuiltinLintDiag::OrPatternsBackCompat(suggestion_span, suggestion) => {
|
||||||
lints::OrPatternsBackCompat { span: suggestion_span, suggestion }.decorate_lint(diag);
|
lints::OrPatternsBackCompat { span: suggestion_span, suggestion }.decorate_lint(diag);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2649,14 +2649,6 @@ pub struct LegacyDeriveHelpers {
|
||||||
pub span: Span,
|
pub span: Span,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(LintDiagnostic)]
|
|
||||||
#[diag(lint_proc_macro_back_compat)]
|
|
||||||
#[note]
|
|
||||||
pub struct ProcMacroBackCompat {
|
|
||||||
pub crate_name: String,
|
|
||||||
pub fixed_version: String,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(LintDiagnostic)]
|
#[derive(LintDiagnostic)]
|
||||||
#[diag(lint_or_patterns_back_compat)]
|
#[diag(lint_or_patterns_back_compat)]
|
||||||
pub struct OrPatternsBackCompat {
|
pub struct OrPatternsBackCompat {
|
||||||
|
|
|
@ -76,7 +76,6 @@ declare_lint_pass! {
|
||||||
PATTERNS_IN_FNS_WITHOUT_BODY,
|
PATTERNS_IN_FNS_WITHOUT_BODY,
|
||||||
PRIVATE_BOUNDS,
|
PRIVATE_BOUNDS,
|
||||||
PRIVATE_INTERFACES,
|
PRIVATE_INTERFACES,
|
||||||
PROC_MACRO_BACK_COMPAT,
|
|
||||||
PROC_MACRO_DERIVE_RESOLUTION_FALLBACK,
|
PROC_MACRO_DERIVE_RESOLUTION_FALLBACK,
|
||||||
PUB_USE_OF_PRIVATE_EXTERN_CRATE,
|
PUB_USE_OF_PRIVATE_EXTERN_CRATE,
|
||||||
REDUNDANT_LIFETIMES,
|
REDUNDANT_LIFETIMES,
|
||||||
|
@ -3664,53 +3663,6 @@ declare_lint! {
|
||||||
"detects invalid `#[doc(...)]` attributes",
|
"detects invalid `#[doc(...)]` attributes",
|
||||||
}
|
}
|
||||||
|
|
||||||
declare_lint! {
|
|
||||||
/// The `proc_macro_back_compat` lint detects uses of old versions of certain
|
|
||||||
/// proc-macro crates, which have hardcoded workarounds in the compiler.
|
|
||||||
///
|
|
||||||
/// ### Example
|
|
||||||
///
|
|
||||||
/// ```rust,ignore (needs-dependency)
|
|
||||||
///
|
|
||||||
/// use time_macros_impl::impl_macros;
|
|
||||||
/// struct Foo;
|
|
||||||
/// impl_macros!(Foo);
|
|
||||||
/// ```
|
|
||||||
///
|
|
||||||
/// This will produce:
|
|
||||||
///
|
|
||||||
/// ```text
|
|
||||||
/// warning: using an old version of `time-macros-impl`
|
|
||||||
/// ::: $DIR/group-compat-hack.rs:27:5
|
|
||||||
/// |
|
|
||||||
/// LL | impl_macros!(Foo);
|
|
||||||
/// | ------------------ in this macro invocation
|
|
||||||
/// |
|
|
||||||
/// = note: `#[warn(proc_macro_back_compat)]` on by default
|
|
||||||
/// = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
/// = note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
/// = note: the `time-macros-impl` crate will stop compiling in futures version of Rust. Please update to the latest version of the `time` crate to avoid breakage
|
|
||||||
/// = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
||||||
/// ```
|
|
||||||
///
|
|
||||||
/// ### Explanation
|
|
||||||
///
|
|
||||||
/// Eventually, the backwards-compatibility hacks present in the compiler will be removed,
|
|
||||||
/// causing older versions of certain crates to stop compiling.
|
|
||||||
/// This is a [future-incompatible] lint to ease the transition to an error.
|
|
||||||
/// See [issue #83125] for more details.
|
|
||||||
///
|
|
||||||
/// [issue #83125]: https://github.com/rust-lang/rust/issues/83125
|
|
||||||
/// [future-incompatible]: ../index.md#future-incompatible-lints
|
|
||||||
pub PROC_MACRO_BACK_COMPAT,
|
|
||||||
Deny,
|
|
||||||
"detects usage of old versions of certain proc-macro crates",
|
|
||||||
@future_incompatible = FutureIncompatibleInfo {
|
|
||||||
reason: FutureIncompatibilityReason::FutureReleaseErrorReportInDeps,
|
|
||||||
reference: "issue #83125 <https://github.com/rust-lang/rust/issues/83125>",
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
declare_lint! {
|
declare_lint! {
|
||||||
/// The `rust_2021_incompatible_or_patterns` lint detects usage of old versions of or-patterns.
|
/// The `rust_2021_incompatible_or_patterns` lint detects usage of old versions of or-patterns.
|
||||||
///
|
///
|
||||||
|
|
|
@ -618,10 +618,6 @@ pub enum BuiltinLintDiag {
|
||||||
is_foreign: bool,
|
is_foreign: bool,
|
||||||
},
|
},
|
||||||
LegacyDeriveHelpers(Span),
|
LegacyDeriveHelpers(Span),
|
||||||
ProcMacroBackCompat {
|
|
||||||
crate_name: String,
|
|
||||||
fixed_version: String,
|
|
||||||
},
|
|
||||||
OrPatternsBackCompat(Span, String),
|
OrPatternsBackCompat(Span, String),
|
||||||
ReservedPrefix(Span, String),
|
ReservedPrefix(Span, String),
|
||||||
TrailingMacro(bool, Ident),
|
TrailingMacro(bool, Ident),
|
||||||
|
|
|
@ -1,185 +1,6 @@
|
||||||
error: using an old version of `rental`
|
error: using an old version of `rental`
|
||||||
--> $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6
|
|
||||||
|
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
= note: older versions of the `rental` crate no longer compile; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
error: using an old version of `rental`
|
error: aborting due to 1 previous error
|
||||||
--> $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
||||||
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
||||||
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
||||||
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
||||||
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
||||||
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
||||||
|
|
||||||
error: aborting due to 8 previous errors
|
|
||||||
|
|
||||||
Future incompatibility report: Future breakage diagnostic:
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
Future breakage diagnostic:
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
Future breakage diagnostic:
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
Future breakage diagnostic:
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
Future breakage diagnostic:
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
Future breakage diagnostic:
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
Future breakage diagnostic:
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
Future breakage diagnostic:
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
PRINT-DERIVE INPUT (DISPLAY): enum ProceduralMasqueradeDummyType { Input, }
|
|
||||||
PRINT-DERIVE RE-COLLECTED (DISPLAY): enum ProceduralMasqueradeDummyType { Input }
|
|
||||||
PRINT-DERIVE INPUT (DEBUG): TokenStream [
|
|
||||||
Ident {
|
|
||||||
ident: "enum",
|
|
||||||
span: $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:1: 4:5 (#0),
|
|
||||||
},
|
|
||||||
Ident {
|
|
||||||
ident: "ProceduralMasqueradeDummyType",
|
|
||||||
span: $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6: 4:35 (#0),
|
|
||||||
},
|
|
||||||
Group {
|
|
||||||
delimiter: Brace,
|
|
||||||
stream: TokenStream [
|
|
||||||
Ident {
|
|
||||||
ident: "Input",
|
|
||||||
span: $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:13:5: 13:10 (#0),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
span: $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:36: 14:2 (#0),
|
|
||||||
},
|
|
||||||
]
|
|
||||||
PRINT-DERIVE INPUT (DISPLAY): enum ProceduralMasqueradeDummyType { Input, }
|
|
||||||
PRINT-DERIVE RE-COLLECTED (DISPLAY): enum ProceduralMasqueradeDummyType { Input }
|
|
||||||
PRINT-DERIVE INPUT (DEBUG): TokenStream [
|
|
||||||
Ident {
|
|
||||||
ident: "enum",
|
|
||||||
span: $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:1: 4:5 (#0),
|
|
||||||
},
|
|
||||||
Ident {
|
|
||||||
ident: "ProceduralMasqueradeDummyType",
|
|
||||||
span: $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6: 4:35 (#0),
|
|
||||||
},
|
|
||||||
Group {
|
|
||||||
delimiter: Brace,
|
|
||||||
stream: TokenStream [
|
|
||||||
Ident {
|
|
||||||
ident: "Input",
|
|
||||||
span: $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:13:5: 13:10 (#0),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
span: $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:36: 14:2 (#0),
|
|
||||||
},
|
|
||||||
]
|
|
|
@ -1,185 +1,6 @@
|
||||||
error: using an old version of `rental`
|
error: using an old version of `rental`
|
||||||
--> $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6
|
|
||||||
|
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
= note: older versions of the `rental` crate no longer compile; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
error: using an old version of `rental`
|
error: aborting due to 1 previous error
|
||||||
--> $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
||||||
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
||||||
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
||||||
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
||||||
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
||||||
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
||||||
|
|
||||||
error: aborting due to 8 previous errors
|
|
||||||
|
|
||||||
Future incompatibility report: Future breakage diagnostic:
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
Future breakage diagnostic:
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
Future breakage diagnostic:
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
Future breakage diagnostic:
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
Future breakage diagnostic:
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
Future breakage diagnostic:
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
Future breakage diagnostic:
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
Future breakage diagnostic:
|
|
||||||
error: using an old version of `rental`
|
|
||||||
--> $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6
|
|
||||||
|
|
|
||||||
LL | enum ProceduralMasqueradeDummyType {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
||||||
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
|
|
||||||
= note: older versions of the `rental` crate will stop compiling in future versions of Rust; please update to `rental` v0.5.6, or switch to one of the `rental` alternatives
|
|
||||||
= note: `#[deny(proc_macro_back_compat)]` on by default
|
|
||||||
|
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
PRINT-DERIVE INPUT (DISPLAY): enum ProceduralMasqueradeDummyType { Input, }
|
|
||||||
PRINT-DERIVE RE-COLLECTED (DISPLAY): enum ProceduralMasqueradeDummyType { Input }
|
|
||||||
PRINT-DERIVE INPUT (DEBUG): TokenStream [
|
|
||||||
Ident {
|
|
||||||
ident: "enum",
|
|
||||||
span: $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:1: 4:5 (#0),
|
|
||||||
},
|
|
||||||
Ident {
|
|
||||||
ident: "ProceduralMasqueradeDummyType",
|
|
||||||
span: $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:6: 4:35 (#0),
|
|
||||||
},
|
|
||||||
Group {
|
|
||||||
delimiter: Brace,
|
|
||||||
stream: TokenStream [
|
|
||||||
Ident {
|
|
||||||
ident: "Input",
|
|
||||||
span: $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:13:5: 13:10 (#0),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
span: $DIR/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs:4:36: 14:2 (#0),
|
|
||||||
},
|
|
||||||
]
|
|
||||||
PRINT-DERIVE INPUT (DISPLAY): enum ProceduralMasqueradeDummyType { Input, }
|
|
||||||
PRINT-DERIVE RE-COLLECTED (DISPLAY): enum ProceduralMasqueradeDummyType { Input }
|
|
||||||
PRINT-DERIVE INPUT (DEBUG): TokenStream [
|
|
||||||
Ident {
|
|
||||||
ident: "enum",
|
|
||||||
span: $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:1: 4:5 (#0),
|
|
||||||
},
|
|
||||||
Ident {
|
|
||||||
ident: "ProceduralMasqueradeDummyType",
|
|
||||||
span: $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:6: 4:35 (#0),
|
|
||||||
},
|
|
||||||
Group {
|
|
||||||
delimiter: Brace,
|
|
||||||
stream: TokenStream [
|
|
||||||
Ident {
|
|
||||||
ident: "Input",
|
|
||||||
span: $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:13:5: 13:10 (#0),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
span: $DIR/pretty-print-hack/rental-0.5.5/src/lib.rs:4:36: 14:2 (#0),
|
|
||||||
},
|
|
||||||
]
|
|
Loading…
Add table
Add a link
Reference in a new issue