]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/diagnostic.rs
rollup merge of #21457: alexcrichton/issue-21436
[rust.git] / src / libsyntax / diagnostic.rs
index c84cbdcae8549f1c46674d334b9ba650934c1997..0c7f6befc4e3e1b884c5a95df1828e5f050c559b 100644 (file)
@@ -239,9 +239,9 @@ pub enum Level {
     Help,
 }
 
-impl fmt::String for Level {
+impl fmt::Display for Level {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
-        use std::fmt::String;
+        use std::fmt::Display;
 
         match *self {
             Bug => "error: internal compiler error".fmt(f),