rust/compiler/rustc_typeck
bors 9b6c9b638e Auto merge of #81866 - nagisa:nagisa/sanitizer-support-target-prop, r=tmiasko
Maintain supported sanitizers as a target property

In an effort to remove a hard-coded allow-list for target-sanitizer support correspondence, this PR moves the configuration to the target options.

Perhaps the one notable change made in this PR is this doc-comment:

```rust
    /// The sanitizers supported by this target
    ///
    /// Note that the support here is at a codegen level. If the machine code with sanitizer
    /// enabled can generated on this target, but the necessary supporting libraries are not
    /// distributed with the target, the sanitizer should still appear in this list for the target.
```

Previously the target would typically be added to the allow-list at the same time as the supporting runtime libraries are shipped for the target. However whether we ship the runtime libraries or not needn't be baked into the compiler; and if we don't users will receive a significantly more directed error about library not being found.

Fixes #81802
2021-04-02 23:33:01 +00:00
..
src Auto merge of #81866 - nagisa:nagisa/sanitizer-support-target-prop, r=tmiasko 2021-04-02 23:33:01 +00:00
Cargo.toml bumped smallvec deps 2021-02-14 18:03:11 +03:00
README.md

For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.