When crate_type
is None
,check compiler options
This commit is contained in:
parent
75e6cfc79b
commit
cfff1b4c12
1 changed files with 1 additions and 1 deletions
|
@ -559,7 +559,7 @@ impl Session {
|
|||
if found_positive || found_negative {
|
||||
found_positive
|
||||
} else if crate_type == Some(config::CrateType::ProcMacro)
|
||||
|| self.opts.crate_types.contains(&config::CrateType::ProcMacro)
|
||||
|| crate_type == None && self.opts.crate_types.contains(&config::CrateType::ProcMacro)
|
||||
{
|
||||
// FIXME: When crate_type is not available,
|
||||
// we use compiler options to determine the crate_type.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue