Starting with 1.36, the attribute cfg(test) will be enabled for doctests when the --test flag is set ( rust-lang/rust#59940). It means that it is not necessary to create a seperate crate for testing by setting this attribute to (generated) doctests.
It requires the bump of major version as it will increase the minimum supported toolchain version.