mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
Put #[diagnostic::on_move] on File
This commit is contained in:
@@ -132,6 +132,7 @@
|
||||
/// [`read`]: File::read
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[cfg_attr(not(test), rustc_diagnostic_item = "File")]
|
||||
#[diagnostic::on_move(note = "you can use `File::try_clone` to duplicate a `File` instance")]
|
||||
pub struct File {
|
||||
inner: fs_imp::File,
|
||||
}
|
||||
|
||||
@@ -278,6 +278,7 @@
|
||||
#![feature(const_trait_impl)]
|
||||
#![feature(decl_macro)]
|
||||
#![feature(deprecated_suggestion)]
|
||||
#![feature(diagnostic_on_move)]
|
||||
#![feature(doc_cfg)]
|
||||
#![feature(doc_masked)]
|
||||
#![feature(doc_notable_trait)]
|
||||
|
||||
Reference in New Issue
Block a user