diff --git a/src/doc/unstable-book/src/compiler-flags/codegen-backend.md b/src/doc/unstable-book/src/compiler-flags/codegen-backend.md index efccff42caae8..87b2184676aea 100644 --- a/src/doc/unstable-book/src/compiler-flags/codegen-backend.md +++ b/src/doc/unstable-book/src/compiler-flags/codegen-backend.md @@ -8,8 +8,8 @@ This feature allows you to specify a path to a dynamic library to use as rustc's code generation backend at runtime. Set the `-Zcodegen-backend=` compiler flag to specify the location of the -backend. The library must contain a function named `__rustc_codegen_backend` -with a signature of `fn() -> Box`. +backend. The library must be of crate type `dylib` and must contain a function +named `__rustc_codegen_backend` with a signature of `fn() -> Box`. ## Example ```rust,ignore