Merge #1083
1083: bugfix: fix several minor issues r=CohenArthur a=liushuyu - Fixed `-frust-crate= option` got incorrectly overridden by a default value (`example`) - Fix a minor typo in `gcc/rust/ast/rust-ast-full-test.cc` Co-authored-by: liushuyu <liushuyu011@gmail.com>
This commit is contained in:
commit
779de323f3
|
@ -311,7 +311,7 @@ Visibility::as_string () const
|
||||||
case NONE:
|
case NONE:
|
||||||
return std::string ("pub");
|
return std::string ("pub");
|
||||||
case CRATE:
|
case CRATE:
|
||||||
return std::string ("ub(crate)");
|
return std::string ("pub(crate)");
|
||||||
case SELF:
|
case SELF:
|
||||||
return std::string ("pub(self)");
|
return std::string ("pub(self)");
|
||||||
case SUPER:
|
case SUPER:
|
||||||
|
|
|
@ -311,7 +311,8 @@ Session::init ()
|
||||||
// setup backend to GCC GIMPLE
|
// setup backend to GCC GIMPLE
|
||||||
backend = rust_get_backend ();
|
backend = rust_get_backend ();
|
||||||
|
|
||||||
// set the default crate name
|
// set the default crate name if crate name was unset
|
||||||
|
if (options.crate_name.empty ())
|
||||||
options.set_crate_name (kDefaultCrateName);
|
options.set_crate_name (kDefaultCrateName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue