Skip to content

Commit

Permalink
Apply suggestions from review by varkor
Browse files Browse the repository at this point in the history
Co-Authored-By: varkor <github@varkor.com>
  • Loading branch information
eupn and varkor committed Jul 31, 2019
1 parent 1ef1e7f commit 7336626
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/librustc/session/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ fn validate_commandline_args_with_session_available(sess: &Session) {
sess.target.target.options.is_like_msvc &&
sess.panic_strategy() == PanicStrategy::Unwind &&
sess.opts.prints.iter().all(|&p| p == PrintRequest::NativeStaticLibs) {
sess.err("Profile-guided optimization does not yet work in conjunction \
sess.err("profile-guided optimization does not yet work in conjunction \
with `-Cpanic=unwind` on Windows when targeting MSVC. \
See issue #61002 <https://github.com/rust-lang/rust/issues/61002> for details.");
}
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ fn check_deprecated_options(matches: &getopts::Matches, diag: &errors::Handler)
if matches.opt_present(flag) {
let mut err = diag.struct_warn(&format!("the '{}' flag is considered deprecated",
flag));
err.warn("please see issue #44136 <https://github.com/rust-lang/rust/issues/44136>");
err.warn("see issue #44136 <https://github.com/rust-lang/rust/issues/44136>");

if *flag == "no-defaults" {
err.help("you may want to use --document-private-items");
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ pub fn run_core(options: RustdocOptions) -> (clean::Crate, RenderInfo, RenderOpt
fn report_deprecated_attr(name: &str, diag: &errors::Handler) {
let mut msg = diag.struct_warn(&format!("the `#![doc({})]` attribute is \
considered deprecated", name));
msg.warn("please see issue \
msg.warn("see issue \
#44136 <https://github.com/rust-lang/rust/issues/44136>");

if name == "no_default_passes" {
Expand Down

0 comments on commit 7336626

Please sign in to comment.