@@ -1886,7 +1886,52 @@ This explicitly states that you expect the trait object `SomeTrait` to
18861886contain references (with a maximum lifetime of `'a`).
18871887
18881888[1]: https://github.com/rust-lang/rfcs/pull/1156
1889- "##
1889+ "## ,
1890+
1891+ E0454 : r##"
1892+ A link name was given with an empty name. Erroneous code example:
1893+
1894+ ```
1895+ #[link(name = "")] extern {} // error: #[link(name = "")] given with empty name
1896+ ```
1897+
1898+ The rust compiler cannot link to an external library if you don't give it its
1899+ name. Example:
1900+
1901+ ```
1902+ #[link(name = "some_lib")] extern {} // ok!
1903+ ```
1904+ "## ,
1905+
1906+ E0458 : r##"
1907+ An unknown "kind" was specified for a link attribute. Erroneous code example:
1908+
1909+ ```
1910+ #[link(kind = "wonderful_unicorn")] extern {}
1911+ // error: unknown kind: `wonderful_unicorn`
1912+ ```
1913+
1914+ Please specify a valid "kind" value, from one of the following:
1915+ * static
1916+ * dylib
1917+ * framework
1918+ "## ,
1919+
1920+ E0459 : r##"
1921+ A link was used without a name parameter. Erroneous code example:
1922+
1923+ ```
1924+ #[link(kind = "dylib")] extern {}
1925+ // error: #[link(...)] specified without `name = "foo"`
1926+ ```
1927+
1928+ Please add the name parameter to allow the rust compiler to find the library
1929+ you want. Example:
1930+
1931+ ```
1932+ #[link(kind = "dylib", name = "some_lib")] extern {} // ok!
1933+ ```
1934+ "## ,
18901935
18911936}
18921937
@@ -1913,5 +1958,42 @@ register_diagnostics! {
19131958 E0314 , // closure outlives stack frame
19141959 E0315 , // cannot invoke closure outside of its lifetime
19151960 E0316 , // nested quantification of lifetimes
1916- E0400 // overloaded derefs are not allowed in constants
1961+ E0400 , // overloaded derefs are not allowed in constants
1962+ E0452 , // malformed lint attribute
1963+ E0453 , // overruled by outer forbid
1964+ E0455 , // native frameworks are only available on OSX targets
1965+ E0456 , // plugin `..` is not available for triple `..`
1966+ E0457 , // plugin `..` only found in rlib format, but must be available...
1967+ E0460 , // found possibly newer version of crate `..`
1968+ E0461 , // couldn't find crate `..` with expected target triple ..
1969+ E0462 , // found staticlib `..` instead of rlib or dylib
1970+ E0463 , // can't find crate for `..`
1971+ E0464 , // multiple matching crates for `..`
1972+ E0465 , // multiple .. candidates for `..` found
1973+ E0466 , // bad macro import
1974+ E0467 , // bad macro reexport
1975+ E0468 , // an `extern crate` loading macros must be at the crate root
1976+ E0469 , // imported macro not found
1977+ E0470 , // reexported macro not found
1978+ E0471 , // constant evaluation error: ..
1979+ E0472 , // asm! is unsupported on this target
1980+ E0473 , // dereference of reference outside its lifetime
1981+ E0474 , // captured variable `..` does not outlive the enclosing closure
1982+ E0475 , // index of slice outside its lifetime
1983+ E0476 , // lifetime of the source pointer does not outlive lifetime bound...
1984+ E0477 , // the type `..` does not fulfill the required lifetime...
1985+ E0478 , // lifetime bound not satisfied
1986+ E0479 , // the type `..` (provided as the value of a type parameter) is...
1987+ E0480 , // lifetime of method receiver does not outlive the method call
1988+ E0481 , // lifetime of function argument does not outlive the function call
1989+ E0482 , // lifetime of return value does not outlive the function call
1990+ E0483 , // lifetime of operand does not outlive the operation
1991+ E0484 , // reference is not valid at the time of borrow
1992+ E0485 , // automatically reference is not valid at the time of borrow
1993+ E0486 , // type of expression contains references that are not valid during...
1994+ E0487 , // unsafe use of destructor: destructor might be called while...
1995+ E0488 , // lifetime of variable does not enclose its declaration
1996+ E0489 , // type/lifetime parameter not in scope here
1997+ E0490 , // a value of type `..` is borrowed for too long
1998+ E0491 , // in type `..`, reference has a longer lifetime than the data it...
19171999}
0 commit comments