rustc should not compile with any warnings. Some warnings are currently denied, but not all: see https://github.com/rust-lang/rust/pull/57177, for instance, where a warning got through.