diff --git a/compiler/rustc_serialize/src/serialize.rs b/compiler/rustc_serialize/src/serialize.rs index db8555edd0f8f..cd8747f9b82e9 100644 --- a/compiler/rustc_serialize/src/serialize.rs +++ b/compiler/rustc_serialize/src/serialize.rs @@ -31,7 +31,7 @@ const STR_SENTINEL: u8 = 0xC1; /// a `finish` method that finishes up encoding. If the encoder is fallible, /// `finish` should return a `Result` that indicates success or failure. /// -/// This current does not support `f32` nor `f64`, as they're not needed in any +/// This currently does not support `f32` nor `f64`, as they're not needed in any /// serialized data structures. That could be changed, but consider whether it /// really makes sense to store floating-point values at all. /// (If you need it, revert .) @@ -81,7 +81,7 @@ pub trait Encoder { // infallibility made things faster and lots of code a little simpler and more // concise. /// -/// This current does not support `f32` nor `f64`, as they're not needed in any +/// This currently does not support `f32` nor `f64`, as they're not needed in any /// serialized data structures. That could be changed, but consider whether it /// really makes sense to store floating-point values at all. /// (If you need it, revert .) diff --git a/compiler/rustc_session/src/errors.rs b/compiler/rustc_session/src/errors.rs index 6c26a78148719..ebdbb42582fe5 100644 --- a/compiler/rustc_session/src/errors.rs +++ b/compiler/rustc_session/src/errors.rs @@ -234,7 +234,7 @@ pub(crate) struct CrateNameEmpty { } #[derive(Diagnostic)] -#[diag(session_invalid_character_in_create_name)] +#[diag(session_invalid_character_in_crate_name)] pub(crate) struct InvalidCharacterInCrateName { #[primary_span] pub(crate) span: Option, @@ -246,7 +246,7 @@ pub(crate) struct InvalidCharacterInCrateName { #[derive(Subdiagnostic)] pub(crate) enum InvalidCrateNameHelp { - #[help(session_invalid_character_in_create_name_help)] + #[help(session_invalid_character_in_crate_name_help)] AddCrateName, }