Due to https://github.com/rust-lang/rust/pull/73566, the name resolution pass may find errors that are never emitted. If typeck is called after this happens, then we’ll get an ICE: ‘Res::Error found but not reported’. To avoid this, emit the errors now.
The top-level command-line options struct.
DefId or parameter index (
ty::ParamTy.index) of a synthetic type parameter
impl Trait in argument position.