rust/compiler/rustc_session/src
Dylan DPC 02b27cd79e
Rollup merge of #83437 - Amanieu:asm_syntax, r=petrochenkov
Refactor #82270 as lint instead of an error

This PR fixes several issues with #82270 which generated an error when `.intel_syntax` or `.att_syntax` was used in inline assembly:
- It is now a warn-by-default lint instead of an error.
- The lint only triggers on x86. `.intel_syntax` and `.att_syntax` are only valid on x86.
- The lint no longer provides machine-applicable suggestions for two reasons:
	- These changes should not be made automatically since changes to assembly code can be very subtle.
	- The template string is not always just a string: it can contain macro invocation (`concat!`), raw strings, escape characters, etc.

cc ``@asquared31415``
2021-03-26 02:34:39 +01:00
..
cgu_reuse_tracker.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
code_stats.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
config.rs Auto merge of #83307 - richkadel:cov-unused-functions-1.1, r=tmandry 2021-03-25 05:07:34 +00:00
filesearch.rs fix review 2021-02-25 04:21:12 +03:00
lib.rs stabilize or_patterns 2021-03-19 19:45:32 -05:00
options.rs Auto merge of #83307 - richkadel:cov-unused-functions-1.1, r=tmandry 2021-03-25 05:07:34 +00:00
output.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
parse.rs expand: Move module file path stack from global session to expansion data 2021-03-05 01:33:43 +03:00
search_paths.rs use strip_prefix over starts_with and manual slicing based on pattern length (clippy::manual_strip) 2020-09-17 10:13:16 +02:00
session.rs Rollup merge of #83437 - Amanieu:asm_syntax, r=petrochenkov 2021-03-26 02:34:39 +01:00
utils.rs Pre-canoncalize ExternLocation::ExactPaths 2021-01-29 11:02:12 +01:00